I am trying to update rows of a field on a hosted feature layer.
fl.calculate(where="1=1", calc_expression={"field": "Description", "value" : appendval })
fl.calculate(where="1=1", calc_expression={"field": "Description", "sqlExpression" : "SignShape"})
Both of the above work. The first one will calculate the "Description" field to the value of the variable appendval.
The second one will calculate the "Description" field with the value from the "SignShape" field.
What I need to do is calculate the "Description" field with the value from the "SignShape" field and the value from appendval concatenated to it as shown below.
fl.calculate(where="1=1", calc_expression={"field": "Description", "sqlExpression" : "SignShape" + newval})
However, it seems I can use the "sqlExpression" to utilize values from the field itself, OR, "value" to utilize a variable or other value.
Any idea on how I can combine the two to get the desired results?
value from "SignShape" field = 'Generic Sign'
appenval = 'Updated'
the value I want to insert would be:
"Generic Sign - Updated"
Thanks for any suggestions,
R_