Aparajita,
Is this the way to do it or am I still missing something?
In waiting page code:
$savedFormCollection := copy collection(_form;*)
session{"formCollectionHandle"} := $savedFormCollection
In SearchResults page code
$savedFormCollection := session{"formCollectionHandle"}
$searchValue := $savedFormCollection{"f_pmSearchValue"}
$searchImagesOnly := collection has
($savedFormCollection;"f_pmSearchImagesOnly")
$searchComparator := $savedFormCollection{"f_pmSearchComparator"}
Regards, Michael.
On 22 Sep 2005, at 13:12, Michael Kaye wrote:
What does "later" mean? Later in the same request, or later in
another request.
Basically I submit a form which may have a lot of from variables,
call a "search in progress" wait page which then calls the results
page.
Obviously the form variables are lost by the time they reach the
results page (where they are actioned) so the wait page needs to
capture the form variables and store then for "later"
Is this per-user? If so, you should be using the session.
When you say using the session, do you mean I save each form
variable in the session (iterate over the form collection) or store
form collection in a session variable (would set session
("saveFormVariables";_form) work?)
As I mentioned earlier, you should either be storing it in the
session or in the globals collection.
What is the globals collection? I've checked the documentation but
not sure whether it is a read only collection or exactly how it works.
Thanks Michael.
On 22 Sep 2005, at 12:48, Aparajita Fishman wrote:
I want to store the results of a form submission in my own
collection for use later.
What does "later" mean? Later in the same request, or later in
another request.
Is this per-user? If so, you should be using the session.
I was under the impression that as the variable is not a local,
it will be global in its scope. However if I try to access this
collection in another page (i.e. a4d.debug.dump collection
(savedFormCollection)) I get an error.
A process variable is global to the request in its scope, but only
lives as long as the request. That's why you get an error.
How do I reference a global collections handle/variable?
If I name the collection <>savedFormCollection everything works.
As I mentioned earlier, you should either be storing it in the
session or in the globals collection. Process/interprocess
variables should not be used if you can help it.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/