Get value from a feature's date field
Hello,
My feature layer has a date field. However I can't get the value out of the selected feature.
Here is the code piece:
string variable="Date: "+if(fsElevCert.features(0).attributes("CERTIFICATE_DATE"), "").toString()
Here is the date value i suppose to get:
1/13/1987
Thanks
0
-
try: string variable="Date: " + if(fsElevCert.features(0).attributes("CERTIFICATE_DATE").toString(), "")0 -
Thanks. I found out it was data related. I was able to get the values from a selected feature for some of the fields but could not for others. One of the field was a date field. I recreated a new featureclass with the same field definition and loaded data into the new one. Now i get all the values from all the fields. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare