This content has been marked as final. Show 3 replies
I am trying to have a simple solution to save tabular form before Adding a new Row.
so I asssigned 2 dynamic actions to the AddRow button to submit and runYou have to understand two things here:
I have made sure the sequence numbers are correct to submit first. But what it ended up with looks like addrow() got run first.
So I then adited to run the below scripts on a dynamic action, but it is still not right.
So this will not work because once the page is rendered again after doSubmit().
Thanks for the inputs, VC.
It is because the content in the newly inserted rows need to be saved regularly.
The users would often work on many rows for data input. The problem we have is that Popup LOVs are not saved untill you click on save/submit/appy changes button.
If the user encounters any error which makes the tabular form reload, then they lose the large amount of data they just put/changed.
So the idea was to force a saving when they add a new row.
Just an idea -
What you can do is that add a dynamic action that adds a blank row on every page load
Event: Page Load
And edit the Add Row button and change the Target URL so that it submits the page when clicked
//add this code addRow();