<DIV>Hi! Dear lists,</DIV>
<DIV> </DIV>
<DIV>The maplab i button (query) does not work. According to the previous forum from Jeff Mckenna (see below), I put the template html with path or attribute value in DBF or ttt only in the template seting in mapedit. The return html is same, " the following layers did not return any results:---- plus all name of layer---".</DIV>
<DIV> </DIV>
<DIV>If I want to query dbf information in maplab, how I made the i button work? In other word, how to set template parameter in mapedit?</DIV>
<DIV> </DIV>
<DIV>Some previous forum mentioned the query template does not work in maplab and the only way is to modify query.phtml in GMf_apps. Is it true?</DIV>
<DIV> </DIV>
<DIV>Thank you very much!!</DIV>
<DIV> </DIV>
<DIV>Charlie </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Just a note: you can put the value for TEMPLATE in either the CLASS or <BR>LAYER object. If you only have one class there will be no difference. If <BR>you have more than one class and you want all classes to return results, <BR>put the TEMPLATE value in the LAYER object. If you have more than one <BR>class you will need to put a value for TEMPLATE in each class you want <BR>queried. That way you can prevent certain classes from being queried if <BR>you want.<BR><BR>Jeff McKenna wrote:<BR><BR>><I> Hi Paul,<BR></I>><I><BR></I>><I> Yes it is possible to query the dbf files of shapefiles using MapLab. <BR></I>><I> Simply add a TEMPLATE in the CLASS object of the layer that you want <BR></I>><I> to query. MapLab looks for the word "TEMPLATE" in the class object. <BR></I>><I> The template value can be anything, the file does not exist so just <BR></I>><I> make up something. e.g.:<BR></I>><I><BR></I>><I>
LAYER<BR></I>><I> NAME "oceans"<BR></I>><I> STATUS ON<BR></I>><I> DATA "ocean75m"<BR></I>><I> TYPE POLYGON<BR></I>><I> UNITS METERS<BR></I>><I> CLASS<BR></I>><I> COLOR 0 0 200<BR></I>><I> TEMPLATE "ttt"<BR></I>><I> END<BR></I>><I> END<BR></I>><I><BR></I>><I> obviously "ttt" is not a valid file, but MapLab just looks for the <BR></I>><I> presence of TEMPLATE in the CLASS object. Hope this helps.<BR></I>><I><BR></I>><I> By the way, any further MapLab questions should be sent to the MapLab <BR></I>><I> user list (<A href="http://lists.dmsolutions.ca/mailman/listinfo/maplab-users">http://lists.dmsolutions.ca/mailman/listinfo/maplab-users</A>) <BR></I>><I> so that developers and other
MapLab users can help you. Thanks.<BR></I>><I><BR></I>><I><BR></I>><I> Jeff<BR></I>><I><BR></I>><I><BR></I></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>