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..
Ahmad,
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...
Ahmad,
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);
Ahmad,
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..
Ahmad,
Maybe sharing the code you have tried will help me understand what you are wanting to do.