Spawn form from ADD button

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member
    I have a custom S3 form, and I want to "spawn" a new form when the "Add" button is clicked, rather than having it add a record as it usually does.  I've spawned forms in the past by adding a button to the body of the form and setting the "picture" attribute in the .scr to the form name.  Is there a way to do the same thing using the "Add" button?

    Thanks for your suggestions!  Kelly
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    jaherb
    Veteran Member
    Posts: 164
    Veteran Member
      Not sure what you are really trying to accomplish here, but you can have one form transfer to another at the completion of it's logic. This happens in AP and MA already. Been a long time since I worked with that and would have to investigate what I did at that client. If you just want to process another on-line form you can always use the "INVOKE" verb to process data through that form.

      Jim
      Woozy
      Veteran Member
      Posts: 709
      Veteran Member
        I was trying to use the ADD button to navigate to a new form for adding records, rather than using the standard add-from-grid functionality. Eventually I gave up and decided to handle it a different way.

        I do have a related question - is there a way to allow "A" as a form action, but have it not show the ADD button at the top of the screen? In other words, I want to be able to have the code set Form-FC="A" (or use a button set to FC="A", but not allow the user to see/use the ADD button. If I remove the "A" option from the .scr, then the form throws an "Invalid FC Value" error if the code tries to call it.
        Kelly Meade
        J. R. Simplot Company
        Boise, ID
        jaherb
        Veteran Member
        Posts: 164
        Veteran Member
          Kelly....
          I just copied PR36 and removed the "A" FC option and it compiled fine. I launched the form and the Add button was not there. The internal logic still has all of the Add functionality in it as well.

          Not sure how you would then actually add a record, but I did not receive a compiler error.