cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Planning via BPC: .submitData() for two tables with the same live model

maxboo
Explorer
503

Hi Experts,

i am trying to distribute value from one table to another which share the same model (live connection bw query).

So code goes similar to this:

var resultset_A = Table_A.getDataSource().getResultSet();

var value_A = resultset_A[0][Alias.MeasureDimension].rawValue / countervariable;

//Zeroing the initial value

Table_A.getPlanning().setUserInput({"@MeasureDimension":"abc", "Dimension1":"xyz", "Dimension2":"0001"}, "0");

Table_A.getPlanning().submitData();

//Writing it into another selections with the countervariable calculation

Table_B.getPlanning().setUserInput({"@MeasureDimension":"abc", "Dimension1":"xyz", "Dimension":"0002"}, "value_A");

Table_B.getPlanning().submitData();

The problem is now with the first Table_A.submitData(). It refreshes also Table_B and while Table_B is also loading/refreshing the code Table_B.submitData() seems to have problems submitting the values because it is in an "Illegal State" (Maybe cause refresh?!). Both submitData return true though.

Do i really need to have somehow a hidden table where both columns i want to change are in the same table widget?

Regards,

Max

Accepted Solutions (0)

Answers (0)