NetTalk Central

Author Topic: Second save button  (Read 3673 times)

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Second save button
« on: June 09, 2014, 05:53:25 AM »
Hello

I need the second button to save that stores the records and then calls the procedure.

How can I do that?

Thanks Jari


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Second save button
« Reply #1 on: June 09, 2014, 10:45:47 PM »
Hi Jari,

I'm not sure I understand your context, or what you have in mind, but you can add additional buttons to a form, and if they are of type "Save" then they will behave just like normal Save buttons.

cheers
Bruce

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: Second save button
« Reply #2 on: June 10, 2014, 12:02:41 AM »
Yes but after pressing this and after saving I want to call a procedure.
So I need two save buttons. On is saving without calling the procedure and one is saving with calling the procedure.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Second save button
« Reply #3 on: June 10, 2014, 02:44:49 AM »
one of the items passed to the server is the "text" on the button itself. So you can use this to differentiate between the buttons - as long as you tweak the text for the extra button.

but tell me more about the procedure you want to "call" - what sort of procedure is it? A NetWebPage or something? Will the user see a different landing page depending on which button they press? or is it an internal procedure call?

cheers
Bruce

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: Second save button
« Reply #4 on: June 10, 2014, 03:10:23 AM »
It is clarion source procedure and after saving the user returns to the browse dialog, regardless of which button has been pressed.
Of course, the button must be different names such as "Save" and "Save and Send"





Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Second save button
« Reply #5 on: June 10, 2014, 06:40:48 AM »
then you should be ok. Do the test in the PostUpdate and/or PostInsert & PostCopy routines.

Cheers
Bruce