Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TMG field conditionally editable

rangerlet_mesee
Participant
0 Kudos
283

A field in a TMG is needed to be editable only when one of the other fields holds a value How to achieve it ? Is it through an event?

1 REPLY 1

rgore
Product and Topic Expert
Product and Topic Expert
229

Unfortunately there are no events triggered during PBO of the dynpro. Also you have to revisit the requirement because the enable/disable of cell in Table Control based on some other cell value can only be achieved partially.

For example, while creating new entries, all cells will be editable. So to enable/disable a cell, the user must provide the inputs in other cells and then press Enter, so that you can enable/disable the other cell.

But what if, the user clicks on Save directly instead of Enter, then the values entered in other cells are considered and saved in the corresponding DB table.

What I would do is, implement the "Before Save" event and add a validation that, if input in the cell is not allowed based on some other cell value then raise the message and abort the save.