Looking at the code it seems that the depending field definition has 
just been implemented for the suggest function, not for a second option 
block.

If you need it you could create a ticket on the p.mapper trac system (I 
can set up an account for you) so this request won't get lost.

Armin



On 10/09/2008 18:37, Hermann Karl wrote:
> Dear List,
> 
> I tried to configure a searchitem in search.xml
> It is intended as combined search where
> first the countries search should use option suggest
> followed by the cities search should use option options
> (vice versa the item "cities_options_suggest_dbf" in sample search.xml)
> 
> <!-- Sample for ms SHAPE layer search cities10000eu (cities10000eu.shp)
> option suggest_options.dbf Funktion ???-->
>    
>     <searchitem name="countries_suggest_cities_options_dbf"
> description="Countries Suggest Cities Options DBF">
>         <layer type="shape" name="cities10000eu">
> 
>             <field type="s" name="ISO2_CODE" description="Country"
> wildcard="2">
>                 <definition type="suggest" connectiontype="dbase"
> minlength="1" startleft="1">
>                     <dbasefile encoding="UTF-8"
> searchfield="ISO2_CODE">$/countries.dbf</dbasefile>                    
>                 </definition> 
>             </field>
> 
> 
>            <field type="s" name="NAME" description="City" wildcard="2">
>                               <definition type="options"
> connectiontype="dbase" sort="asc" firstoption="pippo">
>                                       <dbasefile encoding="UTF-8"
> dependfld="ISO2_CODE" keyfield="NAME"
> showfield="NAME">$/cities10000eu.dbf</dbasefile>
>                               </definition>
>                       </field>
> 
>         </layer>
>     </searchitem>
> 
> Countries suggest works fine but cities options does not list only the
> cities of the previous selected country as options.
> Anyone who knows where the use of the elements "keyfield" "dependfield"
> "events" in this context is documentet.
> 
> thanks in advance
> 
> Karl
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to