Hi,
I searched for the proper syntax to do a query like this ...
xxLayer.query(where = 'objectid > 0')
but instead of giving it the value (here 0) this should be a variable
How is that done?
Thanks Günter
Solved! Go to Solution.
Can you try
query_result = FeatureLayer.query(where = 'objectId > ' + str(layer_id))
Can you try
query_result = FeatureLayer.query(where = 'objectId > ' + str(layer_id))
Smooth and straight. I googled, searched ... found stuff like %s, var ... but did not test the "Esri way" 🙂 Thanks!