Dear List,
How can I define a searchitem with two option lists, where the second depends on the first. The idea is to have a first list with categories. When a category is chosen, the second option lists Will contain the Points Of Interest of this category, and when the item is selected, the Point Of interest has to be shown. I've tried to write this: <searchitem name="poi_options" description="POI"> <layer type="postgis" name="mg_poi"> <field type="s" name="rubrik" description="Rubrik" wildcard="2"> <definition type="options" connectiontype="db" sort="asc"> <dsn encoding="UTF-8">pgsql://postgres:passw...@localhost/muenster_geschinen< /dsn> <sql>SELECT DISTINCT id, rubrik FROM tbl_poi_rubrik ORDER BY rubrik</sql> </definition> </field> <field type="s" name="name" description="Bezeichnung" wildcard="2"> <definition type="options" connectiontype="db" sort="asc" dependfld="rubrik"> <dsn encoding="UTF-8">pgsql://postgres:passw...@localhost/muenster_geschinen< /dsn> <sql>SELECT DISTINCT name FROM tbl_poi WHERE rubrik_id = [dependfldval] ORDER BY name</sql> </definition> </field> </layer> </searchitem> But there is a syntax error, because [dependfldval] isn't replaced by the value of the first option list. THX Thomas Andres ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users