[ic] question about [value ...] , [cgi ....]

Jeff Dafoe interchange-users@icdevgroup.org
Wed Feb 5 23:47:00 2003


>     First of all thank Jeff not me because that isn't my code, however,
> I was able to modify the above to do what I wanted.  Thanks Jeff.
> Unfortunately I don't understand IC enough to really answer what you're
> asking.  And I couldn't find any reference to 'session last_search'
> in the documents either.

    The last_search thing is kind of an internal interchange thing.  A few
months back, before I wrote any of that stuff, there was some discussion
about how to retrieve the search results and Mike Heins was nice enough to
spend a little time to explain how those results could be retrieved.  It is
my understanding that the new IC version has an even better way to access
the last search value.
    As for why [data session last_search] works and not [cgi last_search] or
[value last_search] just has to do with the way scans are handled.  It is my
understanding that the scan parameters are not copied into the cgi or value
namespaces.  In a recent thread in which there was discussion of caching
search result pages, Mike essentially pointed out that you can post the
search parameters to a page and then retrieve the parameters on that page to
use in a search region, which would be another way to make the parameters
more easily accessible, something like:

[search-region arg="
sf=category
se=[cgi cat]
"]
...

[/search-region]


Jeff