How to display layer the appropriate map query???
Ahmad,
Are you wanting to query Oracle directly without using ArcGIS Server?
not, i'm using geodatabase n arcgis server Robert Scheitlin, GISP..
So do you have a map service published for this Oracle data then?
Yes, I've map services published arcgis server n geodatabase connected oracle, so I do not know if I have a query or define that layer?
So, rscheitlin get you to give me a solution n example...
Have you seen the Js API documentation? You need to add your layers using ArcGISDynamicMapServiceLayer or FeatureLayer. If you need limit the features for a layer than you can define a definition query in code. The API has many examples that you should begin looking at
Can I use relationalship query in ArcGIS server ?, and I implement it in ArcGIS javascript API?
function initOperationalLayer() { var infoTemplate = new InfoTemplate("${BD_ID}", "Building Name: ${BD_NAME}", "Building Name: ${BD_NAME}"); var bdID = "BD_ID='PND_A' OR BD_ID= 'PND_J'"; var featureLayer = new FeatureLayer("http://localhost/arcgis/rest/services/Demo/Demo/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate }); featureLayer.setDefinitionExpression(bdID); <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Again relationship queries are covered in the JS API documentation:
RelationshipQuery | API Reference | ArcGIS API for JavaScript 3.18
Thanks Robert Scheitlin, GISP, i've tried using relationalquery, but it has not yet completed my problem. I want the layer to appear by year in the table, Can you refer to me..
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.