Getting past this methodology is the first step in my opinion to getting to what you want to do.
Basically, an .FWX page would be designed with FoxPro code at the beginning of the entire script that is used to respond to trapped events. Lets call it the 'FW Function Area' or FWFA for short.
The events are trapped in the <FORM> ... </FORM> wrapper.
Let's say you want to capture input from an entry field or a selection list. The Submit button in the Form wrapper tells the program to take that value and pass it to the FWFA. In the FWFA, the is code set up that starts with something like this:
IF LOWER(Request.Form('FormName')) = 'your_page_name'
This tells the program to continue and search for the needed functionality like:
To see how this is accomplished in an actual example, look at the code in the CONTACT samples that FOXWEB provides.
Now . . . how do you pass the selected values to the next page?
There are probably a number of ways of doing it but since most of my pages are 'dynamic', i.e. 'built on the fly', I have one of these CASE operations call a function with those passed variables that creates the next page.
The function can be part of the original calling page but that make it cumbersome. a call in the first line of the FWFA like:
SET PROCEDURE TO myprocs.prg
will allow you to put most of your functions/procedures into a single program . . . and then they can be called with a line like:
CASE Request.Form('your_page_name_action') = 'Select Billing Date'
How you have your function 'makeMyBillingDatePage' create the page is of your own design.
A sample methodology can be found in my reply to Don Dascher's post:
'CODING TECHNIQUES/Positioning of data entry fields'
My new website at www.datatrack.net should have all of this functionality installed sometime during the first week of the new year.
The site will have 26 potential pages but 23 of the will be built dynamically (on the fly) from passed data.
I hope this helps.
I want to have a submit button on a form, and when submitted, I want to be able to retrieve data from the called page as to whether it was called from the button press or via another method (eg. if 'enter' was pressed).
To solve the appearance problems I could create the button using [button]...[/button] tags, but the problem this is that the posted value is always the same, whether the button was pressed or not, so I cannot tell if the button was pressed to access the next page. Also, the posted value contains all sorts of useless information regarding font size, type, etc. - I only want the value="..." text.
PS. I have used square brackets only for display purposes so that the text in-between is not interpreted as HTML!