How do I set or assign an object's property
Hi,
How does one asign or set an object's peroperties?
for example if I try to assign the following integer to a WKID (Where SR is an ESRI. ... .SpatialReference)
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000k9ut&feoid=Body&refid=0EMf2000000fzdL"_/_img_
I get the following error:
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000k9ut&feoid=Body&refid=0EMf2000000fzdQ"_/_img_
I seem to have no problems getting properties, but how do I go about setting them?
Many thanks!!!
0
-
Hello,
There is an example of updating feature attributes here -
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sample Sites\Workflow_Samples\Resources\Workflows\ArcGIS Server Editing\ArcGISServerEditing.xaml
on your server.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
You usually need to create an instance of the object before you can set any properties.
For your spatial reference example, you will need two Assign activities:
SR = New ESRI.ArcGIS.Client.Geometry.SpatialReference()
SR.WKID = 28355
Some objects, like Spatial Reference, can be instantiated in one Assign like below:
SR = New ESRI.ArcGIS.Client.Geometry.SpatialReference(28355)
You can use suggestions (Edit > Enable Intellisense) to see if this is an option.
_img_ alt="Creating an instance of spatial reference using the assign activity and intellisense." src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000kAfp&feoid=Body&refid=0EMf2000000fze9" _/_img_
Hope this helps!0 -
Thank you! Thank you! Thank you!!!!!!!!!!!! :) 0
Please sign in to leave a comment.
Comments
3 comments