using REST service

778
0
06-23-2011 10:36 AM
SaugatJoshi
New Contributor
I have a REST endpoint as...

Layers:
agistion (0)
agistand (1)
agislight (2)
agiscontrolpoint (3)
agissign (4)
agisssite (5)
agisesite (6)
agispment (7)
agisbuoy (8)
agiscident (9)
.
.
.
.
agisent (100)

Fields associated with each layer.
Fields:
project_id ( Type: esriFieldTypeInteger, Alias: transformation_transaction_id )
feature_id ( Type: esriFieldTypeString, Alias: feature_id , Length: 64 )
feature_type ( Type: esriFieldTypeString, Alias: feature_type , Length: 30 )
alternative ( Type: esriFieldTypeInteger, Alias: alternative )
description ( Type: esriFieldTypeString, Alias: description , Length: 255 )

Now each of these layer have number of projects associated. for eg: agistion (0) has project id =20,40,123 associated with it. I want to filter out the only those with project id= 20, from all the 100 layers and have it on the flex viewer,such that the widgets can use it. I used find task to achieve this but it requires layer ID to be written as well as the widgets do not work. Since the number of layer may change in time I do not think this is feasible as well.

Could you hint me as how I should proceed to this. May be some python script or what not. I really appreciate your feedback.

Thank you.
0 Kudos
0 Replies