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);