NetTalk Central

Author Topic: Going from a Popup Form to Another Popup does not work. PDF Report  (Read 5217 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Hi,

If you run the attached program the PDF report does not work.

If the Options Form is opened as a Popup then the URL On Save is ignored and PDF report is not displayed.

If the Options Form is not in Popup then the URL On Save is working and the PDF report is displayed.

For what I want to do it must work from Popup Form to Popup Form.
My whole app is Popups.

Does any one have any idea how to make this work please.
I have to demo the app on Monday to a very-very big customer.

Regards

Johan de Klerk
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Going from a Popup Form to Another Popup does not work. PDF Report
« Reply #1 on: July 28, 2019, 09:59:58 PM »
Hi Johan,

Firstly - I'm not 100% sure you can go from a popup to another popup via URL on save. That's something I'll look into.
URL on Save is, as the name suggest, a URL.

Secondly you're calling 'MailboxesReportWithOptions' as the URL on Save, but that's a Report procedure. So that will never be a popup. Assuming the popup-to-popup worked, this Save as URL would need to be a Form - and that form could contain the PDF (using the media control demonstrated elsewhere.)

So maybe re-work the example so you are doing a URL on save to a Form, which contains the report - and let's go from there.

Cheers
Bruce





Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Going from a Popup Form to Another Popup does not work. PDF Report
« Reply #2 on: July 31, 2019, 10:12:01 PM »
Hi Bruce,

I am busy modifying my example app to show how it needs to work.
Will send it to you during the day via Skype.

Would it be possible to look at it today on the WebInar?

Regards

Johan de Klerk
Clarion 10, NT 11.57

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Going from a Popup Form to Another Popup does not work. PDF Report
« Reply #3 on: August 03, 2019, 12:51:47 AM »
Hi Bruce,

As you suggested on the Webinar I have changed my app to not go from the Menu Item to a Popup Form and Action "Insert".

It is now set as "Default" with Action as "Insert".
None of the fields in the Priming tab are primed.
It seems the fields are not being primed if it is selected from a Menu Item.
Put in a debug statement after:   ! Start of "Pre Insert After Primes"
The whole "PreInsert  Routine" is not run when calling from a Menu Item with Action "Insert" and Form is a "Page".

If I am on the Browse and Click Insert then the fields are primed.

Edit: Please see: https://www.nettalkcentral.com/forum/index.php?topic=8279.0

Clarion 10, NT 11.18.

Regards

Johan de Klerk
« Last Edit: August 03, 2019, 10:17:16 PM by Johan »
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
« Last Edit: August 05, 2019, 11:41:06 PM by Bruce »