<div class="gmail_quote">2009/11/1 Hans <span dir="ltr"><<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p>if you need the PVs as you say, for db fields, </p>
<p>and want to use a single coord markup,</p>
<p>you could try this to set both properties:</p></div></blockquote><div>Thanks for that Hans. I added the following based on your example to get it to parse (moved last quote closing PZZ line, added semi-colons and used $lat, $long variables to SetProperties - right?)<br>
<br>Markup('coord', 'directives',<br> "/\\(:coord\\s+(.*?)\\s+(.*?)\\s*:\\)/ei",<br> "PZZ(SetCoord(\$pagename, PSS('$1'), PSS('$2')))");<br><br>function SetCoord($pagename, $lat, $long) {<br>
SetProperty($pagename, 'latitude', $lat, ', ');<br> SetProperty($pagename, 'longitude', $long, ', ');<br>} <br></div></div><br>I've printed the parameters passed to SetCoord() and they are as I expect.<br>
<br>How can I see or access the values set by SetProperty(). I've run ?action=diag and searched for latitude and printing {$:latitude}, {$Latitude} within the wiki page which has the (:coord:) directive.<br><br>Perhaps I need to add :<br>
<br>$FmtPV['$Latitude'] = ...<br>$FmtPV['$Longitude'] = ...<br><br>...lines within this function also?<br><br>