on 08-16-2006 11:11 AM
Hi,
I have created a table UI in which one column contains CellEditor(InputField), now at runtime I want to make this CellEditor to be ReadOnly based on the value of Binded node.
Let say if value is <100 then Cell should be available for Input otherwise it should be in readonly mode.
Also at the time of saving I want to check whether the value Entered by user is numeric or not ... I am able to check the value by looping on the node, but I want to SetFocus on the first wrong entered Cell.
Please revert back incase any doubt.
Regards,
Amit
Amit,
1. ReadOnly: create calculated read-only attribute IsReadOnly of type boolean in node that is table datasource or in 1..1 non-singleton child of thereof. In getter for calculated attribute write:
return element.getSomeTestAttr() < 100.
Bind attribute IsReadOnly to corresponding property of cell editor.
2. Hmmm... Can you just use numeric attributes for input? I mean content attributes with type integer or decimal?
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vellary,
Thanks wonderful solution.
The idea of mapping input filed with context attribute is fine, but in my case due to keep monotony I have to give error messge with Dialog Boxes, that's why I am gving message through tht Dialog and in Event Handler of that Dialog I want to make focus on that particular cell..
Alternatively I have to adopt the numeric context binding option..
Thank you..
Regards,
Amit
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.
Hi,
create an attribute of type boolean in the node you bind to the table. At the runtime you can check the condition based on condition set this attribute to true or false
You can parse the attribute and find whether it is numeric or not
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.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.