Subform Page question

jelittlejohn
Member Posts: 61
I have a client that has recently been upgraded from 5.0 to NAV 2009. When they create a purchase invoice and enter the "Buy-from Vendor No.", we have code in the OnValidate of that field in the Purchase Header table that automatically pulls information from the vendor card and creates a default Purchase Line record for the invoice. This is all working fine. The Purchase Line is created and displayed in the RTC subform page. However, the focus (record pointer, whatever) in the subform page is on the new blank record below the default record we just created. In the classic client the record pointer was on the created record. Even though this is not a huge issue, the client would like for the behavior to be the same in the RTC. I've searched the forum and tried a few things unsuccessfully.
Does anyone have any ideas on how this might be accomplished?
Thanks in advance.
Does anyone have any ideas on how this might be accomplished?
Thanks in advance.
Jack Littlejohn
Clemson, SC
Clemson, SC
0
Comments
-
I think it's related to SourceTablePlacement property, not available anymore in pages.
My hint is to add a procedure in subpage to retrive the inserted record (with a CurrPage.UPDATE statement also) and call it in "Buy-from Vendor No." OnValidate page trigger.* Daniele Rebussi * | * Rebu NAV Diary *0 -
I have tried a function on the subform involving both GET and FIND without any luck. I call it from the OnValidate of "Buy-from Vendor No." on the Page and all of my commands seem to be executing correctly and I have put Page.UPDATE commands in for both the Page and SubPage but nothing seems to move the record pointer to the record that I am looking for.Jack Littlejohn
Clemson, SC0 -
I was gonna say setselectionfitlter, but I see that its not supported on subpage view.
http://msdn.microsoft.com/en-us/library/dd355387(v=nav.70).aspx
In that procedure on the subpage, try adding a MESSAGE of the record, does it get the right record?
Maybe you could play around with MARKEDONLY will trick the record to be selected?
(Markedonly would have to be removed again somehow I expect...)Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions