NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on February 05, 2019, 03:58:27 AM

Title: Pop Up Form not working
Post by: broche 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.
Title: Re: Pop Up Form not working
Post by: DonRidley 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



 

Title: Re: Pop Up Form not working
Post by: Bruce 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
Title: Re: Pop Up Form not working
Post by: broche 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?
Title: Re: Pop Up Form not working
Post by: broche 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.