Redirect after saving a record

12 views
Skip to first unread message

dros...@gmail.com

unread,
Mar 3, 2021, 9:54:34 AM3/3/21
to Lightning - 4D Web Applications
I have a button in a Lightning detail form, whose code looks like this:

<ltg-button action="Save" table="Course_Applications" title="Submit this Application" method="Ltg_CPApp_SaveRec"/>

After the Ltg_CPApp_SaveRec method is executed, the form's callback method is (automatically) executed again and the form is refreshed. I do not want this to happen - I want to either redirect to a non-Lightning URL, or call WEB SEND TEXT. Neither of these works - they are ignored. 

Is there a way to do this?

David Rose

Graham Langley

unread,
Mar 8, 2021, 3:58:01 AM3/8/21
to Lightning - 4D Web Applications
David,

Try using one of the below instead;

<ltg-button action="Save" table="Course_Applications" title="Submit this Application" onclick="ltgExecuteMethod('Ltg_CPApp_SaveRec');"/>

<ltg-button title="Submit this Application" onclick="ltgExecuteMethod('Ltg_CPApp_SaveRec');"/>

Reply all
Reply to author
Forward
0 new messages