2022 Dec 01 5:45 PM
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?
2022 Dec 02 2:47 AM
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.