NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jari@softmade.fi on June 09, 2014, 05:53:25 AM

Title: Second save button
Post by: jari@softmade.fi 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

Title: Re: Second save button
Post by: Bruce 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
Title: Re: Second save button
Post by: jari@softmade.fi 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.
Title: Re: Second save button
Post by: Bruce 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
Title: Re: Second save button
Post by: jari@softmade.fi 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"




Title: Re: Second save button
Post by: Bruce 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