I'm used to what you're describing with local applications (e.g.
embedded/desktop GUI apps), where, from a separate thread, you can change
attributes at runtime, point to a particular entry the case of a combo box,
hide it, gray it out, make it read only, or make it editable. I don't think
the nature of the controls in Semantic Forms should ever have that level
functionality, that's a lot of overhead given the environment it runs in. I
suppsoe in this case SF could be modified to include an |admin-only field
for combo boxes that says it's not editable by normal users. Or is it not
accessible by normal users? Let the overhead begin.
For what it's worth, I've got the same scenario of admins being able to add
options that other users can only select from. To do that cleanly in web
world, I created a separate settings interface that's only accessible to
From: andrewabbott@... [mailto:andrewabbott@...]
Sent: Thursday, September 02, 2010 8:46 AM
Subject: Re: [Semediawiki-user] Semantic Forms - Values from category
The reason I see it as useful is that we have two levels of users - staff
and students. So the idea is that staff members can add items to properties
and then the students can then select those values, but not add new ones. I
would think that this would be a fairly common need.
If this is something that the new combo box functionality can achieve then
that would be great.
Perhaps it is time for me to play with version 2.0 :)
To answer your two questions:
- everything is working fine in the latest version of Semantic Forms Inputs,
0.3.1. That's the version everyone should be using anyway, because the
previous versions apparently had security leaks.
- there's no 'values from property' parameter just because I never saw a
compelling reason to add it in - restricting the allowed inputs for a
property that's not defined to be restricted seemed odd to me. The one good
reason for having it, that I saw, is so that the user can see all the
existing values right from the beginning - but the new 'combobox' input in
SF 2.0 takes care of that, in my opinion. In fact, the combo box might be a
better alternative to using any of the other 'values from...' options,
either - not that I'm planning to get rid of the existing ones.
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
Semediawiki-user mailing list