NetTalk Central

Author Topic: How to push a button auto?  (Read 3560 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
How to push a button auto?
« on: February 12, 2015, 12:15:29 AM »
Hi Bruce

I have a form with a button on it. After certain criteria i want to push the button automatically. How can I do it in Nettalk?

Kind regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to push a button auto?
« Reply #1 on: February 12, 2015, 06:29:36 AM »
where are you evaluating the criteria? On the server side as the user enters stuff, or on the client side in JavaScript?

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: How to push a button auto?
« Reply #2 on: February 12, 2015, 09:14:52 PM »
Hi Bruce

I have a popup form with selection criteria s on it. A progress control and a start button..
I am using Trakersoft pdf tools to generate the report.
On the form is also a media control to display the pdf. This is working fine.

My clients wants the pdf to be displayed in a new window and not on the form. I add a Button that calls a netwebpage after the report was generated.. The media condition  i add false not include..After the report generation now I must press the 'Display' button and the generated report is open in a new page. This is actually my question how can I automatically open the report in new window without pressing the 'Display' button

I try also on the process control to tick on the create hyperlink. this is also working fine. In this case how can i open the report in a new window without pressing on the hyperlink.

Many tanks
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to push a button auto?
« Reply #3 on: February 13, 2015, 01:37:38 AM »
hi Johan,

>> My clients wants the pdf to be displayed in a new window and not on the form.

ok, so first thing to go is the Media control. which is easy enough to remove.
Secondly, set the "Target" for the "Download link" to be
'_blank'

This causes the (PDF) file, once downloaded, to open in a new window.


Cheers
Bruce


johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: How to push a button auto?
« Reply #4 on: February 13, 2015, 01:48:15 AM »
Hi Bruce,
This is working like you explained, but how can i download the file automatically by not click on the hyperlink. After the report was generated it must directly open in a new window.

Kind regards
Johan