on 09-18-2007 12:37 PM
Hi,
Kindly tell me the differences between the UI elements "DROPDOWNBYINDEX" and "DROPDOWNBYKEY"..
Please explain with an example scenario.
Regards,
Kalai
Hi,
Here are some main differences between DropDownByIndex and DropDownByKey.
1) The data type of the attribute which is binded to DDBK, is a simple dictionary type, and DDBI is a simple data type.
2) DDBK will return the 'Key' when an item is selected --- DDBI will return the 'index' of the selected element.
regards,
Prabhakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The diff between DDK and DDI is
The values u need to display in dropdown by using the Array u can utilize DDI.
The values u need to display in dropdown by using KEY VALUE pairs puprose u use DDK.
Here we have fecility Value help in WD we can utilize the DDK.
DDK Example
http://help.sap.com/saphelp_nw70/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
DDI Example
http://help.sap.com/saphelp_nw70/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
Thanks,
Lohi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DropDownByKey provides static data in DropDown and DropDownByIndex makes it dynamic.
DropDownByKey: Is used when u want to use data dictionary type.For this create a dictionary of simple type in the dictionary.
Creating the Simple Type:
Ur project>dictionaries>Data Types-->Simple Types right click and select Create Simple Type.
After entering the name and package, open that and click on "enumeration" tab at the bottom of the same. Now add the Value and Description to be displayed.The created simple type can be used for DropDownByKey.
Binding it to the UI element:
Now create a valueattribute and change the type to the dictionary type(created simple type). Finally bind the DropDownByKey UI element to the value attribute.
DropDownByIndex: Is used while we have to get the data from the database. Here we directly bind the DropDownByIndex UI element to the context node(attribute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
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.