Hi guys!
I'm wondering if anyone of you has already faced a problem like this.
I've a List Page in Nav 2009 R2 and I need to execute a specific code when I pass from one record to another using arrows or selecting one record with mouse (so I select a record and I want to execute the code that will be different according to record selected).
I thought that OnAfterGetRecord() could be the right trigger but, first of all when I launch the page execute the code according to the number of records, and however it's not executed "navigating" in the list with arrows or mouse.
Please let me know if there's a way to do this
I would thank you in advance!
Comments
You should create new function on you page. This function should return some Text/Code value, otherwise it will not work.
Assign this function to the DataCaptionExpr property of the page.
After that, this function will be called each time when you move from one record to another, and you will be able to put your specific code there.
If my explanation is not clear, I can provide you more detailed info.
I show you what I did so you can tell me if I did any mistake.
1. this is my simple function with return value code. 2. I put FunctionTest as value of the DataCaptionExpr of the page.
now if I run the page it prints all "no." of all records before showing me the page.
I would message be printed when I select a record.
It works as expected... More or Less...
Sorry for wrong suggestion.
In my case such solution works for Worksheet page.
Also you can take a look on how General Journal page works (I mean, updating of the Account Name, Balance etc. fields on the buttom of the page).
It might be helpful.
You do not have to apologize! Thx again for suggestions!
I'll take a look to General Journal!
It works as expected... More or Less...