on 10-21-2005 7:24 AM
Hi all,
I have a DropDownByIndex.This is populated after executing RFC.This is done.But its having one empty row and other rows are having values.I want to avoid that empty row and instead of that i want to show -Select network- as a default value.How to accomplish this?can anyone help me out?
Thankx in advance.
Regards,
Karthick
Set the "Selection Cardinality" property of the node which your DropDownByIndex is bound to.
Selection Cardinality 1..1
the blank row will not appear again
the blank row appears if 0 is allowed for "Selection Cardinality"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthick,
Sorry for the earlier reply. I had misunderstood your requirement.
The posssible way to achieve this is to remove the blank row coming in the dropdown, then add a new element in the first index with the required text.
Let the attribute bound to the dropdown be 'attr' .Let it's parent node be 'parent_node'.
So to remove the blank row, set the 'selection' property of 'parent_node' as '1..1' instead of '0..1'. Since it is a mapped node, you won't be able to change this in the view, but only from the component controller context.
Now after calling the RFC write these lines of code in the view:
IPrivate<View>.I<parent_node>Element elmt = wdContext.create<parent_node>Element();
elmt.setAttrib("Select network");
wdContext.node<parent_node>().addElement(0,elmt);
wdContext.node<parent_node>().setLeadSelection(0);
This will show the first row of the dropdown as required.
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.