Hi,
I have added a custom code on the field form "Map to travel requisition", where during the update of "Map to travel requisition" field it will auto delete the existing lines and create new lines based on the value of the field. From the back end, i already check the data in the database that my code work fine.

The problem that i encounter is the form does not refresh after i select another value for the field. I have to manual refresh the form or delete one of the existing line, then the lines will automatic refresh the new value that i have created in my code. I already try research() and refresh() in the onModified() method of the field but it does not work.
How can i make the form auto refresh instead have to manually refresh or delete?
Thanks in advance.
Regards,
Afieq