on 09-18-2007 6:37 AM
Hi all,
I am new to webdynpro and my requirement is to create a table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining to a newcomer.Reply ASAP as i have to do it today.
Thanxs
Hi,
1. Create a value node in your context name Table and set its cardinality to 0:n
2. Create 2 value attributes within the Table node name value1 and value2
3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
you have created a table and binded its value to context
Table UI properties
4.Set Selection Mode to Multi
5.Set Visible Row Count to 5
6.ScrollableColCount to 5
In your implemetaion, you can add values to table as follow:
IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
ele.setValue1(<value>);
ele.setValue2(<value>);
wdContext.nodeTable().addElement(ele);
The above code will allow you to add elements to your table node.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure that the context node used as data source for the Table UI element has the following properties:
cardinality: 0:N
selection: 0:N
Then just bind the Table.dataSource property to this node, that's it.
Concerning the scrollbar: In releases <=NW 7.0, you will get paginator buttons for scrolling. in NW 7.1 you will get a real scrollbar.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit
1) Create Context Node (with some attributes) //
2) Bind the Context node of Component Controller to View Controller
3) in View's <b>RootUIElementContainer</b> [<i>left side bottom of the screen</i>]
4) Right Click and select <b>Apply Template</b>
5) Select <b>Table</b> from the list
6) Select the Context node / selected fields which you want to display in the talbe
7) Finish
😎 Goto <b>SelectionMode</b> proerty of Table and choose <b>Multi</b>
9)Set <b>VisibleRowCount</b> to 5
10)<b>ScrollableColCount</b> to 5
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
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.