NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Poul Jensen on April 17, 2019, 01:32:58 AM
-
Hi,
When I save a record I would like conditionally to show a message.
In the embed Complete Form / 3 End I do some processing and after that I would like to show a pop-up message.
It could also be in embed End of Procedure / After Closing Files.
How to do this ?
Cheers
/Poul
-
Anybody ?
/Poul
-
are we talking about a popup closing here or a page-form?
I think it's more or less possible to do with a popup, it would be very difficult to do with a page.
Generally speaking though, the form has "closed" and the user is going to another page. Yes you are doing some code on the server side, but you'd need to add the message to the "place you are going to" because the "place you are coming from" has already disappeared.
cheers
Bruce
-
Hi Bruce,
I have completed a form and saved the content.
Based on a local variable or session variable I need to show a message to the user (or not show a message).
Maybe this could be done earlier on the form. When the user clicks SAVE the message could be shown. But I guess not an ALERT since we need to save the form.
/Poul
-
Hi again,
I have solved it using a loc:Alert message in the Completed Form embed.
/Poul
-
Hi Poul
Why not use the p_web.showInfo('Hello World')?
Regards Niels
-
Hi Niels,
Sorry for interrupting, but are there any restrictions on where you can use that? I've never managed to get it to work.
Peter
Update: Hmm - setting pTimer to a big number makes a difference ;-)
-
Hey Niels,
That was just what I was looking for. Works perfectly in my situation :-)
/Poul
-
@Peter
I use it everywhere. In my header I have tre divs styled as one in red, one in yellow and one in green. By default they are hidden (display:none) and when you call the showinfo there is a third parameter takes which div-id you want to show it in.
In the second parameter you can set a timeout.
Very useful
REgards Niels
-
Hi Niels,
Finally I'm seeing the light, thank you very much!
Peter