on 03-27-2008 5:45 AM
Hello Experts,
I think I have a distinct problem with the Table UI Element in Web Dynpro.
Please allow me to explain with an example.
I have a table with two columns. Each of the column is of an InputField UI Element type.
Column1 | Column2
....................................
InputField | InputField
InputField | InputField
..
..
Now, I would like to have one of the InputField's as ReadOnly. Let's say, the second InputField in Column2.
Is this possible?
Does the Table UI element allow such features? If not, is there a way in which I can make this work?
Many Thanks for taking you time to read this post.
Any replies will be greately appreciated.
Regards,
Narayana
Hi,
If you are looking at making inputfields in particular rows read-only, then you should
1. Create a context attribute of type boolean under the node bound to the "datasource" property of the table.
2. Bind this to the "readonly" property of the inputfield under the second table column at design time.
3. Set this attribute to true for appropriate rows while populating the table data.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Experts,
The problem re-surfaces when I deal with model nodes. This time, my Context nodes are nothing more than a replica of the Model and I do not have a boolean value being passed from the Model.
Would be glad if someone could throw a little more light on this..
Warm Regards,
Narayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hazrath,
This would result in the entire Column2 to be ReadOnly. But all I need is a single InputField to be ReadOnly.
Maybe I can add a realistic example here.
Trip Expense | Amount
......................................
Basic Perdium | 1000$ <----
This amount should not be editable. It's a fixed amount.
.......................................
Transportation | 500$ <----
This is editable as it vary's every trip.
.......................................
Hope I've explained the situation better.
Warm Regards,
Narayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
a). Create a context attribute of type boolean under the node bound to the "datasource" property of the table.
For ex:ur node is
Node1, under this create a attribute cvar of type boolean
b). Bind this to the "readonly" property of the inputfield under the second table column at design time.
c). Set this attribute to true for appropriate rows(ur wnated rows) while populating the table data.
Regards
Hazrath
Hi
1)It is possible.Go to the properties of the Inputfield and make readonly=true.
Regards
Hazrath
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.