cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Table (From Read-Only mode to Editable Mode)

sankar_roy
Participant
0 Kudos

Hi Gurus,

I am using a select option in my project. My requirement is " On providing the range in select-option the UI Element table should display the data in read-only mode. I created a button and the button name is change. At run time when i will click on the change button, the table should be in an editable mode.

Can anybody help me on this by providing the code for the same requirement.

Thanks in Advance.

Regards,

Sankar

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

Create a context variable of type boolean.

Set the variable to the read-only property of the table.

On click of the button, if value is false, set it to true. This will make the table non-editable. Second click reverse the value.

Regards,

Sharath

former_member184578
Active Contributor
0 Kudos

Hi,

You have to create a table with Input Field cell editor instead of Text view. Check this document http://scn.sap.com/docs/DOC-27125 In this I have demonstrated for one row. You can follow this for all the rows to make editable/disable at runtime.

Hope this helps u.,

Regards,

Kiran