I tried all of those options.  The problem is, I don't want to display the
page name in the drop-down.  I want to be able to filter the output using a
template, or something, and I couldn't find a way to do that with a
'concept'.  Did I miss something?

The only solution I could find was to embed the valid values in the property
page via a query.  And you are telling me, that doesn't work, either.  So
what WILL do what is needed?

On Mon, Aug 16, 2010 at 1:05 PM, Yaron Koren <yaro...@gmail.com> wrote:

> Hi John,
>
> That doesn't sound like a defect - regardless of what you see on the
> property page, the actual semantic data (allowed values, in this case)
> doesn't get updated until there's some sort of update action taken, like a
> page save.
>
> In any case, that's not the ideal way to do it - you should instead define
> an SMW "concept" that holds that query, and then use either "values from
> concept" or "autocomplete on concept" in the form input (probably the
> former).
>
> -Yaron
>
> On Mon, Aug 16, 2010 at 12:50 PM, John Arrowwood <j...@irie-inc.com>wrote:
>
>> I have a sequence of pages that all have a common base page, "Structured
>> Documents".  So, for example, I have Structured Documents/Term for the
>> page
>> that has the definition of a glossary Term.
>>
>> I created a property.  The definition of that property includes a query
>> that
>> returns all of those structured documents, listing only their name without
>> the Structured Documents prefix.  The idea was that the property will be a
>> dropdown on the appropriate form which shows a cleaned-up version of the
>> page names.
>>
>> The intention is that as soon as I added a new Structured Document, the
>> property would update its 'allowed' list, and the new document would
>> appear
>> in the dropdown.
>>
>> In reality, I have to go to the page for that property, make a meaningless
>> change, then click Save in order for the change to be picked up.  Even
>> though I can go to the page, click Purge, and see the new item in the
>> list,
>> that alone is not enough.  I have to edit and save before the new item(s)
>> appear in the dropdown of a form.
>>
>> So the defect is that even though you view the property page and see the
>> list of allowed values, the form is not picking up the new list of allowed
>> values.
>>
>> However, the real NEED here is a way of associating a form on a page with
>> a
>> queried list of values.  Unfortunately, I have tried in vain to do that.
>>  If
>> I put a template call in the default= part of the field definition, it
>> isn't
>> treated as a template, and so the user sees it as a template, not as a
>> list
>> of values.
>>
>> What is the proper way of accomplishing this goal?
>>
>> --
>> John Arrowwood
>> John (at) Irie (dash) Inc (dot) com
>> John (at) Arrowwood Photography (dot) com
>> John (at) Hanlons Razor (dot) com
>> --
>> http://www.irie-inc.com/
>> http://arrowwood.blogspot.com/
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> Semediawiki-user mailing list
>> semediawiki-u...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>
>
>
> --
> WikiWorks · MediaWiki Consulting · http://wikiworks.com
>



-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to