Hi All,
I have tried to create cascading filter using Dropdown box in Sap Design studio 1.6 version (Local connectivity).
Using Query as a datasource filters worked as expected, same code dint work with csv Datasources.
Steps Followed:
1> Created three Dropdown box ( Region; Country; LE)
2> on Startup of Application, added below scripts:
DROPDOWN_1.setItems(DS_1.getMemberList("GWCOMPPL__ZP_REGION", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
DROPDOWN_2.setItems(DS_1.getMemberList("GWCOMPPL__0COUNTRY", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 30));
DROPDOWN_3.setItems(DS_1.getMemberList("0COMP_CODE", MemberPresentation.INTERNAL_KEY, MemberDisplay.KEY, 30));
3> On Select of First dropdown, Added below script:
DS_1.setFilter("GWCOMPPL__ZP_REGION", DROPDOWN_1.getSelectedValue());
DROPDOWN_2.setItems(DS_1.getMemberList("GWCOMPPL__0COUNTRY", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 30)
do we need to add any other function for csv Datasource?
Thanks,
Jaya