[ic] Values space question

Mike Heins mike at perusion.com
Tue May 11 11:23:57 EDT 2004

Quoting Ethan E. Rowe (ethan at the-rowes.com):
> Hope this one is easy...
> What's the scope of the [values-space] tag and its effects on subsequent 
> calls to [value], [value-extended], or even [perl]$Values->{...}[/perl]?
> The documentation I found indicated that it was just within the scope of 
> the current page (from a  CVS  list posting at 
> http://www.icdevgroup.org/pipermail/interchange-cvs/2004-April/005792.html, 
> "...there is now a [values-space] tag for setting the values space for 
> the lifetime of the current page...").  However, our admin order entry 
> page specifies a values space of "order_entry", and I see in the dumps 
> that this directs all data into the values repository hash under the 
> 'order_entry' key.  When an order is placed from this page, is the 
> values-space somehow automatically passed to the order routes, so our 
> log_transaction calls to [value] or $Values->{...} works with the 
> correct data, or must there somehow be some explicit setting that gets 
> the routes to work with the appropriate space?  I ask because I can't 
> find evidence of the latter thus far and would like to understand 
> exactly what's going on.

I think I added this before the [values-space] tag even existed;
prior to that the only way to set it was to include a form variable
of mv_values_space, which caused the variables submitted with that
form to route it to the separate values space.

Since the submission of that form results in the entry of the
order, that qualifies as the same page.

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Some people have twenty years of experience, some people have
one year of experience twenty times over. -- Anonymous

More information about the interchange-users mailing list