POST
|
I made the ability to upload any layer. Therefore I am do not know what attributes of the table will be loaded. For further action I need to know the names of these attributes. The first attribute, third and fifth - is for illustrative purposes only
... View more
07-14-2014
10:55 PM
|
0
|
0
|
467
|
POST
|
I load into the application map load all the attributes: infoTemplate = new esri.InfoTemplate("Attributes", "${*}"); now I want to get the first, third and fifth attribute from the list what they do not know. For example: with the line "infoTemplate = new esri.InfoTemplate("Attributes", "${*}"); I get a list of attributes: number name surname rent date1 date2 data3 when after press a button I should get a window with the inscription number, surname, date1 something like - I load into the application map load all the attributes: infoTemplate = new esri.InfoTemplate("Attributes", "${*}"); now I want to get the first, third and fifth attribute from the list what they do not know. For example: with the line "infoTemplate = new esri.InfoTemplate("Attributes", "${*}"); I get a list of attributes: number name surname rent date1 date2 data3 when after press a button I should get a window with the inscription number, surname, date1 something like:
alert(infoTemplate.content[1] + "; "+ infoTemplate.content[3]+", "+infoTemplate.content[5])
... View more
07-13-2014
11:06 PM
|
0
|
0
|
467
|
POST
|
I do so, but how do I get such a third element of this list?
... View more
07-10-2014
11:46 PM
|
0
|
2
|
467
|
POST
|
Hello. I'm doing an application based on a sample - ArcGIS API for JavaScript Sandbox Only in my case initially loaded all the fields:
//build query filter
query = new esri.tasks.Query();
query.outSpatialReference = {"wkid": 102100};
query.returnGeometry = true;
query.outFields = ["*"];
//create the infoTemplate to be used in the infoWindow.
infoTemplate = new esri.InfoTemplate("${FIELD_NAME}", "${*}");
Next I need to be able to choose the displayed fields, how can I get a list of all the fields layer Thanks in advance and sorry for my english
... View more
07-10-2014
06:18 AM
|
0
|
6
|
2414
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|