Web Form in existing site

I am trying to integrate the web client into an existing site and have created a very simple form - this may be obvious but I am totally confused by the process - can I confirm:

  1. The form elements are standard fields not globals

  2. you start a transaction which is triggered onload of the form

  3. Your user enters their details

  4. On submit the form is validated and the user passed to a confirmation page or similar with the transaction closed or retuned to the form to make corrections with the transaction remaining open

IF anyone has a simple example I would be very grateful

Hi Gordon,

Gordon:
I am trying to integrate the web client into an existing site and have created a very simple form - this may be obvious but I am totally confused by the process - can I confirm:

  1. The form elements are standard fields not globals

If you didn’t use globals on the form (in Developer) then they aren’t in the webclient either.

Gordon:
2. you start a transaction which is triggered onload of the form

  1. Your user enters their details

  2. On submit the form is validated and the user passed to a confirmation page or similar with the transaction closed or retuned to the form to make corrections with the transaction remaining open

If you make it behave like this in Developer (switching forms and all) then it will act like that in Webclient too.
I assume you show the webclient form in an iframe in your existing site?

Hope this helps.

Hi Gordon,

Missed you in AMS and so did the Heineken experience !

So what if anything is going wrong exactly ?

This thread may shed some light on site linking and potential issues: Webclient not printing through I-frame - Classic Servoy - Servoy Community

note: Take care with transactions in web client as users can just close the browser window and potentially leave a transaction live until the session times out

Cheers
Harry

ROCLASI:
If you make it behave like this in Developer (switching forms and all) then it will act like that in Webclient too.
I assume you show the webclient form in an iframe in your existing site?

Thanks for the reply!

I fully appreciate that to a large extent what you do in developer/smart client can be replicated in web client. However when I tried to create a form for use in the web client the fact that there was no record on load threw an error !

SO what I understand is that if you produce a simple form process in Developer it should be replicated in the smart client and if this happens to be transactional all the better, but it can be done with globals if you wish!

Thanks again

Gordon

Gordon:
SO what I understand is that if you produce a simple form process in Developer it should be replicated in the smart client and if this happens to be transactional all the better, but it can be done with globals if you wish!

Indeed, but what Harry already pointed out it is better to disable the auto save and handle the checking/saving of the data yourself than to use a database transaction.
(thank you Harry for making that important point!)

Hope this helps.

Missed you in AMS and so did the Heineken experience !

Well its obvious that having missed Heineken experience I failed to get the parts other beers dont reach refreshed - especially the Servoy parts!

Get the message on the setAutoSave stuff and will implement it now!

thanks all!

Cheers
Gordon