NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Second save button
« previous
next »
Print
Pages: [
1
]
Author
Topic: Second save button (Read 3672 times)
jari@softmade.fi
Full Member
Posts: 134
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
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
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
Logged
jari@softmade.fi
Full Member
Posts: 134
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.
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
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
Logged
jari@softmade.fi
Full Member
Posts: 134
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"
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
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
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Second save button