on 01-15-2013 2:54 PM
Hi Experts,
I have a search help attached to an input field. The search help returns me a list of all possibel values. Can i get these values as a drop down in a DD by Key UI without any coding ? In other words, i want the F4 values as a dropdown in a dropdown UI.
Thanks,
Pris.
Hi Pris,
When using a DropDownByKey or DropDownByIndex element, the set of possible values is available automatically only for context attributes having a data type with fixed values defined in the underlying domain. So you could create a custom domain with fixed values and a related data element, and use that data element to define your context attribute.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for sharing the document. If data extraction is required for populating values to dropdown field, will it be better to map a supply function with the context (related to dropdown field) rather than writing the code in WDDOINIT method ?
If we are using the supply function, current context node information is already available in the importing parameter "NODE". Only activity to be done is, data extraction & mapping the data to context node with NODE->BIND_ELEMENTS method.
Regards, Vinod
Hi Amy,
WDDOINIT works nice for populating the values, I tried to populate the "DropDownByIndex" element using a supply function as below, which worked perfectly.
DATA : lt_input TYPE wd_this->elements_input.
SELECT vkorg FROM tvko
INTO TABLE lt_input.
node->bind_elements( lt_input ).
Regards, Vinod
Hi Vinod,
Yes, you're correct, DropDownByIndex takes its values from a 0..n or 1..n node, so in the case of a DropDownByIndex, you can populate the node with a supply function as usual. Above, I was referring to DropDownByKey, whose data binding model differs from DropDownByIndex in that its value set is taken from a context node's context_node_info object.
Since Pris' question was about DropDownByKey, I thought you were asking about DropDownByKey too, but you're right that the text node behind a DropDownByIndex can be populated with a supply function-- in fact using a supply function in this scenario is probably a good practice.
Cheers,
Amy
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.