on 06-24-2010 10:10 PM
Hi
I have a Dropdown by key UI element which populates list of countries (from a BAPI). I have to change the dropdown so it displays only one country. How can I remove other countries that dont need to be displayed in the list. Any help is appreciated.
Thanks,
Jai
Hi Jai,
Poojith is correct. Based on the condition you need to set value to value set as you only want one value.
Cheers
Arun Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If the list of countries is used only at one place and u need to display only one country then better ask your Abaper to send only the required country Else u can follow the procedure suggested above.
Regrads
Surender Dahiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When u add the values using the IModifableValueSet API to add the values of countried from a BAPI, check for the condition and then add.
Eg:
ISimpleTypeModifiable simpleType = wdContext().getNodeInfo.getAttributeInfo("<attributeName binded to the DD>").getSimpleTypeModifiable();
IModifiableValueSet valueSet = simpleType.getSVServices().getModifiableValueSet();
valueSet.clear();
for(int i = 0; i < <Size of the BAPI table of countries>; i++)
{
if(condition)
{
valueSet.put(countryKey, countryValue);
}
}
This will help u in adding those values based on the condition. Hope this helps you.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.