I'm using Design Studio 1.5 SP1. This allows you to use a lot of components without having to write your own Javascript. In this case, I did use script because I wanted to fill a dropdown box with dimension values + the "ALL" value. When selecting the "ALL" value, the filter is set to all the dimension values, i.e. it's unfiltered.
Unfortunately, while I can select, and thereby filter any dimension value, selecting "ALL" leads to a dump.
"Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_ESCEPTION"
My application includes two scripts,
onStartup
DROPDOWN_2.setItems(DS_1.getMemberList("4CPM-LAND_TEXT", MemberPresentation.EXTERNAL_KEY, MemberDisplay.TEXT, 20, "ALL") );
onSelection
DS_1.setFilter("4CPM-LAND_TEXT", DROPDOWN_2.getSelectedValue());
I changed the onSelection script (see below), and selecting ALL didn't produce a dump.
if (DROPDOWN_2.getSelectedValue() == "")
{ DS_1.clearFilter("4CPM-LAND_TEXT"); }
else
{ DS_1.setFilter("4CPM-LAND_TEXT", DROPDOWN_2.getSelectedValue()); }
According to note 2169716 there are restrictions when using DS on HANA views as a DataSource, e.g. for invalid/ nonexistent members in setFilter.
But in this case, I'm using a query built on a composite provider built on a HANA view.
Is this an SAP error, or am I doing something wrong? Any help will be appreciated.
Regards,
Martin