on 07-09-2009 3:38 PM
Hi All
I have a webdynpro Table with input fields as the cells of table.
How can i make some specific input fields inside a webdynpro table as readonly depending on some specific criteria at runtime ?
Chinmaya
Thank you all.
individual cells can made readonly by taking one boolean variable in the context node and this boolean variable is set to the table/cell(inputfield) cell readonly property.
Again thanks to all for your valuable answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What do u mean of Full functionality?
For example your node structure is as below:
TestNode
--> Att1
--> Att2
--> readOnly (type: boolan)
If you have binded the Att2 attribtue to inputfield in the table column. Now bind readOnly boolean attribute to "ReadOnly" property of inputfield.
For example based on the Att1 value you need to make read only of inputfiled then write the code as below:
for(int iCount=0;iCount<wdContext.nodeTestNode().size();iCount++)
{
if(wdContext.nodeTestNode().getTestNodeElementAt(iCount).getAtt1().equalsIgnorecase("X"))
{
wdContext.nodeTestNode().getTestNodeElementAt(iCount).setReadOnly(true);
}
else
{
wdContext.nodeTestNode().getTestNodeElementAt(iCount).setReadOnly(false);
}
}
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a boolean attribute inside the data source node, bind the "readOnly" property of the cell editor to this attribute, set the attribute value to TRUE for those rows / node elements where your condition holds.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ChinMaya
you can create a cell variant with readonly attribute set to true, and when the specific criteria was true put the cell variant instead the editable input.
Regards
Marcos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.