[ic] data tag

Mike Heins interchange-users@icdevgroup.org
Sun Sep 22 22:41:02 2002


Quoting Schuyler W Langdon (gorditos@hotmail.com):
> Can't figure out why this works when page_arg is a valid product key:
> 
> [data base="products" field="description" key="[scratch page_arg]"]
> 
> and this does not:
> 
> [calc]return $Tag->data("products", "description",
> $Scratch->{page_arg});[/calc]
> 
> Aren't these identical?

Only if you have previously opened the database.

This would be guaranteed to work:

[perl tables=products]
  return
	$Tag->data("products", "description", $Scratch->{page_arg});
[/perl]

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun