[Geomoose-users] Edit select type attributes in vector layer.

Luis Calisto luis.calisto at hotmail.com
Tue Nov 19 07:54:04 PST 2013


I removed the "(%)" and tried with the following code:
		<attribute name="test" type="select" default-value="50" label="Opacity:" >					<option value="0">0</option>			<option value="50">50</option> 		</attribute>
still i have the same error: "Uncaught TypeError: Cannot call method 'getElementsByTagName' of null "
What can it be?
From: MarkVolz at co.lyon.mn.us
To: luis.calisto at hotmail.com; geomoose-users at lists.osgeo.org
Subject: RE: [Geomoose-users] Edit select type attributes in vector layer.
Date: Tue, 19 Nov 2013 15:35:37 +0000









Luis,
 
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.
 

Mark Volz, GISP
GIS Specialist

 



From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org]
On Behalf Of Luis Calisto

Sent: Tuesday, November 19, 2013 9:02 AM

To: geomoose-users at lists.osgeo.org

Subject: [Geomoose-users] Edit select type attributes in vector layer.


 

Hi,

 


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".


 


In the demo mapbook example, the vector layer "sketch" there is a commented line:


                     



<attribute name="opacity" type="select" default-value="100" label="Opacity (%):"/>


 


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 " 


 


I changed the attribute options in the mapbook demo to:


 



<attribute name="opacity" type="select" default-value="100" label="Opacity (%):">


                     
<option value="0">0</option>


                     
<option value="50">50</option>


</attribute>



 


But same error! Any idea? Is it possible to use the select type in the vector attributes?


 


Best regards


Luís Calisto



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20131119/c533cac6/attachment-0001.html>


More information about the Geomoose-users mailing list