Getting rec from sub-page
sabzam
Member Posts: 1,149
Dear All,
I am trying to get the record being highlighted from the purchase lines but the record which I am constantly getting back is the first record of the purchase line for the particular invoice. I am using both a function in the subpage which returns back the Record as well as using the getrecord functions and each time getting the same answer. Has anyone ever met such an error?
I am trying to get the record being highlighted from the purchase lines but the record which I am constantly getting back is the first record of the purchase line for the particular invoice. I am using both a function in the subpage which returns back the Record as well as using the getrecord functions and each time getting the same answer. Has anyone ever met such an error?
0
Comments
-
Yes the error is that you are doing it wrong.
You can not (from the main form) get a record from the subform. That simply does not work.
Do not try to get the sub record from the main form, it will never work.
You can only get the subpage record from a trigger on the subform iself, by using the subform's action menu.
Perhaps MS will change this in the future, but right now that's how it works.0 -
That's what I am doing, I'm calling a function in the sub-page but still am not getting the correct record.0
-
And you are calling that function from where?0
-
Form the main page; the header part0
-
Then you did not read, or rather understand, what I wrote.
Please read my first reply again.
Note this part:
You can only get the subpage record from a trigger on the subform iself, by using the subform's action menu.
This means:
YOU CAN NOT GET THE SUB-RECORD FROM THE MAIN FORM.
Next time I'm going to yell even louder
0 -
Note that Mark Brummel had developed a workaround for this:
http://dynamicsuser.net/blogs/mark_brum ... -pane.aspx
This was mentioned in an earlier thread on the post:
viewtopic.php?f=32&t=35876Alastair Farrugia0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions