NetTalk Central

Author Topic: Pop Up Form not working  (Read 3118 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Pop Up Form not working
« on: February 05, 2019, 03:58:27 AM »
NT 11.05
CL 11
String Theory 3
Theme base

Simple Table (On a memform)
Form in Popup mode
Two forms one for edit other for insert

Insert Form works fine - I upload files on this form  which become children of the record I'm adding
If I do not upload a file and save then the popup works fine
If I add a file I get a blank popup
If I change the the form to non popup then also works fine
See image of popup when children have been added.

Going around in circles with this one.

Brian.
Brian

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Pop Up Form not working
« Reply #1 on: February 06, 2019, 03:56:58 AM »
Could be a variety of reasons. 

You didn't mention which driver you are using.  I'm assuming TPS?

So, you open this Form which essentially inserts a record into a parent table. 

Also, on this same form a user can upload a file which creates a child record of aforementioned parent table.

I'm assuming this can all be done before the user clicks the "Save/Insert."

My friend, you have a Key field that is not being primed correctly, likely in the child table.

If it's a TPS table, if you open the table in TopScan, do you see empty key fields in that child table?  I bet you will.

That's my guess.  Bruce may say I'm wrong, and I could be, but I that's what I think.

See ya,

Don



 

"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
Re: Pop Up Form not working
« Reply #2 on: February 06, 2019, 10:32:47 PM »
>> I get a blank popup

the HTML to populate the popup is not valid XML.
Using Developer Tools, Network tab, check the value returned by the population and use the IDE to validate it as valid XML.

cheers
Bruce

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Pop Up Form not working
« Reply #3 on: February 07, 2019, 12:46:12 AM »
Thanks Bruce - Did as you said but don't understand what I am looking at.  See attached image.
PostgreSQL backend.

Maybe tonight at Nettalk Webinar?
Brian

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Pop Up Form not working
« Reply #4 on: February 08, 2019, 06:27:16 AM »
Thanks Bruce,

The issue was not on the first tab.  The error indicated which one and I just deleted and created the tab again and all works fine.
Brian