on 11-14-2005 4:19 PM
Hi,
All my cell editors in the table are getting disabled when attach my model node to the table.
Can any one give me a solution please
regards,
Kumar.
Hi Kuamar,
Is it properly mapped to model? These type of problems comes, when we dont map properly to model. Check it once?
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aditya,
The table is disabled because you haven't created elements for the node. Each row of a table represents an element of the bounded node. So before the table is displayed, create as many elements as the no: of rows you want by this code:
Let <table node> be the node that you have bound to the table.
IPrivate<your view>.I<tableNode>Element elmt;
for(int i=0;i<no_of_rows_req;i++)
{
elmt = wdContext.node<table node>().create<table node>Element();
// if you want some data to be shown as the default ones, you can do it here as
elmt.set<attribute name>(<data>);
wdContext.node<table node>().addElement(elmt);
}
Now those many rows will be active.
Hope this helps,
Best Regards,
Nibu.
Probably your model is empty or not bound correctly such that the table cell editors have no storage location. In this case editors are disabled by the framework.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
armin,
What do you mean by model is empty? Can you please explain. The contents of the table should go as input to the model (Bapi) and so i have directly attached the table to the model.
and in my init i have written the code;
Bapi_Salesorder_Createfromdat2_Input createSO_input = new Bapi_Salesorder_Createfromdat2_Input();
wdContext.nodeBapi_Salesorder_Createfromdat2_Input().
bind(createSO_input);
Renjith;
Neither my table is not disabled nor the cell editors (enabled = true; readonly = false)
Hi Kumar,
Pls check the properties of the Table containing the cell editors.
The table properties over-ride the corresponding column properties.
For ex: if the table is 'disabled', then the fields in it will not be editable no matter what the settings are at column level.
Thanks & Regards,
Renjith
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.