NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on January 25, 2024, 03:35:30 PM

Title: Email from browse menu button
Post by: Niels Larsen on January 25, 2024, 03:35:30 PM
Hi

What is the best way to send an email ( or some other Clarion code) via a browse dropdown menu

regards NielsB
Title: Re: Email from browse menu button
Post by: Alberto on January 26, 2024, 04:52:48 AM
Hi Niels,
If you do not need to enter any data to send it, call a NetWebSource proc using the menu item and inside the NetWebSource call the email send proc, normally a claron proc, the same you use in a desktop app.
Hope this helps
Title: Re: Email from browse menu button
Post by: Niels Larsen on January 29, 2024, 08:21:44 PM
Hi Alberto

Thanks for the idea but it doesn't work.
If I call a NetWebSource as link or content it just gives a new URL with the procedure name. Could maybe fetch the parent site again, but I think that's a mess.
You cannot call a NetWebSoure a popup.

/Niels
Title: Re: Email from browse menu button
Post by: Bruce on January 29, 2024, 10:41:30 PM
I think you need to define what you mean by "send an email".
Is there any user interface here? or is it an automated background send?
Title: Re: Email from browse menu button
Post by: Niels Larsen on January 29, 2024, 11:00:32 PM
Hi Bruce

It can be any clarion code.
Title: Re: Email from browse menu button
Post by: Bruce on January 30, 2024, 05:45:17 AM
so there's no user interface. The user doesn't write a message, or set the to address or anything?
This is just an automated menu item that's something like "send current figures to Steve"
?
Title: Re: Email from browse menu button
Post by: Niels Larsen on January 30, 2024, 10:30:57 AM
Spot on.
It could also be to change the status of a row (could be nice with an refresh of the row or browse, but that runs in another thread)
Title: Re: Email from browse menu button
Post by: Bruce on January 30, 2024, 10:00:43 PM
noted. I'll look into both questions later in the week.
Title: Re: Email from browse menu button
Post by: Bruce on February 08, 2024, 01:10:29 AM
14.17 is up.
It contains an option "send to server" in the browse menu item options.
This triggers a browse event "menuitem" which you can handle in the TakeEvent routine.
Title: Re: Email from browse menu button
Post by: Stu on February 08, 2024, 04:06:42 PM
Quote
It contains an option "send to server" in the browse menu item options.
This triggers a browse event "menuitem" which you can handle in the TakeEvent routine.

Bah.

Now I'm going to have to upgrade to 14.

Thanks a lot Bruce.

:)
Title: Re: Email from browse menu button
Post by: Niels Larsen on February 09, 2024, 02:41:19 AM
Thanks Bruce

I look forward to working with that.  It offers so many possibilities.
Title: Browse menu button
Post by: JohanR on July 15, 2024, 11:46:12 PM
14.17 is up.
It contains an option "send to server" in the browse menu item options.
This triggers a browse event "menuitem" which you can handle in the TakeEvent routine.

Hi,

I am trying to implement the popup menu on a browse and am unsure of how to handle the event.
I have it working up to the point of where I have a case structure in TakeEvent routine which fires the correct code for each item.

However am unsure of what code to embed here besides my code?
Some of the items will be updated file fields and then writing the values to disk.

What housekeeping routines must I call to keep everything happy and updated?

thanks

Johan









Title: Re: Email from browse menu button
Post by: JohanR on July 16, 2024, 05:05:50 AM
Hi,

Copied my question to a new post to start a new thread.
https://www.nettalkcentral.com/forum/index.php?topic=9497.0

Johan