KarenLloyd
Programmer
Hi Gurus
I need some direction - can you advise me please?
First, I apologise if much of this thread relates to HTML, but it starts and ends in VFP 6.0
I need to create the processes for completing forms created with HTML and submitting the data via email, where it can be processed into a VFP application. This needs to do the following:
1) Send data from VFP to a mobile device and serve this in an HTML form
2) Allow forms to be prepopulated with the data or opened as new, empty forms
3) Allow form data to be saved locally when a device is offline
4) Allow a saved form to be re-opened, repopulated and updated, until complete
5) Send submitted forms via email, for extraction and processing back into VFP
6) It must also be possible to review and update the forms from a PC, laptop or mobile device. The mobile device has not been decided yet, but it is safe to say that it may not be a Windows product.
The first problem is that I cannot use a URL to pre-fill a form as the text descriptions may be too long in some cases.
So I thought of using the FileSystemObject to control HTML files within local folders, writing out a new filename.htm (from a template) with the appropriate form values coded into the HTML body. Then the htm file could not only be saved locally, but also sent via email and downloaded to the folder on a different device as well.
But now I don't know whether this is a workable solution. The file management instructions will vary depending on the device/platform, it may be Android (it won't be Apple). There are also potential problems with storing files locally on a device, or devices removing files to recover storage.
It seems that I am constantly finding out how not to do this job. I could write this kind of dynamic html file processing with VFP, but VFP will not work on a mobile device, which then brings me back to using SQL with a database of some form. So I have sort of come full circle, and am not sure how to proceed as I can not rely on using HTML and JavaScript for the offline form handling.
I don't know which way to go next - Active Visual FoxPro has been suggested in previous threads, and I think that will let me use a combination of VFP coding and HTML. So should I abandon the idea of saving client-side HTML files and dive into Active VFP, and all that is involved...? Does anyone have experience of creating a similar application previously, or do you have any other suggestions for me please?
Thanks in advance
Kind regards
Karen
I need some direction - can you advise me please?
First, I apologise if much of this thread relates to HTML, but it starts and ends in VFP 6.0
I need to create the processes for completing forms created with HTML and submitting the data via email, where it can be processed into a VFP application. This needs to do the following:
1) Send data from VFP to a mobile device and serve this in an HTML form
2) Allow forms to be prepopulated with the data or opened as new, empty forms
3) Allow form data to be saved locally when a device is offline
4) Allow a saved form to be re-opened, repopulated and updated, until complete
5) Send submitted forms via email, for extraction and processing back into VFP
6) It must also be possible to review and update the forms from a PC, laptop or mobile device. The mobile device has not been decided yet, but it is safe to say that it may not be a Windows product.
The first problem is that I cannot use a URL to pre-fill a form as the text descriptions may be too long in some cases.
So I thought of using the FileSystemObject to control HTML files within local folders, writing out a new filename.htm (from a template) with the appropriate form values coded into the HTML body. Then the htm file could not only be saved locally, but also sent via email and downloaded to the folder on a different device as well.
But now I don't know whether this is a workable solution. The file management instructions will vary depending on the device/platform, it may be Android (it won't be Apple). There are also potential problems with storing files locally on a device, or devices removing files to recover storage.
It seems that I am constantly finding out how not to do this job. I could write this kind of dynamic html file processing with VFP, but VFP will not work on a mobile device, which then brings me back to using SQL with a database of some form. So I have sort of come full circle, and am not sure how to proceed as I can not rely on using HTML and JavaScript for the offline form handling.
I don't know which way to go next - Active Visual FoxPro has been suggested in previous threads, and I think that will let me use a combination of VFP coding and HTML. So should I abandon the idea of saving client-side HTML files and dive into Active VFP, and all that is involved...? Does anyone have experience of creating a similar application previously, or do you have any other suggestions for me please?
Thanks in advance
Kind regards
Karen