Hmm, well the filter-exclude should work, anyhow I often find myself writing a
little bit more explicit with an if in the outer emit, e.g.:
<emit source="scopes">
<if variable="_.scope is modvar,otherscope" not="">
<!-- emit this scope here...-->
</if>
</emit>
Not sure about your use of the split attribute. It has no use in that emit, it
is used solely to split the source to the emit, e.g. if the source is a
$-character delimited string you could do
<emit source="values" values="one$two$three" split="$">
&_.value;<br/>
</emit>
that would render (on a webpage)
one
two
three
The default split-char (Null) is quite handy when one emits form-params and the
same form-name is used more than once in the form, i.e.
<input type="checkbox" name="vegitable" value="potato" />
<input type="checkbox" name="vegitable" value="tomato" />
the you could just emit them with:
<emit source="values" variable="form.vegitable">
&_.value;
</emit>
and get (if both are checked):
potato tomato
or make something more useful of it ;)
Maybe you already knew about this, hope it can be of some help otherwise
/Peter
----- Original Message ----
From: Peter Ohlerich <[email protected]>
To: Peter Jönsson <[email protected]>; Roxen mailing list <[email protected]>
Sent: Tue, March 29, 2011 12:22:41 PM
Subject: Re: Just a question about Request-Variables
Am 29.03.2011 09:06, schrieb Peter Jönsson:
> It shure would have been nice if the debug log would have named the object :)
>
> Try commenting out the emit values part to see what scopes you get, then you
>can
>
> manually pinpoint the scope that causes the error and possibly filter that
> one
> out too if you wish.
>
> I assume that simply using the emit values part of the code with
> from-scope="form" would work for you?
> ...
Hello!
That's it. The filter-exclude does not work.
<emit source='scopes' split=',' filter-exclude='scope=modvar' >
&_.scope;
</emit>
gives me the following answer:
user cookie client request-header roxen form modvar header page var
(even the split is ignored)
So I think I just hit the modvar which leads to the errror 500 at
your server. When I try this:
<emit source="values" from-scope="modvar">
&_.index; = &_.value;<br/>
</emit>
it results in the error 500.
Thanks for your help!
With regards,
Peter Ohlerich.
--
----------------------------------------------------------------------
HRZ der Universitaet Bielefeld Phone: +49 521 106-00
Dipl.-Inf. Peter Ohlerich Email: [email protected]
P.O.Box 100131 WWW: http://www.uni-bielefeld.de/hrz/
D-33501 Bielefeld (Germany)