<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I removed the "(%)" and tried with the following code:<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span><attribute name="test" type="select" default-value="50" label="Opacity:" ><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><option value="0">0</option></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><option value="50">50</option> </div><div><span class="Apple-tab-span" style="white-space:pre"> </span></attribute></div><div><br></div><div>still i have the same error: "Uncaught TypeError: Cannot call method 'getElementsByTagName' of null "</div><div><br></div><div>What can it be?</div><br><div><hr id="stopSpelling">From: MarkVolz@co.lyon.mn.us<br>To: luis.calisto@hotmail.com; geomoose-users@lists.osgeo.org<br>Subject: RE: [Geomoose-users] Edit select type attributes in vector layer.<br>Date: Tue, 19 Nov 2013 15:35:37 +0000<br><br>
<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}
.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}
.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}
.ExternalClass span.ecxapple-tab-span {
}
.ExternalClass span.ecxEmailStyle19 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}
.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}
.ExternalClass div.ecxWordSection1 {
}
--></style>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Luis,</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">I am NOT the expert on this, but I would check and see if “(%)” is legal or not by removing those characters from the label.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Mark Volz, GISP</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">GIS Specialist</span></p>
</div>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";"> geomoose-users-bounces@lists.osgeo.org [mailto:geomoose-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Luis Calisto<br>
<b>Sent:</b> Tuesday, November 19, 2013 9:02 AM<br>
<b>To:</b> geomoose-users@lists.osgeo.org<br>
<b>Subject:</b> [Geomoose-users] Edit select type attributes in vector layer.</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Hi,</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">I'm working with the vector layers and the feature attribute edit tool, all works great but i can't put working an attribute that is configured in the mapbook with the type "select".</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">In the demo mapbook example, the vector layer "sketch" there is a commented line:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><span style="font-family:"Calibri","sans-serif";">
</span></span><span style="font-family:"Calibri","sans-serif";"></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"><attribute name="opacity" type="select" default-value="100" label="Opacity (%):"/></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">If i uncomment this line when i select the "edit attributes" tool it gives this error in the console: "Uncaught TypeError: Cannot call method 'getElementsByTagName' of null " </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">I changed the attribute options in the mapbook demo to:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"><attribute name="opacity" type="select" default-value="100" label="Opacity (%):"></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><span style="font-family:"Calibri","sans-serif";">
</span></span><span style="font-family:"Calibri","sans-serif";"><option value="0">0</option></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><span style="font-family:"Calibri","sans-serif";">
</span></span><span style="font-family:"Calibri","sans-serif";"><option value="50">50</option></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"></attribute></span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">But same error! Any idea? Is it possible to use the select type in the vector attributes?</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Best regards</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Luís Calisto</span></p>
</div>
</div>
</div>
</div></div></div> </div></body>
</html>