NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on July 05, 2017, 09:59:35 PM

Title: Change Create Hyperlink value in progress control programatically
Post by: terryd on July 05, 2017, 09:59:35 PM
In my StartProcess Form on the Progress Control I set the text value to be p_web.GSV('ProgressMessage') and check the "Create Hyperlink when process completes" box
In my MakeFile I do a count of the number of records to process ( I normally use MSSQL).
If there are records to process I do p_web.SSV('Progress Message', FileRecords & ' records. Click here to download')
If there are no records p_web.SSV('ProgressMessage','SORRY NO RECORDS') or a request specific value

In the first instance no problem, the file is created and the user can click to download
In the second I would like to change the "Create Hyperlink when process completes" setting from TRUE to FALSE so that the user cannot download the blank file.
Is this possible at runtime?
Title: Re: Change Create Hyperlink value in progress control programatically
Post by: Bruce on July 06, 2017, 05:53:33 AM
almost.

If you set the message to start with
[--]
then it will appear as a popup "alert" when the process completes, and won't be a link.
(but also won't appear as the text on the window.)

you could also search the generated source for
loc:url
 to see how you might manipulate that.

cheers
Bruce