Is there any way to create an SAP dropdown box object within a Javascript function?
We have a standard web template that is used by all queries. We would like to have a dropdown box for the key figures but the structural ID of the key fields is different in each query so we must therefore retrieve the key field structure from the data_provider and then allocate it against against the param IOBJNM within a Javascript function. This is where we are struggling. Has anyone done something similar?
Any examples would be greatly appreciated.
Cheers
Shep.
Hi,
I wouldn't try it that way. Instead in your case I would utilize the Table Interface to get the structure elements written in a javascript function.
therefore redefine the finished method
http://help.sap.com/saphelp_nw04/helpdata/en/e5/73a63a9f5f4548e10000000a11402f/frameset.htm
and use in there set_javascript_function
http://help.sap.com/saphelp_nw04/helpdata/en/5f/e7393c0fc8486ce10000000a11402f/frameset.htm
You can find the Structure elements in
n_r_data_set->N_R_REQUEST->N_SX_REQUEST-mem
Just loop through the table and create a small javascript function (which will return the structure elements of a given structure). Then you can use it in your coding.
Heike
Add a comment