I have few rows displayed in the advanced table region on a OAF Page.
The page has 3 columns i.e., Col1, Col2 and Col3
I also have Add Row button on this table.
When I open the page, by default it displays 4 rows. Now I dont want users to update these 4 rows. But users can insert new rows by clicking on the add row button.
When users click on Add row button I am able to create a new row but how to stop users from updating the already displayed 4 rows.
Please help me.
Many thanks in advance.
You set Property of Fetch row ready only and when user add a row that row have property TextInput and when u save that row in data base all row become read only. Using SPEL U Achive this .
Edited by: Azad Jangra on Dec 12, 2012 12:30 PM
Define a transient attribute and name it as freeze and set value as Y default and When the query is executed from the process request set the value as Y and make the fields as read only if the value is Y.
When add row button is pressed, get the value of the current row and set the value of freeze to the current row as N. In this way only the new rows added will be editable. On Save, Make the freeze value to Y for all the records.
I have done the same and it would resolve your issue.