Refresh the form after importing values

Piyoosh_SharmaPiyoosh_Sharma Member Posts: 3

I'm uploading some values in the Production BOM Line form by using a dataport . Values are uploading, but they are not showing to me. Those values are showing to me after closing and opening the form again.

Is there any solution to refresh the form automatically after importing the values?



  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Try to put CurrForm.UPDATE; after the code that executes your dataport.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    Piyoosh_SharmaPiyoosh_Sharma Member Posts: 3
    I've done that already, but it is not working.
  • Options
    ChinmoyChinmoy Member Posts: 359
    What I understand is that the records you have uploaded through dataport is not displayed on the form. This will probably happen because NAV is not retrieving the data in the form again if you have not changed in the form manually. NAV probably thinks that nothing has changed. You can try a combination of CurrForm.SAVERECORD() and CurrForm.UPDATE() and see if it works.

    Or, if possible, make a different interface for importing the data and after the data is imported successfully open the form.

    See if any of this works.. :)
Sign In or Register to comment.