Hi all,

I am having a hard time getting to work a search with 2 fields, second one
being dependant of the first one.
I especially would like to do that with data coming from PGSQL .

I know there are examples in the search.xml of the wiki, but I am not able
to reproduce them with the demo data:
- "Cities Options Suggest MS": P.MAPPER ERROR: This version of PHP does
support dBase functions
- "Communes Suggest PG": I can not find where to download the PGSQL
database gisdb

Does anyone have a link where to get gisdb database?

Here under what I tried with my own shapefile data.
This sort of work, but the second field is not filtered according to what
has been chosen on the first field.

<searchitem name="Test" description="Test -Options Suggest MS-">
            <layer type="shape" name="building _shp">

               <field type="s" name="TYPE" description="Building Type"
wildcard="2">
                    <definition type="options" connectiontype="ms"
sort="asc" firstoption="*">
                        <mslayer encoding="ISO-8859-1" keyfield="TYPE"
showfield="TYPE"/>

<events>onchange="$('#pmsfld_NUMBER').val('').flushCache()"</events>
                    </definition>
                </field>

                  <field type="s" name="NUMBER" description="Building
Number" wildcard="2">
                      <definition type="suggest" connectiontype="ms"
minlength="1" startleft="1" sort="asc" dependfld="TYPE">
                      <mslayer encoding="ISO-8859-1" keyfield="NUMBER"
showfield="NUMBER"/>
                      </definition>
                  </field>

            </layer>
        </searchitem>


Regards,
Chris
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to