Select to view content in your preferred language

Query all

429
5
Jump to solution
03-04-2025 08:04 PM
abufadzly
Emerging Contributor

I want to query from a map server but I can only get data from one field. How can I get data of all the fields. Thank you.

 

final serviceFeatureTable = ServiceFeatureTable.withUri(Uri.parse(".../MapServer/0"));
 
final queryParameters = QueryParameters();
queryParameters.whereClause = "1=1";
queryParameters.returnGeometry = true;

final queryResult = await serviceFeatureTable.queryFeatures(queryParameters);
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ChanganShi1
Regular Contributor

You can use the ServiceFeatureTable.queryFeaturesWithFieldOptions method to retrieve all fields. See document here.


View solution in original post

5 Replies
tasubasu
Occasional Contributor

Is this what you are looking for?
queryParameters.outFields="*"

example: &relationParam=&outFields=*&returnGeometry=false

0 Kudos
abufadzly
Emerging Contributor
0 Kudos
tasubasu
Occasional Contributor

Apologies I misread this. I'm of no help sorry.

0 Kudos
ChanganShi1
Regular Contributor

You can use the ServiceFeatureTable.queryFeaturesWithFieldOptions method to retrieve all fields. See document here.


abufadzly
Emerging Contributor

Thank you! I was focusing too much on outfield

0 Kudos