<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ok, as it turns out it IS necessary to put the key name in the
service definition (so follow my instructions sent at 10:57 below).
For now. <br>
<br>
I think the fix would be fairly simple: change feature_report.php
to reference the "PID" parameter (maybe "FID" would be a better
name?).<br>
<br>
Specifically, change line 67 from:<br>
<br>
<span class="pl-s1"><tt><span class="pl-smi">$layer</span></tt><tt><span
class="pl-k">-></span></tt><tt>setFilter(</tt><tt><span
class="pl-c1">str_replace</span></tt><tt>(</tt><tt><span
class="pl-s"><span class="pl-pds">'</span>%qstring%<span
class="pl-pds">'</span></span></tt><tt>, </tt><tt><span
class="pl-c1">urldecode</span></tt><tt>(</tt><tt><span
class="pl-smi">$_REQUEST</span></tt><tt>[</tt><tt><span
class="pl-smi">$qItem</span></tt><tt>]), </tt><tt><span
class="pl-smi">$query_info</span></tt><tt><span class="pl-k">-></span></tt><tt>getAttribute(</tt><tt><span
class="pl-s"><span class="pl-pds">'</span>string<span
class="pl-pds">'</span></span></tt><tt>)));</tt><br>
<br>
to<br>
</span><tt>$layer->setFilter(str_replace('%qstring%',
$_REQUEST['PID'], $query_info->getAttribute('string')));</tt><br>
<br>
And an implementer would now specify:<br>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><big><big><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><tr><td
align="left"><b><a href = "<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="javascript:GeoMOOSE.startService(">javascript:GeoMOOSE.startService(</a></span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'<b>feature_report</b>'</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">,
{</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'<b>PID</b>'</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
: '[</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">]',
'src' :
'Hydrography/Lakes'})">Report</a></b></td></tr></span></big></big></p>
<br>
(if the layer's unique key was named "BF_ID")<br>
<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<div class="moz-cite-prefix">On 6/1/2015 5:15 PM, Brent Fraser
wrote:<br>
</div>
<blockquote cite="mid:556CE7AA.2000805@geoanalytic.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
I need to correct the information is sent earlier. The first part
of the instructions below ("Edit the feature_report service...")
is not necessary as the key field name is specified in the
template ("<query item="), not the service definition.<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<div class="moz-cite-prefix">On 6/1/2015 10:57 AM, Brent Fraser
wrote:<br>
</div>
There doesn't seem to be a lot of documentation for the Feature
Report service, so I made some notes:<br>
<span
style="font-size:19px;font-family:Arial;color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><br>
Feature Reports</span>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><br>
Edit (or copy) the feature_report service in the mapbook to
add the key field, for example:</span></p>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<service name="feature_report</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">_Hydrography</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"
display="false" keep-others="true"></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<url>php/feature_report.php</url></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<input type="hidden" name="layers"
value="Backgrounds/osm"/></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<input type="hidden" name="src"/></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<input type="hidden" name="</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"/></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</service></span></p>
<span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><br>
<br>
</span>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Add
the metadata to the feature’s map file:</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">METADATA</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'identify_record'
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_identify.html'</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'popups'
</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_popups.html'</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'feature_report'
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"> </span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_report.xml'</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">END
# of METADATA</span></p>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Edit
the _identify template to add a link to generate and view the
report. For example my </span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_HYDRO_POLYGON_identify.html
</span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">template
has:<br>
</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><tr><td
align="left"><b><a href = "<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="javascript:GeoMOOSE.startService(">javascript:GeoMOOSE.startService(</a></span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'feature_report_Hydrography'</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">,
{</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_ID'</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
: '[</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">]',
'src' :
'Hydrography/Lakes'})">Report</a></b></td></tr></span></p>
<br>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Create
the report xml file (in my case the file is named </span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_HYDRO_POLYGON_report.xml</span>)
modifying the key name and the PDF report name:<br>
</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<query item="</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"
string="%qstring%"/></span></p>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<!-- This is the template --></span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
<template>BF_HYDRO_POLYGON_template.pdf</template></span></p>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Create
the report PDF file</span></p>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
</span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Copy
the parcel_template.pdf to the name you entered in the report
xml file, for example:</span></p>
<br>
<p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">copy
parcel_template.pdf BF_HYDRO_POLYGON_template.pdf</span></p>
<pre class="moz-signature" cols="72">--
Best Regards,
Brent Fraser</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></pre>
</blockquote>
<br>
</body>
</html>