Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Cascading Filter is not working.

$
0
0

Hi All,

 

 

I am new to Design Studio(may be I'm asking something very silly)

 

I am trying to create a cascading filter in Design Studio. The data source I am using is eFashion.unx
The objects are State(OBJ_218), City(OBJ_166) and Quantity Sold.

 

Below are the steps:

 

1. Drag and drop two Dropdown boxes (DROPDOWN_1 and DROPDOWN_2).

 

2. Write a script for event "OnStartup" of application.

 

DROPDOWN_1.setItems(DS_1.getMemberList("OBJ_218",MemberPresentation.INTERNAL_KEY,MemberDisplay.TEXT,20));

DROPDOWN_2.setItems(DS_1.getMemberList("OBJ_166",MemberPresentation.INTERNAL_KEY,MemberDisplay.TEXT,20));

 

3. Write a script for event "OnSelect" of component DROPDOWN_1

 

DS_1.setFilter("OBJ_218", DROPDOWN_1.getSelectedValue());

DROPDOWN_2.setItems(DS_1.getMemberList("OBJ_166", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT,20));

 

4.Don't write script for DROPDOWN_2

 

5.Save and Execute the application.

 

6. Select any State in DROPDOWN_1

 

7. Notice that the DRPDOWN_2 shows the entire City of entire State. As per my thinking it should show the Cities corresponding to selected State.

 

Am I missing something in the script? Any lead will be appreciated.

 

Regards,
Piyush


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>