I would like to edit records one after the other without going back to the browse form every time.
The workflow should work like this:
1. Fetch the next record (from a table, where a done_flag is not set. e.g. SELECT * FROM customers WHERE cust_done_done is null LIMIT 1;
2. The user inputs data in the edit form/updates some fields
3. The user saves the record (a js/php script would set a 'done' flag/datetime stamp. I know how to do that. Eg. Set cust_done_done = 1 or set it to now())
4. A next record is fetched (basically the same as in step 1)
5. The record is opened in the edit form
Now I'm not sure if there is an inbuilt way to open "any" next record that meets a criteria ( cust_done_done is null)
Looking at nuForm(), I can only pass a specific row id or open the browse form
Code: Select all
nuForm(nuGetProperty('form_id'), r, '', '', '0', '1');