on 09-12-2006 2:59 PM
Hi,
can u tell me how to disable checkbox that comes with the table, and how to change back ground color of a particular column. How to enable sort function for each column ? Is there any standard functionality to do this?.
Thanks.
Sunita.
Hi,
Use the clearSelection() to uncheck and create a attribute of type boolean in the node you use as datasource for table and Set the attribute based on condition
Regards
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks ALL.
/Sunita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For disable the checkboxes,
you should create a boolean type attribute in context under the node which is bound to the table. The no.of boolean attributes belongs to that how many checkboxes you have in your table row.
And there is no property to change the background of the column.
For Table sorter,
in the SDN, from the "sample applications and tutorials" and you can get the list of samples and tutorials, find the sort functions. when you click this you can get a page to download the sample.
from that you will get zip file which contains "TableSorter.java". store it into your webdynpro project under a package.
Create an action bind it to the onAction property of the column. And also create one context attribute with type of TableSorter from the java native type. need not to bind it with any UI Element's property.
write the following code in that action part,
wdContext.currentContextElement().get<SortContextname>().sort(wdEvent,wdContext.node<Tablenode>());
in DoModifyView() write the following,
if (firstTime)
{
IWDTable table = (IWDTable) view.getElement("<TableID>");
wdContext.currentContextElement().set<SortContextname>( new TableSorter(table, wdThis.wdGet<SortingActionName>Action(), null));
}
this will help you.
regards
karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
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.