<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Donald, thank you very much for your reply,</span></div><div><br><span></span></div><div><span>I already have the string </span>"gml_featureid" "ogc_fid" in the map file.</div><div>Here is my template.html:</div><div>***************<br></div><div><!-- MapServer Template --><br><html><body><br><font size+1><b>קבר</b></font><p><br><table cellpadding=5 cellspacing=2 border=0><br><tr bgcolor=#CCCCCC><th>Attribute</th><th>Value</th></tr><br><br><tr><td>הפניה:</td><td>[ogc_fid]</td></tr><br><tr><td>שם
 מלא:</td><td>[shem_mal]</td></tr><br><tr><td>תאריך:</td><td>[tarih]</td></tr><br><tr><td>אידי:</td><td>[unick_id]</td></tr><br><br></table><p><br></body></html><br>***********</div><div><br></div><div><br></div><div>There are 2 more fields with "_", them work good. Problem only with [ogc_fid] (I tryed to change register - also don't work).<br></div><div><br></div><div>here is schema of layer (spatialite myfile.sqlite -> .shema layername):</div><div>***********</div><div>CREATE TABLE 'gves' (   OGC_FID INTEGER PRIMARY KEY, "GEOMETRY" POINT, 'gush' VARCHAR, 'halka' FLOAT, 'ms_sh' FLOAT, 'ms_sh_1' FLOAT, 'mispar' FLOAT, 'shem' VARCHAR, 'mishpaha' VARCHAR, 'min' VARCHAR, 'tarih' VARCHAR, 'tarih_1' VARCHAR, 'x' FLOAT, 'y' FLOAT, 'tashlum' VARCHAR, 'ktovet' VARCHAR, 'moza' VARCHAR, 'ptira' VARCHAR, 'knia' VARCHAR,
 'shem_mal' VARCHAR, 'gusheng' VARCHAR, 'kvarim' FLOAT, 'unick_id' VARCHAR);</div><div>***********<br></div><div><br></div><div>May be OGC_FID is some sort of special field in spatialite files. As you see in schema it looks not as another fields. Of cource, I can create a new field and copy there values from OGC_FID, but I want to try to find the way without changing the struture of table. </div><div><br></div><div>Thank you for help<br></div><div><br></div><div>Best regards, Alexey<br></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">От:</span></b> Donald Kerr <donald.kerr@dkerr.co.uk><br> <b><span style="font-weight: bold;">Кому:</span></b> alexkartatemp-1@yahoo.com; mapserver-users@lists.osgeo.org
 <br> <b><span style="font-weight: bold;">Отправлено:</span></b> среда, 1 августа 2012 10:08<br> <b><span style="font-weight: bold;">Тема:</span></b> RE: [mapserver-users] how to use attribute name in template with "_"<br> </font> </div> <br>Try this line in the LAYER METADATA:<br><br>LAYER<br>    METADATA<br>        "gml_featureid" "ogc_fid"<br>    END<br>END<br><br>Regards,<br><br>Donald<br><br><br>    METADATA<br>-----Original Message-----<br>From: <a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>[mailto:<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of<br><a ymailto="mailto:alexkartatemp-1@yahoo.com"
 href="mailto:alexkartatemp-1@yahoo.com">alexkartatemp-1@yahoo.com</a><br>Sent: 31 July 2012 23:42<br>To: <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>Subject: [mapserver-users] how to use attribute name in template with "_"<br><br><br>Hello,<br>I use mapserver 6.0.3<br><br><br>I created template for getting info from (OpenLayers WMSGetFeatureInfo<br>method) spatilite file.<br>I can't get access to the field "ogc_fid" from template. I think it is<br>because of symbol "_" in field name.<br><br><br>What I can do to get [ogc_fid] value from template?<br><br><br>Thank you<br><br><br><br> </div> </div>  </div></body></html>