On Jan 10, 2007, at 8:18 AM, Steve Alex wrote:
Are you running 4D 2003 as the web server? If _form is empty,
sounds like you are missing /4dcgi to start off your form action.
Also sounds like you are using fusebox, is the form variables in
the $attributes collection? I think 4D actually get the form
variables and Active4D just copies them to _form and populates
$attributes based on certain settings.
Yes, running 2003 single user (should have mentioned that...) also,
Active4D 4.0 & Mac OS X current.
I'm using the demo db & files (for 2003) without any modification
other than adding a4d.debug code.
On the Vendor list page, the Search button action is:
<form action="/4dcgi/index.a4d?action=vendors.search"
method="post">
I believe the demo is based on Fusebox, so yes on that.
Adding this line to vendors:dsp_list.a4d
a4d.debug.dump collection($attributes; ""; true)
displays:
$attributes
Key Type Value
action Alpha(255) "vendors.list"
nm Alpha(255) "a*"
I guess this is expected, but not what I'm looking for. I'm looking
for the text object "f_search" and it does not seem to appear anywhere.
I also have included on various pages and places on pages:
writebr("dump form variables:")
a4d.debug.dump form variables
writebr("dump collection(_form):")
a4d.debug.dump collection(_form; ""; true)
writebr("dump collection($attributes):")
a4d.debug.dump collection($attributes; ""; true)
All dump collections return "Empty Collection"
Of interest, the dump collection(_form; ""; true) returns "Unnamed
collection"
You are absolutely correct in that 4D does get the form variables
(field names [f_search] & values) and passes them onto A4D in the
first request (which is the vendor.search). There is a second
immediately following request (vendors.list) which does not have any
form variables (expected, but not thought about...), but does include
search pairs (variable name [nm] & value).
I think you have pointed me in the correct direction with this. Thank
you!
I believe the form variables are empty during the vendor.list action
(even though the object is quite visible on the page) and need to be
gathered and stored somewhere during the vendor.search action before
they get cleared.
Thanks!
Jim
Jim Rietz
[EMAIL PROTECTED]
Rietz Enterprises
Prairie Solutions, Inc
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/