How to refresh a form using a temporary table?

RoelofRoelof Member Posts: 377
I'm trying to refresh/update my form after I made some changes on a record. The form is using a temporary table.
The reason for the refresh is that I have a Record field as a boolean what you can check/uncheck if the record is a default address record. When checking the record as the default, I need to make sure that the previous default is unchecked, since only one record can be the default record.
Currently to refresh the form is adding some code on the OnAfterValidate field trigger what is calling a function in the form to delete and rebuild the temporary table. That seems to run just fine but it has no impact on the form itself. Currform.update, Currform.UpdateControls, Currform.SaveRecord. All of that does not have any impact.
Any ideas?
Roelof de Jonghttp://www.wye.com

Comments

  • kinekine Member Posts: 12,562
    CurrForm.Update(False) should have effect if called after the temp table is rebuilded.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.