From: badon <fas...@gm...> - 2011-08-26 04:03:38
|
How I would LIKE to be able to do it is to have the user submit the serial number they want to enter into the system. The Semantic Form would then either send the user to a fresh form to continue entering in the other data, or send the user to the existing entry. I hadn't thought of the validation technique, thanks for sharing it. I'm not sure how to do that yet, but I'm guessing I could use a "minor" form to search for existing properties, and if none are found, it can create the new page, and then the user can use the "edit with form" link to fill out the rest of the data if they need to. If the page is found, it would have to send the user to the page. I'm not sure how to do any of that yet, but hopefully SF has those abilities, especially in combination with parser functions. Since my use case only has one bit of info that must be unique, I think I can pull it off that way. For systems that have 2 or more bits of info that must be unique (perhaps only one out of the entire set), more sophisticated logic branching is required. John McClure wrote: > > One simple technique that I've used is to validate a property's value(s) > before you store it. In the case of a duplicate, store instead an error > message that is displayed by the page's template. The error message > informs > the user that "Serial nbr X not stored - it is already in use" possibly > with > a link to the page containing that property (then displayed by "what links > here") and-or possibly with a link to help information for that field in > the > form. In any event, the message alerts the user to begin an investigation > as > a separate activity from form completion. Since the message has been > stored > as a proprty, it can be uesfully queried. Should the user correct > the -other- page's property, then the -new- page can be (manually) > refreshed, which stores the property value originally entered. > > I'm not sure I support unique-value validation while the form is being > completed - it could hurt client performance alot. Users clearly expect > good > performance while completing the form, with alot of tolerance for > processing > the form once submitted. > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > -- View this message in context: http://old.nabble.com/-SF--How-to-check-for-a-previously-existing-property--tp32328729p32339211.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |