Subform record placement on last record

shogan@mila.ie
Member Posts: 113
Good morning everyone,
Hope all is well.
Have a small problem that I am trying to fix - purely cosmetic, but would make life easier for my users.
I have brought in the comments onto the Customer Card as a subform. I'd like for the subform to automatically scroll down to the most recent record.
So my subform properties for the Comment Sheet on The Customer Card are:
SubFormID = Comment Sheet
SubFormView = SORTING(Table Name,No.,Line No.) ORDER(Ascending)
SubformLink = Table Name=CONST(Customer),No.=FIELD(No.)
On the Comment Sheet form itself, I have changed the following properties:
SourceTablePlacement = Last
This kind-of works... If I open the Customer Card for the first time, it will land on the last record in the subform.
However, if I use the previous/next navigation buttons, the record selector eventually moves to the first record.
I am wondering if there is a way of getting the subform to focus always on the last record?
Regards,
Stephen
Hope all is well.
Have a small problem that I am trying to fix - purely cosmetic, but would make life easier for my users.
I have brought in the comments onto the Customer Card as a subform. I'd like for the subform to automatically scroll down to the most recent record.
So my subform properties for the Comment Sheet on The Customer Card are:
SubFormID = Comment Sheet
SubFormView = SORTING(Table Name,No.,Line No.) ORDER(Ascending)
SubformLink = Table Name=CONST(Customer),No.=FIELD(No.)
On the Comment Sheet form itself, I have changed the following properties:
SourceTablePlacement = Last
This kind-of works... If I open the Customer Card for the first time, it will land on the last record in the subform.
However, if I use the previous/next navigation buttons, the record selector eventually moves to the first record.
I am wondering if there is a way of getting the subform to focus always on the last record?
Regards,
Stephen
0
Comments
-
You will need to call some function of the subform where will be the FINDLAST used, and you need to call it when needed. But this could be the prolem. You can try to call it from OnAfterGetCurrRecord of the main form.0
-
kine wrote:You will need to call some function of the subform where will be the FINDLAST used, and you need to call it when needed. But this could be the prolem. You can try to call it from OnAfterGetCurrRecord of the main form.
Did you try this? I am pretty sure it wont work.
SubForms are jam packed with bugs that have been there since version 1.1, and obviously since Forms are dead will never be fixed. The most significant bugs are that cursor placement in SubForms simply does not work. Another is that you can't have SubForms in SubForms. I submitted a list of bugs in SubForms to Navision in ver 1.1, I haven't recently checked 2009, but I assume all those bugs are still there.David Singleton0 -
I haven't tried that specifically, but I was wondering if I could do this instead?
Create a button on the form that will be the subform, to move the record placement to the last record.
Then in the main form, use some sort of "send keys" to press the button?0 -
Saw this viewtopic.php?f=23&t=4618&view=next
As long as I know that the Line No. for the last Comment record is for this Customer, it might just work, along with Sendkeys to the button...
Might need your help soon guys, but any suggestions now are welcome too!0
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