when clicking on zoomin button in grid-table, the respective feature not selected. Please help how to solve this issue.
var map, navToolbar, drawToolbar, featurelayer, legendDijit,grid, store; require(["esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/FeatureLayer", "esri/tasks/QueryTask", "esri/tasks/query", "dojo/data/ItemFileReadStore", "dgrid/OnDemandGrid", "dgrid/Selection", "dojo/store/Memory", "dojo/_base/declare", "esri/InfoTemplate", "esri/arcgis/utils", "esri/dijit/Legend", "dojo/_base/array", "esri/layers/ImageParameters", "esri/dijit/OverviewMap", "esri/geometry/webMercatorUtils", "dojo/parser", "dijit/registry", "dijit/Toolbar", "esri/toolbars/navigation", "esri/toolbars/draw", "esri/graphic", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color", "dijit/form/Button", "dijit/layout/ContentPane", "dojo/on", "dojo/dom", "dojo/domReady!", "dijit/Tree", "dijit/Menu", "dijit/MenuItem" ], function (Map, ArcGISDynamicMapServiceLayer, FeatureLayer, QueryTask, Query, ItemFileReadStore, Grid, Selection, Memory, declare, InfoTemplate, utils, Legend, arrayUtils, ImageParameters, OverviewMap, webMercatorUtils, parser, registry, Navigation, Draw, Graphic, SimpleFillSymbol, SimpleLineSymbol, Color, on, dom, Tree, Menu, MenuItem) { dojo.ready(prepare); dojo.parser.parse(); // Get a reference to the ArcGIS Map class map = new Map("mapdiv", { basemap: "oceans", center: [78.573439, 8.217267], zoom: 2, scrollWheelZoom: false }); var content = "Organisation: ${organization}" + "
Project: ${projectname_id}" + "
Coast: ${coast}" + "
Vessel: ${vessel_name}" + "
Cruise: ${cruiseno}" + "
Cheif Scieintist: ${chiefscientist}" + "
Equipments: ${equipments_used}" + "
StartDate: ${startdate_aquisition}" + "
EndDate: ${enddate_aquisition}" + "
Total lines: ${total_lines_collected}" + "
Total Area: ${total_area_collected}" + "
Type of Data: ${type_of_data}" + "
Survey Area Name: ${survey_area_name}"; var infoTemplate = new InfoTemplate("Cruise Information", content); // Add feature layer featurelayer = new esri.layers.FeatureLayer("http://iicss63:6080/arcgis/rest/services/NCAOR/Data_formates/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate, opacity: 0.5 }); var fieldsSelectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5])); map.addLayers([featurelayer]); map.on("layers-add-result", function (evt) { var layerInfo = arrayUtils.map(evt.layers, function (layer, index) { return { layer: layer.layer, title: layer.layer.name }; }); if (layerInfo.length > 0) { var legendDijit = new esri.dijit.Legend({ map: map, layerInfos: layerInfo }, "legendDiv"); legendDijit.startup(); } }); map.on("load", function () { //after map loads, connect to listen to mouse move & drag events map.on("mouse-move", showCoordinates); map.on("mouse-drag", showCoordinates); }); function showCoordinates(evt) { // the map is in web mercator but display coordinates in geographic (lat, long) //display Map coordinates dojo.byId("coordinates").innerHTML = "Longitude: " + evt.mapPoint.getLongitude() + "
Latitude: " + evt.mapPoint.getLatitude(); } //Display overview Map var overviewMapDijit = new OverviewMap({ map: map, attachTo: "bottom-right", opacity:0.5, visible: true }); overviewMapDijit.startup(); var results = declare([Grid, Selection]); var columns = [{ label: "Zoom", //wasn't able to inject an HTML with image here field: "objectid", formatter: makeZoomButton }, { label: "Organization", field: "organization" }, { label: "ProjectName", field: "projectname_id", },{ label: "Coast", field: "coast", },{ label: "VesselName", field: "vessel_name", },{ label: "CruiseNo", field: "cruiseno ", },{ label: "ChiefScientist", field: "chiefscientist", },{ label: "StartDate", field: "startdate_aquisition", },{ label: "EndDate", field: "enddate_aquisition", }]; for (var i = 0; i "; return zBtn; } //create draw toolbar drawToolbar = new esri.toolbars.Draw(map); //Create graphic and fill color to graphic drawToolbar.on("draw-end", addToMap); function addToMap(evt) { drawToolbar.deactivate(); var queryTaskTouches = new QueryTask("http://iicss63:6080/arcgis/rest/services/NCAOR/Data_formates/MapServer/0"); var selectQuery = new Query(); selectQuery.returnGeometry = true; selectQuery.outFields=["*"]; selectQuery.geometry = evt.geometry; selectQuery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; queryTaskTouches.execute(selectQuery, showResults); } var items = []; var s; var featureAttributes; var graphic; var poly; function showResults(results) { //create array of attributes items = arrayUtils.map(results.features, function (feature) { var graphic = feature; graphic.setSymbol(fieldsSelectionSymbol); map.graphics.add(graphic); return feature.attributes; }); //store the results in memoryStore var memStore = new Memory({ data: items, idProperty: "objectid" }); window.grid.set("store", memStore); window.grid.set("sort", "organization"); debugger; grid.on(".field-objectid:click", function(e) { //retrieve the ObjectId when someone clicks on the magnifying glass if (e.target.alt) { zoomRow(e.target.alt); } }); } //zoom to selected object Id function zoomRow(id) { featurelayer.clearSelection(); var query = new Query(); query.objectIds = [id]; featurelayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(features) { //zoom to the selected feature var extent = features[0].geometry.getExtent().expand(2.0); map.setExtent(extent); }); } navToolbar = new esri.toolbars.Navigation(map); // var registrytools=dojo.digit.registry; on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); registry.byId("zoomin").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN); }); registry.byId("zoomout").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT); }); registry.byId("zoomfullext").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToFullExtent(); }); registry.byId("zoomprev").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToPrevExtent(); }); registry.byId("zoomnext").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToNextExtent(); }); registry.byId("pan").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.PAN); }); registry.byId("deactivate").on("click", function () { drawToolbar.deactivate(); navToolbar.deactivate(); }); registry.byId("drawRectangle").on("click", function () { navToolbar.deactivate(); drawToolbar.activate(esri.toolbars.Draw.RECTANGLE); }); function extentHistoryChangeHandler() { registry.byId("zoomprev").disabled = navToolbar.isFirstExtent(); registry.byId("zoomnext").disabled = navToolbar.isLastExtent(); } function prepare() { var store = new dojo.data.ItemFileReadStore({ data: { identifier: 'id', label: 'label', items: rawdata } }); // var store = dojo.byId("memoryStore"); var treeControl = new dijit.Tree({ store: store, showRoot: false, persist: false, autoExpand: false, openOnDblClick: true }, "treeOne"); var menu = new dijit.Menu(); menu.bindDomNode(treeControl.domNode); menu.addChild(new dijit.MenuItem({ label: "Simple menu item" })); dojo.connect(treeControl, "onClick", treeControl, function (item, nodeWidget, e) { console.log("is expandable?: ", nodeWidget.isExpandable, e.target); if (nodeWidget.isExpandable) { this._onExpandoClick({ node: nodeWidget }); } console.log("item : ", item); }); dojo.connect(menu, "_openMyself", this, function (e) { // alert("vvv"); var tn = dijit.getEnclosingWidget(e.target); // prepare the menu dojo.forEach(menu.getChildren(), function (child) { menu.removeChild(child); }, this); // if (store.getLabel(tn.item) == 'Level 1') { menu.addChild(new dijit.MenuItem({ label: " " + store.getLabel(tn.item), onClick: function () { alert('i was clicked') } })); menu.addChild(new dijit.MenuItem({ label: " " + store.getLabel(tn.item) })); // } // else { // alert("#"); // } }); menu.startup(); } var rawdata = [{ label: 'Organizations', id: 'orgs', active: true, children: [{ label: 'NCAOR', id: 'orgNCAOR', active: true, children: [{ label: 'Proj_Andaman', id: 'ncaorPAnd', children: [{ id: 'pAndCruse10', label: 'Cruse_10', children: [{ id: 'pAndC10RawData', label: 'Raw Data', children: [{ id: 'pAndC10RDSBES', label: 'SBES', active: false }, { id: 'pAndC10RDSBP', label: 'SBP', active: true }, { id: 'pAndC10RDSVP', label: 'SVP', active: true }, { id: 'pAndC10RDCTD', label: 'CTD', active: true }, { id: 'pAndC10RDG&M', label: 'G&M', active: true }, { id: 'pAndC10RDSSS', label: 'SSS', active: true }, { id: 'pAndC10RDNav', label: 'NAV', active: true }, { id: 'pAndC10RDGED', label: 'GED', active: true }, { id: 'pAndC10RDOMD', label: 'OMD', active: true }] }, { id: 'pAndC10ProcData', label: 'Processed Data', children: [{ id: 'pAndC10PDMBES', label: 'MBES', active: false }, { id: 'pAndC10PDSBP', label: 'SBP', active: true }, { id: 'pAndC10PDSVP', label: 'SVP', active: true }, { id: 'pAndC10PDCTD', label: 'CTD', active: true }, { id: 'pAndC10PDG&M', label: 'G&M', active: true }, { id: 'pAndC10PDSSS', label: 'SSS', active: true }, { id: 'pAndC10PDNav', label: 'NAV', active: true }, { id: 'pAndC10PDGED', label: 'GED', active: true }, { id: 'pAndC10PDOMD', label: 'OMD', active: true }] }] }, { id: 'pAndCruse20', label: 'Cruse_20', children: [{ id: 'pAndC20RawData', label: 'Raw Data', children: [{ id: 'pAndC20RDSBES', label: 'SBES', active: false }, { id: 'pAndC20RDSBP', label: 'SBP', active: true }, { id: 'pAndC20RDSVP', label: 'SVP', active: true }, { id: 'pAndC20RDCTD', label: 'CTD', active: true }, { id: 'pAndC20RDG&M', label: 'G&M', active: true }, { id: 'pAndC20RDSSS', label: 'SSS', active: true }, { id: 'pAndC20RDNav', label: 'NAV', active: true }, { id: 'pAndC20RDGED', label: 'GED', active: true }, { id: 'pAndC20RDOMD', label: 'OMD', active: true }] }, { id: 'pAndC20ProcData', label: 'Processed Data', children: [{ id: 'pAndC20PDMBES', label: 'MBES', active: false }, { id: 'pAndC20PDSBP', label: 'SBP', active: true }, { id: 'pAndC20PDSVP', label: 'SVP', active: true }, { id: 'pAndC20PDCTD', label: 'CTD', active: true }, { id: 'pAndC20PDG&M', label: 'G&M', active: true }, { id: 'pAndC20PDSSS', label: 'SSS', active: true }, { id: 'pAndC20PDNav', label: 'NAV', active: true }, { id: 'pAndC20PDGED', label: 'GED', active: true }, { id: 'pAndC20PDOMD', label: 'OMD', active: true }] }] }] }, { id: 'ncaorPMal', label: 'Proj_Maldivs', children: [{ id: 'pMalCruse30', label: 'Cruse_30', active: true }, { id: 'pMalCruse40', label: 'Cruse_40', active: true }], }] }, { label: 'NIC', id: 'orgNIC', children: [{ label: 'Proj_Nic1', id: '1.2.1', active: true }, { label: 'Proj_Nic2', id: '1.2.2', active: true }], }] }]; });
أكثر...
var map, navToolbar, drawToolbar, featurelayer, legendDijit,grid, store; require(["esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/FeatureLayer", "esri/tasks/QueryTask", "esri/tasks/query", "dojo/data/ItemFileReadStore", "dgrid/OnDemandGrid", "dgrid/Selection", "dojo/store/Memory", "dojo/_base/declare", "esri/InfoTemplate", "esri/arcgis/utils", "esri/dijit/Legend", "dojo/_base/array", "esri/layers/ImageParameters", "esri/dijit/OverviewMap", "esri/geometry/webMercatorUtils", "dojo/parser", "dijit/registry", "dijit/Toolbar", "esri/toolbars/navigation", "esri/toolbars/draw", "esri/graphic", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color", "dijit/form/Button", "dijit/layout/ContentPane", "dojo/on", "dojo/dom", "dojo/domReady!", "dijit/Tree", "dijit/Menu", "dijit/MenuItem" ], function (Map, ArcGISDynamicMapServiceLayer, FeatureLayer, QueryTask, Query, ItemFileReadStore, Grid, Selection, Memory, declare, InfoTemplate, utils, Legend, arrayUtils, ImageParameters, OverviewMap, webMercatorUtils, parser, registry, Navigation, Draw, Graphic, SimpleFillSymbol, SimpleLineSymbol, Color, on, dom, Tree, Menu, MenuItem) { dojo.ready(prepare); dojo.parser.parse(); // Get a reference to the ArcGIS Map class map = new Map("mapdiv", { basemap: "oceans", center: [78.573439, 8.217267], zoom: 2, scrollWheelZoom: false }); var content = "Organisation: ${organization}" + "
Project: ${projectname_id}" + "
Coast: ${coast}" + "
Vessel: ${vessel_name}" + "
Cruise: ${cruiseno}" + "
Cheif Scieintist: ${chiefscientist}" + "
Equipments: ${equipments_used}" + "
StartDate: ${startdate_aquisition}" + "
EndDate: ${enddate_aquisition}" + "
Total lines: ${total_lines_collected}" + "
Total Area: ${total_area_collected}" + "
Type of Data: ${type_of_data}" + "
Survey Area Name: ${survey_area_name}"; var infoTemplate = new InfoTemplate("Cruise Information", content); // Add feature layer featurelayer = new esri.layers.FeatureLayer("http://iicss63:6080/arcgis/rest/services/NCAOR/Data_formates/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate, opacity: 0.5 }); var fieldsSelectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5])); map.addLayers([featurelayer]); map.on("layers-add-result", function (evt) { var layerInfo = arrayUtils.map(evt.layers, function (layer, index) { return { layer: layer.layer, title: layer.layer.name }; }); if (layerInfo.length > 0) { var legendDijit = new esri.dijit.Legend({ map: map, layerInfos: layerInfo }, "legendDiv"); legendDijit.startup(); } }); map.on("load", function () { //after map loads, connect to listen to mouse move & drag events map.on("mouse-move", showCoordinates); map.on("mouse-drag", showCoordinates); }); function showCoordinates(evt) { // the map is in web mercator but display coordinates in geographic (lat, long) //display Map coordinates dojo.byId("coordinates").innerHTML = "Longitude: " + evt.mapPoint.getLongitude() + "
Latitude: " + evt.mapPoint.getLatitude(); } //Display overview Map var overviewMapDijit = new OverviewMap({ map: map, attachTo: "bottom-right", opacity:0.5, visible: true }); overviewMapDijit.startup(); var results = declare([Grid, Selection]); var columns = [{ label: "Zoom", //wasn't able to inject an HTML with image here field: "objectid", formatter: makeZoomButton }, { label: "Organization", field: "organization" }, { label: "ProjectName", field: "projectname_id", },{ label: "Coast", field: "coast", },{ label: "VesselName", field: "vessel_name", },{ label: "CruiseNo", field: "cruiseno ", },{ label: "ChiefScientist", field: "chiefscientist", },{ label: "StartDate", field: "startdate_aquisition", },{ label: "EndDate", field: "enddate_aquisition", }]; for (var i = 0; i "; return zBtn; } //create draw toolbar drawToolbar = new esri.toolbars.Draw(map); //Create graphic and fill color to graphic drawToolbar.on("draw-end", addToMap); function addToMap(evt) { drawToolbar.deactivate(); var queryTaskTouches = new QueryTask("http://iicss63:6080/arcgis/rest/services/NCAOR/Data_formates/MapServer/0"); var selectQuery = new Query(); selectQuery.returnGeometry = true; selectQuery.outFields=["*"]; selectQuery.geometry = evt.geometry; selectQuery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; queryTaskTouches.execute(selectQuery, showResults); } var items = []; var s; var featureAttributes; var graphic; var poly; function showResults(results) { //create array of attributes items = arrayUtils.map(results.features, function (feature) { var graphic = feature; graphic.setSymbol(fieldsSelectionSymbol); map.graphics.add(graphic); return feature.attributes; }); //store the results in memoryStore var memStore = new Memory({ data: items, idProperty: "objectid" }); window.grid.set("store", memStore); window.grid.set("sort", "organization"); debugger; grid.on(".field-objectid:click", function(e) { //retrieve the ObjectId when someone clicks on the magnifying glass if (e.target.alt) { zoomRow(e.target.alt); } }); } //zoom to selected object Id function zoomRow(id) { featurelayer.clearSelection(); var query = new Query(); query.objectIds = [id]; featurelayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(features) { //zoom to the selected feature var extent = features[0].geometry.getExtent().expand(2.0); map.setExtent(extent); }); } navToolbar = new esri.toolbars.Navigation(map); // var registrytools=dojo.digit.registry; on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); registry.byId("zoomin").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN); }); registry.byId("zoomout").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT); }); registry.byId("zoomfullext").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToFullExtent(); }); registry.byId("zoomprev").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToPrevExtent(); }); registry.byId("zoomnext").on("click", function () { drawToolbar.deactivate(); navToolbar.zoomToNextExtent(); }); registry.byId("pan").on("click", function () { drawToolbar.deactivate(); navToolbar.activate(esri.toolbars.Navigation.PAN); }); registry.byId("deactivate").on("click", function () { drawToolbar.deactivate(); navToolbar.deactivate(); }); registry.byId("drawRectangle").on("click", function () { navToolbar.deactivate(); drawToolbar.activate(esri.toolbars.Draw.RECTANGLE); }); function extentHistoryChangeHandler() { registry.byId("zoomprev").disabled = navToolbar.isFirstExtent(); registry.byId("zoomnext").disabled = navToolbar.isLastExtent(); } function prepare() { var store = new dojo.data.ItemFileReadStore({ data: { identifier: 'id', label: 'label', items: rawdata } }); // var store = dojo.byId("memoryStore"); var treeControl = new dijit.Tree({ store: store, showRoot: false, persist: false, autoExpand: false, openOnDblClick: true }, "treeOne"); var menu = new dijit.Menu(); menu.bindDomNode(treeControl.domNode); menu.addChild(new dijit.MenuItem({ label: "Simple menu item" })); dojo.connect(treeControl, "onClick", treeControl, function (item, nodeWidget, e) { console.log("is expandable?: ", nodeWidget.isExpandable, e.target); if (nodeWidget.isExpandable) { this._onExpandoClick({ node: nodeWidget }); } console.log("item : ", item); }); dojo.connect(menu, "_openMyself", this, function (e) { // alert("vvv"); var tn = dijit.getEnclosingWidget(e.target); // prepare the menu dojo.forEach(menu.getChildren(), function (child) { menu.removeChild(child); }, this); // if (store.getLabel(tn.item) == 'Level 1') { menu.addChild(new dijit.MenuItem({ label: " " + store.getLabel(tn.item), onClick: function () { alert('i was clicked') } })); menu.addChild(new dijit.MenuItem({ label: " " + store.getLabel(tn.item) })); // } // else { // alert("#"); // } }); menu.startup(); } var rawdata = [{ label: 'Organizations', id: 'orgs', active: true, children: [{ label: 'NCAOR', id: 'orgNCAOR', active: true, children: [{ label: 'Proj_Andaman', id: 'ncaorPAnd', children: [{ id: 'pAndCruse10', label: 'Cruse_10', children: [{ id: 'pAndC10RawData', label: 'Raw Data', children: [{ id: 'pAndC10RDSBES', label: 'SBES', active: false }, { id: 'pAndC10RDSBP', label: 'SBP', active: true }, { id: 'pAndC10RDSVP', label: 'SVP', active: true }, { id: 'pAndC10RDCTD', label: 'CTD', active: true }, { id: 'pAndC10RDG&M', label: 'G&M', active: true }, { id: 'pAndC10RDSSS', label: 'SSS', active: true }, { id: 'pAndC10RDNav', label: 'NAV', active: true }, { id: 'pAndC10RDGED', label: 'GED', active: true }, { id: 'pAndC10RDOMD', label: 'OMD', active: true }] }, { id: 'pAndC10ProcData', label: 'Processed Data', children: [{ id: 'pAndC10PDMBES', label: 'MBES', active: false }, { id: 'pAndC10PDSBP', label: 'SBP', active: true }, { id: 'pAndC10PDSVP', label: 'SVP', active: true }, { id: 'pAndC10PDCTD', label: 'CTD', active: true }, { id: 'pAndC10PDG&M', label: 'G&M', active: true }, { id: 'pAndC10PDSSS', label: 'SSS', active: true }, { id: 'pAndC10PDNav', label: 'NAV', active: true }, { id: 'pAndC10PDGED', label: 'GED', active: true }, { id: 'pAndC10PDOMD', label: 'OMD', active: true }] }] }, { id: 'pAndCruse20', label: 'Cruse_20', children: [{ id: 'pAndC20RawData', label: 'Raw Data', children: [{ id: 'pAndC20RDSBES', label: 'SBES', active: false }, { id: 'pAndC20RDSBP', label: 'SBP', active: true }, { id: 'pAndC20RDSVP', label: 'SVP', active: true }, { id: 'pAndC20RDCTD', label: 'CTD', active: true }, { id: 'pAndC20RDG&M', label: 'G&M', active: true }, { id: 'pAndC20RDSSS', label: 'SSS', active: true }, { id: 'pAndC20RDNav', label: 'NAV', active: true }, { id: 'pAndC20RDGED', label: 'GED', active: true }, { id: 'pAndC20RDOMD', label: 'OMD', active: true }] }, { id: 'pAndC20ProcData', label: 'Processed Data', children: [{ id: 'pAndC20PDMBES', label: 'MBES', active: false }, { id: 'pAndC20PDSBP', label: 'SBP', active: true }, { id: 'pAndC20PDSVP', label: 'SVP', active: true }, { id: 'pAndC20PDCTD', label: 'CTD', active: true }, { id: 'pAndC20PDG&M', label: 'G&M', active: true }, { id: 'pAndC20PDSSS', label: 'SSS', active: true }, { id: 'pAndC20PDNav', label: 'NAV', active: true }, { id: 'pAndC20PDGED', label: 'GED', active: true }, { id: 'pAndC20PDOMD', label: 'OMD', active: true }] }] }] }, { id: 'ncaorPMal', label: 'Proj_Maldivs', children: [{ id: 'pMalCruse30', label: 'Cruse_30', active: true }, { id: 'pMalCruse40', label: 'Cruse_40', active: true }], }] }, { label: 'NIC', id: 'orgNIC', children: [{ label: 'Proj_Nic1', id: '1.2.1', active: true }, { label: 'Proj_Nic2', id: '1.2.2', active: true }], }] }]; });
أكثر...