cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Table Element - TableCellEditor element as read-only.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

1)It is possible.Go to the properties of the Inputfield and make readonly=true.

Regards

Hazrath