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?
Answers
IF FINDFIRST() THEN ;
...before the
currpage.update(false);
?
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>();
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 solution was the FINDFIRST - but placed on the OnAfterGeteCurrRecord trigger.