Discussions

Expand all | Collapse all

Save and continue to edit record in another form

  • 1.  Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 05:03
    Is it possible to create a button that saves a record, then opens up the same record in another form in edit mode?


    added caveat:The record can only be saved if the required fields have been completed.


  • 2.  RE: Save and continue to edit record in another form

    Posted 06-27-2018 12:38
    Are you adding a new record or editing an existing record?


  • 3.  RE: Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 12:39
    I need a button for both scenarios, but the problem child is when i am creating a new record


  • 4.  RE: Save and continue to edit record in another form

    Posted 06-27-2018 13:22
    That would take a script solution, I believe as the Record ID# is not known until the record is saved, so you can't do a "&NextURL=" type follow on API as you don't know which Record ID to show in edit mode.


  • 5.  RE: Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 13:27
    Thought as much.  if the record is already saved, how would I create the button to open the record in a different form in edit mode?


  • 6.  RE: Save and continue to edit record in another form

    Posted 06-27-2018 13:39
    I'd recommend getting the Magic Buttons App from the exchange. You'll find some answers in there


  • 7.  RE: Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 13:48
    I've used Magic buttons extensively - But i cant find a button to invoke the editing of a record using a specific form ID


  • 8.  RE: Save and continue to edit record in another form

    Posted 06-27-2018 13:52
     You can specify the form ID to edit a record, but you need to know which Record ID to edit.

    URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#] & "&dfid=10"

    but when you save it would display the record in the default form ID, so you would need to use 

    var text EDIT = URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#] & "&dfid=10";
    var text Display = URLRoot() & "db/" & dbid() & "?a=dr&rid=" & [Record ID#] & "&dfid=10";

    $Edit
    & "&NextURL=" & URLEncode ($Display)



  • 9.  RE: Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 13:59
    Ok, so the dfid is then the form id.  I think I can make this work - Thanks Mark, ill update you once i got it.


  • 10.  RE: Save and continue to edit record in another form

    Posted 06-27-2018 14:03
    to remember dfid talk like a Chicago gangster

    "da form ID is ".....


  • 11.  RE: Save and continue to edit record in another form

    Bronze
    Contributor
    Posted 06-27-2018 14:06
    Ha ha ha!