• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

DataSource Pre-execution program running multiple times and causing duplication issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DataSource Pre-execution program running multiple times and causing duplication issue

    I've got an Edit grid app that runs a pre-execution program to build a table that is used in the overall datasource. My users and I have been running into an issue with the report having either duplicate rows, or doubled values in the row. the program that runs before hand basically just grabs sums from other tables and compiles it all into one table with an item, and the quantity for that item. I've been trying to put some displays into the code to debug why its duplicating and i noticed that the displays are showing up multiple times, meaning that the program is getting called more than once (sometimes up to 5 times). since the duplication is very inconsistent im wondering if this is the cause. Is there a way to force the pre-execution program to only run once when the app is called?

  • #2
    The pre-execution will be called each time that data source is run. You can view the calls to the data source if you open the NAB Developer tools and click the Network tab.

    Comment

    Working...
    X