- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2024 11:34 PM
Hi,
I have created Submit button in scoped application for one table when we click on the submit need to update the field for that I have written as given below and it should be redirect to list view of that table and please let me know the which I have written as per the best practices or not if not, please correct my code.
current.u_draft = false;
current.update();
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2024 11:44 PM
Hi @Khalid9030,
please check below script:
// Update the field 'u_draft' to false for the current record
current.u_draft = false;
current.update();
// Redirect to the list view of the table
action.setRedirectURL('/table_name.do');
Thank you, please make helpful if you accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 12:05 AM
Hi @Khalid9030 ,
I tried your problem in my PDI and it works for you can add one line
When I click it came to list view
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak