on 07-26-2009 10:44 AM
Hi Experts,
I have created WD Program. There is one drop down box in the WD screen. This drop down box gets data from R/3 using RFC.
At present, we are getting data from R/3 without any sorting.
I have to sort the data appearing in the drop down box.
How I can do so?
Regards,
Gary
When you fill the attribute with data from R/3 you use IModifiableSimpleValueSet class.
This class has a sort method.
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 Value help is a drop down by key:
After you run the application ,
click on the value help, a window pops up with key valur pairs,
if you click on the column they will automatically get sorted.
Also if u want to filter you can type the letter (eg: A) in the first row and press enter. it filters the values accordinly.
Regards,
Satya.
Edited by: Satya on Jul 27, 2009 8:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try the below code
wdContext.nodeMainNode().sortElements( new Comparator(){
public int compare( Object o1, Object o2 ){
int i = 0;
IPrivateRFCAppView.IMainNodeElement e1 = ((IPrivateRFCAppView.IMainNodeElement)o1);
IPrivateRFCAppView.IMainNodeElement e2 = ((IPrivateRFCAppView.IMainNodeElement)o2);
i = e1.getVar1().compareToIgnoreCase( e2.getVar1() );
return i;
}//compare
});
Try these threads,
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.