Switching between Edit & ReanOnly mode whole form/screen
Posted: 18 Dec 2014, 21:14
I would like to implement a screen w/ TWO modes: Edit and Read-Only. If user chooses to to edit clicking on a button Edit, it will enable editing mode, otherwise the whole screen is Read-Only. User or program can switch back between modes . I am using PF 5.0.
Any help/tips would be highly appreciated.
--- To make it clear:
First, the screen when loaded will be in read-only mode after retrieving from the database, user cannot edit, the whole screen input fields will be set in read-only mode. If user decides the record needs updated. Edit button required to be clicked. All input fields then will be changed to editable. And also, once user complete updating, then saving the record into database, programmatically switch screen back to read-only mode.
Thanks,
Any help/tips would be highly appreciated.
--- To make it clear:
First, the screen when loaded will be in read-only mode after retrieving from the database, user cannot edit, the whole screen input fields will be set in read-only mode. If user decides the record needs updated. Edit button required to be clicked. All input fields then will be changed to editable. And also, once user complete updating, then saving the record into database, programmatically switch screen back to read-only mode.
Thanks,