Tips and Tricks on Sage ACCPAC ERP's Views: 2. How to get data immediately displayed on the screen when updated in the views?

By | May 18, 2011

PROBLEM:
I have a view which updates some set of fields in the process method but I need to display this updated data on my Screen instantly, but could find out the way out.
SOLUTION:
There is property “INSTANTVIEWUPDATE” in the datasource, which refreshes the datasource every time when any update is done.

Below is the snippet of the code:
1st STEP: You can set the InstantViewUpdate property = TRUE for all the fields in the datasource.This can be done on the InitAPPCallOut/ UI_UIAppOpened method.
dsPORCPH.fields(“TAMOUNT1”).InstantViewUpdate = TRUE
2nd STEP: You need to Refresh the Values for the particular fields.
dsPORCPH.Fields(“TAMOUNT1”).RefreshValue

Happy Coding 🙂