cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Calculation Builder Variables

mornee_parsons1
Discoverer
0 Kudos

Hi folks!

I am using sap.suite.ui.commons.CalculationBuilder (version 1.71) and creating custom variables that can be used inside the calculation builder.

But the number of vairables are limited to 100.

Is there any way to increase this size?

I am currently binding the variables to a local model {calcModel>/variables}, which in this case has 116 entries, but when I retrieve or display the variables, it only shows the first 100.

This is an extract from console:

Any advicee will be welcomed!

Accepted Solutions (1)

Accepted Solutions (1)

mornee_parsons1
Discoverer
0 Kudos

I have fixed the issue by adding the variables manually and not binding it to a model:

this.getModel("variables").getData().forEach(function (oVariable) {
    oBuilder.addVariable(new CalculationBuilderVariable({
	"key": oVariable.CriteriaId,
	"label": oVariable.CriteriaText
    }));
});

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

yourjsonmodel.setSizeLimit(99999)

mornee_parsons1
Discoverer
0 Kudos

Hi,

As stated above, my model already has more than 100 records.

junwu
Active Contributor
0 Kudos

did you try the code?