Get Attribute from Capture Geometry
Greetings,
I have a workflow that uses the capture geometry activity to select a property.
Some of our properties are multi parts. I would like to be able to get the PID number attribute from the featureset that has been created by the capture geometry activity and then use that to perform a query that will get all parts of the property.
I tried to use the GetAttributeValue activity, but it is returning no results, is this how I should be doing this, or is there another activity?
Thanks
Gordy
-
Hi Gordy
assuming that you have a FeatureSet then ssing an Assign activity:
strVar = FeatureSetName.Features(0).Attributes("AttributeName").Value.ToString
should work for you. You will of course need to finetune depending on the datatype of the attributes that you are dealing with.
Regards
Ralph
0 -
Thank you for your help,
When I use the following in an assign; query_result.Features(0).Attributes("PID").Value.ToString
I get the error Option Strict On disallows late binding
Any Ideas?
Thanks
0 -
Hi Gordy
so your attribute is an integer field?
Howabout:
intVar = FeatureSetName.Features(0).Attributes("AttributeName").Value
where intVar is declared to be an integer
Ralph
0 -
Yes my attribute is an integer field
With some trail and error I found that intVar =FeatureSetName.Features(0).Attributes("AttributeName").ToString worked.
Many Thanks,
0 -
Thank you Ryan,
That worked perfect, and I did have some NULL values which caused the workflow to crash, which is now fixed.
Gordy
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare