on 03-23-2010 7:41 AM
Hai Experts,
I just want to sort the fields of the dropdown box in webdyn pro. How can I do it? Please help.
Regards,
Srija.
Hi
This code snippet might be helpful for you.
data: itab type table of zdepdet, "zdepdet is a ztable with fields empid and empname
wa like line of itab.
select * from zdepdet into table itab.
delete adjacent duplicates from itab comparing dept.
wa-dept = '--Select--'.
* wa-ename = 0.
append wa to itab.
sort itab ascending by empid.
loop at itab into wa.
ls_dept-empid = wa-empid.
ls_dept-dept = wa-dept.
append ls_dept to lt_dept.
endloop.
*** bind all the elements
node->bind_table(
new_items = lt_dept
set_initial_elements = abap_true ).
Regards
Arun.P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank u so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a dropdown box with city name, it is already sorted by city ID but now i have to sort it by description. Wat i have to do for this? Plz explain me clearly I am a beginer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While filling the context node bound to drop down node, you have to take care of sorting the data and then binding it.
Regards
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.