Select first record in dataset when updating page
sorenhinrup
Member Posts: 136
Hello all
I have made a cardpage with a subpage. This subpage is a listpage, which is filtering on a dataset.
On the the cardpage I have added the PingPong function, which updates the cardpage and through that the listpage. That is working as required.

My issue is that on the listpage, new records are displayed above the sidebar slider. See attatched picture as example.

I would like the currpage.update to also automaticly select/mark the first record in the dataset on the subpage.
Are there anyway to achive this?
I have made a cardpage with a subpage. This subpage is a listpage, which is filtering on a dataset.
On the the cardpage I have added the PingPong function, which updates the cardpage and through that the listpage. That is working as required.

My issue is that on the listpage, new records are displayed above the sidebar slider. See attatched picture as example.

I would like the currpage.update to also automaticly select/mark the first record in the dataset on the subpage.
Are there anyway to achive this?
0
Answers
-
Have you tried a simple
IF FINDFIRST() THEN ;
...before the
currpage.update(false);
?0 -
That doesn't work unfortunately.0
-
Ahh - off cause not. Sorry.
It is a findfirst in the card page which is not the correct Rec to FindFirst on...
What about creating a function trigger in the listpart (subpage) with
---
if findfirst() then ;
currpage.update(false)
---
...and then calling that function from the card page insted of the currpage.update(false) - something like this:
CurrPage.<the subpages control name in the card page>.PAGE.<the name of the new function trigger>();
0 -
We just tried this, and it doesn't seem to have helped either.0
-
What version? Because from NAV 2015 onwards you can use the UpdatePropagation property0
-
This is 2015, and changing this property did not help
0 -
Hi,
You could try SendKeys, and send a CTRL-Home. Seems to work here.
However I could not get it to work in my 2016 CU4
DotNet System.Windows.Forms.SendKeys.'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Good luck, I am curious about your result..\\The truth exists in seven versions.0 -
We tried this Peter, but the issue was that this only sent the keys of the page we were actively in. At the moment they have 2 list pages to be updated automaticly.
The solution was the FINDFIRST - but placed on the OnAfterGeteCurrRecord trigger.0 -
Ok, good find. Will try to keep that in the back of my mind.
\\The truth exists in seven versions.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 326 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


