Hi,
I'm developing an app to run on a tablet. It is essentially a forms based app with up to 40 different forms to be supported.
I've started off using a standard multi-panel based approach. I'm using dropdowns to setup the initial criteria such as client name and form type, before using a list control and the formview control to display and edit the records.
However, this is not very scalable, as I would need a separate panel for each form (unless I added all the fields of all the forms to the list control, and then did some dynamic filtering to display only the fields relevant to the particular form). Also, the customer would like the capability to add new forms, and this method would be beyond their capabilities.
The other option is to use the form editor, develop 40 separate forms, and then load the appropriate form based on the selected form from the OnSelect event of the form selection dropdown. I have tried adding an ajax callback to the OnSelect event, and calling an xbasic function (form.view("myformname")) to display the form. However, the form doesn't display. If I run form.view("myformname") from the interactive window, the form displays but not when I do it from code.
Any idea what the problem could be ?
Thanks in advance,
Greg
I'm developing an app to run on a tablet. It is essentially a forms based app with up to 40 different forms to be supported.
I've started off using a standard multi-panel based approach. I'm using dropdowns to setup the initial criteria such as client name and form type, before using a list control and the formview control to display and edit the records.
However, this is not very scalable, as I would need a separate panel for each form (unless I added all the fields of all the forms to the list control, and then did some dynamic filtering to display only the fields relevant to the particular form). Also, the customer would like the capability to add new forms, and this method would be beyond their capabilities.
The other option is to use the form editor, develop 40 separate forms, and then load the appropriate form based on the selected form from the OnSelect event of the form selection dropdown. I have tried adding an ajax callback to the OnSelect event, and calling an xbasic function (form.view("myformname")) to display the form. However, the form doesn't display. If I run form.view("myformname") from the interactive window, the form displays but not when I do it from code.
Any idea what the problem could be ?
Thanks in advance,
Greg
Comment