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 variableHow is that done?Thanks Günter
Can you try
query_result <SPAN class="operator token">=</SPAN> FeatureLayer<SPAN class="punctuation token">.</SPAN>query<SPAN class="punctuation token">(</SPAN>where <SPAN class="operator token">=</SPAN> <SPAN class="string token">'objectId > '</SPAN> <SPAN class="operator token">+</SPAN> str<SPAN class="punctuation token">(</SPAN>layer_id<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Smooth and straight. I googled, searched ... found stuff like %s, var ... but did not test the "Esri way" 🙂 Thanks!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.