[ic] how to use using item-modifier ?

Kevin Walsh interchange-users@icdevgroup.org
Tue Jun 18 16:05:00 2002


> 
> I want to have a fill_status flag on each ordered line.
> I tried to use item-modifier without great success.
> Here is what I did :
> 
> Add the following line at the end of catalog.cfg
> UseModifier fill_status
> 
> Try setting the flag inside the flypage (the page from which I want all
> orders to be done)
> [if ...]
> [seti fill_status]FILLED[/seti]
> [else]
> [seti fill_status]EMPTY[/seti]
> [/else]
> [/if]
> I have the feeling the seti is wrong but I don't know which instruction to
> use.
> 
Now that you have that scratch, set the following value in your
form:

<input type="hidden" name="mv_order_fill_status" value="[scratchd fill_status]">

You'd be (slightly) better off using [set]...[/set] instead of [seti]
as you are not expecting any Interchange tags to be interpolated when
setting the scratch.  Note that [scratchd] deletes the scratch variable
after use, whereas [scratch] does not - use the one that suits you best.

You'd be (much) better off by not setting the scratch at all, unless
you need it elsewhere:

[if ...]
    <input type="hidden" name="mv_order_fill_status" value="FILLED">
[else]
    <input type="hidden" name="mv_order_fill_status" value="EMPTY">
[/else]
[/if]

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/