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

How to resolve the default selection in List box which is displaying result for 'All' in Cross tab?

$
0
0

Hello experts,

 

We are on Design Studio 1.5. We have dimension in a BEx query, from which we are populating the values for the list box. We have 4 tabs - Components, Assembly, Bags, and Hats, and we have list boxes for each of these tabs. The values (vendor text) in the list box should change according to the region drop-down at the top. Eg: North America selection would give specific list of vendors, China would give some other vendors etc. Upon selecting any value from the list box (we do not have multiple selection option) in our list box, the cross tabs should appear as desired.

 

All these work perfectly fine. The only issue is whenever the application is opened, the first value highlighted in the list box, gives the result for "All" instead of displaying the cross tab by filtering the result on that particular vendor. This is the case also when we switch regions from the drop-down, the first highlighted vendor text from list box gives the values for "All" in the cross tab. Our requirement is not to have an "All" in the list box, so, my code for the list box population does not have any "All" selection. In spite of that, even though "All" does not appear in my list box, somehow Design Studio populates the values for "All" selection in the cross tab for the first(top-most) highlighted vendor. But when the user clicks on some other vendor, and then clicks on the top-most (highlighted) vendor, the cross tab is displayed correctly by filtering only on that particular vendor.

 

I tried giving setSelectedValue("") in the on-Start up but with no luck. I read other posts, but was not able to arrive at any solution.

 

How do I make sure the default selection (top-most / first) highlighted vendor populates the cross tabs properly (by filtering on that particular vendor), and does not display the cross tab for "All" selection?

 

Many thanks for your time!

 

Thanks,

Goutham

 

 

1. This code is used to populate the list box according to the Region Drop-down selection:

 

if(DP_REGION_SELECTION_QM.getSelectedText()!="All")

{

 

 

APPLICATION.setVariableValueExt("ZGOPREGV", DP_REGION_SELECTION_QM.getSelectedValue());

 

LB_COMPONENTS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

  LB_ASSEMBLY_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

  LB_BAGS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

  LB_HATS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

  LB_COMPONENTS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

 

}

 

else if(DP_REGION_SELECTION_QM.getSelectedText()=="All")

{

DS_1.setVariableValueExt("ZGOPREGV", "");

 

 

DP_REGION_SELECTION_QM.setItems(DS_QM_FILTERS.getMemberList("ZGOREGION", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 100, "All"));

LB_COMPONENTS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_ASSEMBLY_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_BAGS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_HATS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

 

2. Below code is the 0n select code in my list box which displays the cross-tabs. I am just providing "Components" list box (LB_COMPONENTS_VENDOR_SELECTOR) code here.

 

DS_COMP_2ND_LEVEL.setFilter("0VENDOR__0NAME2", LB_COMPONENTS_VENDOR_SELECTOR.getSelectedValue());

 

    DS_COMP_2ND_QUARTERLY.setFilter("0VENDOR__0NAME2", LB_COMPONENTS_VENDOR_SELECTOR.getSelectedValue());

   

    DS_COMP_2ND_YEARLY.setFilter("0VENDOR__0NAME2", LB_COMPONENTS_VENDOR_SELECTOR.getSelectedValue());

 

 

3. Below code is in the On Start up of the application:

 

LB_COMPONENTS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_ASSEMBLY_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_BAGS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));

LB_HATS_VENDOR_SELECTOR.setItems(DS_1.getMemberList("0VENDOR__0NAME2", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 200));


Viewing all articles
Browse latest Browse all 923

Trending Articles



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