If the goal is just to allow a dropdown or radiobutton in a form, you can instead just add the parameter "values from category=..." to the field in the form definition... of course, you may not be using forms at all.


On Tue, Jul 28, 2009 at 4:05 PM, Philipp Zaltenbach <zaltenbach@ontoprise.de> wrote:
Hi Kim,

actually the 'and' is just printed in the FactBox (I assume for readability purposes), but it is not part of the semantic annotation and thus not contained in the facts.



Hi guys,

I'm trying to create a dynamic 'Allows value' list.

If I have a property page, 'Has Vegetables' and want it to only allow values within Category:Vegetables, how should I do this?

I googled and found one solution, which is

[[has type::page]]
{{#arraymap: {{#ask: [[Category:Vegetables]]|format=list|link=none|sep=,}}|,|
@@|[[allows value::@@]]}}

But the last possible value comes out with an 'and' in front of it, and I don't wanna add a dummy value 'ZZZ' or something like that.

Do you guys know of any means to accomplish what I'm trying to do?



Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Semediawiki-user mailing list