on 08-07-2009 11:51 AM
Hi Experts,
ist it possible in 7.1/7.2 to add a dropdown as a RowElement of RowRepeator?
I added a dropdown but when adding new lines I can only open the dropdown in the first row. The context I used is a value-node with child-node for dropdown content.
Regards, Dorothea
hi Dorothea
it is posible for rowrepeater in 7.1 in ehp1
refert this blog
let me know u need any further information
ravindra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not officially supported but it works. Example:
Context
+ Rows (node, c=0:n)
+ Items (node, c=0:n, s=0:1, singleton=false)
+ text (string)
RowRepeater.dataSource = Rows
RowRepeater.rowElement = DropDownByIndex1
DropDownByIndex1.texts = Rows/Items/@text
Assign an action "ItemSelected" to the "onSelect" event of the drop-down list, add a parameter "row" of type IRowsElement. Map event parameter "nodeElement" to action parameter "row". Then you can find out in the action handler which item in which row has been selected:
void onItemSelectedAction(..., IRowsElement row)
{
int selectedItemIndex = row.nodeItems().getLeadSelection();
if ( selectedItemIndex == IWDNode.NO_SELECTION )
{
wdComponentAPI.getMessageManager().reportSuccess("No item selected at row " + row.index());
}
else
{
wdComponentAPI.getMessageManager().reportSuccess("Item " + selectedItemIndex + " selected at row " + row.index());
}
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.