M
Mark Sandfox
I have tried every scenario I can think of but keep coming up with the same
problem.
Project = Create a database query page with 2 dropdowns for criteria and a
simple database results section for the results. The problem lay in that
the first dropdown contains a list of selections for the user to chose their
location (ie city). This dropdown contains the City for display and a
combined field of Latitude and Longitude for the city's center point. I had
to combine the lat & long because the dropdown only supports one hidden
value. (note: the other dropdown is straight forward and does not need
anything). So once the user has selected the City and then the Distance
(the other dropdown) they should click "GET" and receive a list of **** in
their area. But what happens is they have to click it twice to get the
proper list. I am sure this is because the code has to break apart the
LatLong field and apply(calculate) it to the HighLat, LowLat, HighLong and
LowLong which are hidden fields in the search form. I have tried putting
the formula directly in the form's hidden fields and have tried to VB Script
at the top of the form, then apply it to the form's hidden fields. The VB
Script does it's job correctly and when it is supposed to but the Form's
Hidden Fields DO NOT update on submit, only upon reentry. The only reason I
am using Hidden Form Fields is that FP does not want to except (by any
convention I know of) VB Script Variables in either SQL Custom query or the
Form's Criteria area. I am at a complete loss on this one. Any help you
can throw my way would be greatly appreciated.
Thank you,
Mark
problem.
Project = Create a database query page with 2 dropdowns for criteria and a
simple database results section for the results. The problem lay in that
the first dropdown contains a list of selections for the user to chose their
location (ie city). This dropdown contains the City for display and a
combined field of Latitude and Longitude for the city's center point. I had
to combine the lat & long because the dropdown only supports one hidden
value. (note: the other dropdown is straight forward and does not need
anything). So once the user has selected the City and then the Distance
(the other dropdown) they should click "GET" and receive a list of **** in
their area. But what happens is they have to click it twice to get the
proper list. I am sure this is because the code has to break apart the
LatLong field and apply(calculate) it to the HighLat, LowLat, HighLong and
LowLong which are hidden fields in the search form. I have tried putting
the formula directly in the form's hidden fields and have tried to VB Script
at the top of the form, then apply it to the form's hidden fields. The VB
Script does it's job correctly and when it is supposed to but the Form's
Hidden Fields DO NOT update on submit, only upon reentry. The only reason I
am using Hidden Form Fields is that FP does not want to except (by any
convention I know of) VB Script Variables in either SQL Custom query or the
Form's Criteria area. I am at a complete loss on this one. Any help you
can throw my way would be greatly appreciated.
Thank you,
Mark