[Xsltforms-support] conditional select lists.
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2009-07-30 09:04:43
|
In regards to question 2 below regarding conditional select lists, the attached example "test conditional selection lists" from the **"XForms Tutorial and Cookbook" works with XSLForms. **-------- Original Message -------- Subject: Model from file reloading Date: Thu, 30 Jul 2009 09:42:43 +1000 From: Stephen Cameron <ste...@ut...> To: xsl...@li... I am trying to generate a CRUD application using XSLForms by transforming a database schema document generated by the Apache DDLUtils tool. I am interested if anyone else has tried something similar. There are a couple of things I would like to be able to do and would appreciate some help in knowing if they are, or could be, possible. (1) Reloading a model based on an external resource. This is useful if you have a select1 based on an external resource, if you want to add a new entry to the select list then the best way to do it (in my view) is to click on an "Add" button beside the select list and open a "New Resource XXX" page (or modal dialog), add the new entry, save it, then on closing the page get the select list to update from the server with the new entry included. This setup handles a foreign-key relation in the database schema. (2) Making a select list conditional on another select list. Usually this situation is usually two or more linked select lists, the top one is initially active and the bottom 'dependant' one inactive, by selecting an first entry in the top list you load the list in the bottom one and make it active, if you then change the entry in the top list you reload the bottom list with a new set of entries and remove its current selection. P.S. I am more than happy to provide my XSLT stylesheets for others to try or improve. Thanks. -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html |