Hi All,
I relaised that the Previous and Next button at the menu bar does not working properly if i carry out some functions at the form On Next Record trigger.
Eg :
At sales order (F42), i did a mes sage at the On Next Record. So, i will see the message when i click the next record button. However, the record will stay there and will not be able to browse others records anymore.
Please advise. As i need to do some update to others table when user browse the sales record.
Thank you.
Regards
Rachel
0
Comments
When you show a record, do you need data from another table?
Are there fields on the form that can be changed by the user and these fields have to be written to the DB in another table?
PS "OnNextRecord" and "OnFindRecord" triggers are used to manipulate the record that will be taken. In general only used if you have to show records in a temptable (Eg. F498)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thank you for replying.
Well, i would like to know is if the Form triger On Next Record and On After Get Record are allow to have coding for modifying and delete record on other table.
Say, i am in Sales order, when i go to next record, i would like to update a field in my customised table. Is that posibble?
Thank you.
Regards
Rachel
In that case it would be better to put it in the "OnAfterValidate"-Trigger of the field:
CurrForm.SAVERECORD; // this is to save the T36-record in case it has been changed
UpdateMyCustomizedTable(); // this is to save something in the customized table.
In this way both tables are changed in 1 transaction. (in case both tables have been changed by the user).
If it is something else you want to do, you need to explain me what exactly you want to do.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
You have enlighted a lots.
THank ya... i got what you mean.
Rachel
RIS Plus, LLC
to the end of the procdeure else the current record is still same...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.