Hi All,
I have run across an issue i cant seem to find a solution to. On business hub, i often build data apps and loop over one page with new data sets. Imagine that the incoming data table has a long list of subjects (in my case, it’s drug candidates), and i want to interact with the all of the available data one subject at a time. This approach allows me to build complex, interactive visualizations for the consumer.
Here is an example i am working on:
In my current example, i use a loop to select a single subject and then plot some data associated with that subject for the consumer to review. As part of this, i use a python scripting node to fit the data and create the plot for viewing in the same script (for life science folks, is a 4-paramter logistical fit of a dose-response curve). The purpose of this view is to inspect the fit and remove outlying data points and refit the curve, if needed. Since the python plot is static, this is accomplished using a table editor node to select the data, filter it out and refit the curve after pressing the refresh widget button. Here is what it looks like inside the component:
this view works perfectly and when deployed on the Business Hub and the looping works very smoothly. I’ve been doing loops on Business Hub this way for years but this is my first time with a python scripting node that gets refreshed.
The issue i have uncovered is that whenever i remove a datapoint with the refresh button, all previous loop iterations are “forgotten” and are not concatenated at the loop end node. This is not a Business Hub issue as it also happens on AP.
Any ideas why this is happening and how to address the issue?
Thx in advance!

