Hello all and Bruce,
Once again I made a website where I integrated the active elements of Nettalk, the browses and forms, into static pages. I know of the concerns Bruce has about this approach, but it looks nice and it works - almost. <g>
A normal browse calls a form with 3 tabs, CustForm.
The first tab holds some simple customer data,
the second tab holds data and an embedded browse PurchaseHistory,
the third tab holds an embedded browse ContactHistory.
The browses PurchaseHistory and ContactHistory have their own forms. When they are calles, some fields get primed like Contact_CustomerID = p_web.GSV('CUS:CustomerID').
All works fine - so far.
When I integrate these elements into my static pages, I can run cuteBrowse.html calling cuteCustomerForm.html. There I can call cutePurchaseForm.html or cuteContactForm.html.
I even can fill the forms and save the values correct, but when I close/save these forms and return back to the CustomerForm (which is embedded in cuteCustomerForm.html, then I see the embedded browses on tab 2 and tab 3, but all data entries on all tabs are empty.
Before I embedded the active elements into static pages, it was sufficient to name CustForm as the target where to return after the child tables have been modified. But now I want cuteCustomerForm.html to be the one to be displayed on return, you guess it, because they look cute. But if I put that file as page to be returned to into the NT settings, nothing happens.
So I use 'cuteCustomerForm.html?Change_btn=Change&KIKKUNDEN__SYSID='&Cus:ID.
That works fine - it is the correct page, the correct form, but as said above, the entries are all empty. I can't save this form, because all these fields set to 'required' are now alerting!
When I then click on the address bar of the browse and then press <Enter>, the entries are all filled again and I can now save.
Instead of calling the (sub-)forms in the static pages, I can call the the forms themselves. Saving and returning to the cuteCustomerForm works fine then - but it looks UGLY!
Now the question: how can force the fields to be filled when I return from a (sub-)page? Can I at all?
This project is using Nettalk 4.56
Well, it is likely that my blabla was hard to understand, so I set up a demo-server to test this behaviour.
http://mobilentws.zapto.org/index.html --> CUSTOMERS
If you go there with the FireFox, Internet Explorer or Opera, that site will look ugly! These pages are meant for mobile devices, and Apples Safari as also Googles Chrome both use the Webkit rendering engine which is the base for the browsers of the iPhone and Android.
Don't sue me, you have been warned!
Pick a record, open the third tab, add a contact record and press Speichern / Save.
You get back to the record form, but when you peek at the first tab, all entries are empty - no chance to Speichern / Save this record now! Click into the browsers adress-bar and press Enter - all fields are field, you can now save.
What wrong here? <headscratch>
Thanks for any input.....
Wolfgang