NetTalk Central

Author Topic: Browse button for a report  (Read 3909 times)

JHojka

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • Email
Browse button for a report
« on: April 20, 2020, 08:49:38 AM »
I have a browse button that calls a report. I need to have a browse that I conditionally load before the report is called.

Should I use redirection? If so how do I redirect from one nettalk webpage to another?

Jeff

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: Browse button for a report
« Reply #1 on: April 20, 2020, 08:16:26 PM »
Hi Jeff.
You can try it few ways.

The most easiest is redirect from the NetWebForm to another NetWebForm using the "URL on Save" option.

or try one of the following line:

a) p_web.Script(p_web.WindowOpen('IndexPage','_self'))


b) p_web.redirect('somewhere.htm')

c) p_web.Sendfile('MyOtherWebProcedure')


d) loc:formaction = 'indexpage'
loc:formactiontarget = '_top'

regards
Jason

JHojka

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • Email
Re: Browse button for a report
« Reply #2 on: April 21, 2020, 04:37:16 AM »
Thank you very much. WindowOpen is such an odd name for a web procedure. Option A) does the trick and it allows me select the page which is a bonus.

Jeff