NetTalk Central

Author Topic: Add a Save and Continue to edit button  (Read 2893 times)

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Add a Save and Continue to edit button
« on: January 19, 2024, 05:54:39 PM »
I want 2 button on a form.
1 being the normal save and return to browse,
2 being a save and continue to edit the form.

Reason:  I like having relational integrity on.  I have a number of tabs on the form with related lists. I only want to be able to show/add to the related tables if I have saved the parent (the row on the form).  Obviously this really only applies when inserting a new record.
How might one achieve this?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Add a Save and Continue to edit button
« Reply #1 on: January 21, 2024, 10:57:13 PM »
a) On Pre-Insert create the record, and switch to "Change" mode.
b) Create an Other button, which when pressed, updates the record on disk with all the current session values.

Cheers
Bruce

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Add a Save and Continue to edit button
« Reply #2 on: January 23, 2024, 09:32:02 PM »
Hi Bruce,
That approach isn't working.
There are a couple of required fields, the main one being be the equivalent of an invoice customer that is required before saving.  Attempting that in Preinsert gives me a relational integrity message.

I'd be happy if I could somehow chain from an insert to a change, so instead of returning to the browse immediately go to a change form.
or something like that.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Add a Save and Continue to edit button
« Reply #3 on: January 24, 2024, 01:19:58 AM »
For the 14.17 build I've added a button type "Partial Save". This saves the record, and leaves the form open in Change mode.

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Add a Save and Continue to edit button
« Reply #4 on: January 24, 2024, 03:13:40 AM »
Hmm.  Ok Update time.
was due for that anyway :)