Hello Dirk,
I am so sorry to be replying to such an old message but I am having the exact same issue and the proposed solution does not seem to be working so I hope I can pick your brains just a litte bit please.
What I am trying to do:
I have a dimension filter that changes my crosstab selections [DS_1] based on an INDICATOR(key). I am trying to display in a text box a property (or attribute [UOFM]) for my dimension[INDICATOR]. My crosstab is made up of the following:
Indicator measure by Time and Version (actual and target). I am trying to get the Unit of Measure of the selected Indicator in a text box. This unit of measure is an attribute of my Performance Indicator. Since I am using BPC data, it can also be a stand alone dimension.
Based on your previous steps, some logic I have right now:
On Startup:
DROPDOWN_1.setItems(DS_1.getMemberList("UOFM", MemberPresentation.INTERNAL_KEY,MemberDisplay.key, 10));
This woks perfectly fine. It is now populated with the 4 Units of Measure that my indicators can have.
The next step is where I get stuck. My dropdown doesn't seem to want to change based on the selection made in the crosstab, it always stays at the first one.
On Event for Crosstab:
DROPDOWN_1.setSelectedValue(CROSSTAB_1.getSelectedMember("UOFM", internalKey);
And then of course, to populate the text:
TEXT_1.setText(DROPDOWN_1.getSelectedValue());
Any idea on how I can alter the second line of code to get the dropdown to change for it to pick up the UofM - the attribute - of the filtered Indicator?
Thank you so much for your time,
Nikki