Skip to Content
0
Oct 04, 2019 at 09:38 AM

SAC Application Designer: Read values from rows of a table

1179 Views Last edit Oct 04, 2019 at 09:38 AM 2 rev

Hello together!

Is it possible to get the (filtered) values of a dimension dispayed in a checkbox?

Eg. Users filtered a value for Customer in a filter line. A checkbox should read out the values for e.g material which is offered by the customer.

E.g. the Customer 4711 offered the material 1, 2, 3 and 4. The DataSoruce contains the materials 1, 2, 3, 4, 5, 6, 7, 8, 9. 10

With the code below I'm getting all members of the dimension of Material, but not the filtered.

var customerMat = Chart_Customer.getDataSource().getMembers("Material");
for (var i = 0; i < customerMat.length; i++ {
     CheckboxGroup_Material.addItem(customerMat[i].id, customerMat[i].description);
}