POST
|
I need to know if there is any difference between ArcGIS Enterprise (on premise) and ArcGIS Enterprise (Amazon Web Service) for reading feature layer by ArcGIS Maps SDK for JavaScript. The following code in the screenshot shows how I am currently reading feature layers from ArcGIS Enterprise (technically Portal for ArcGIS) installed in a physical server (on premise): use portalItem ID and portal URL. Is there any difference when I read feature layering from Portal for ArcGIS installed in Amazon Web Service ? Can I just write the same code as below? I highly appreciate your help. Thank you and best regards, Eiji
... View more
01-21-2025
08:05 PM
|
0
|
1
|
586
|
POST
|
Hi Than Aung, Thank you very much for giving me some insights. I tried your approach and others but unfortunately nothing seems to work. I know I must be doing something wrong. For example, I tried to display the output of default value of DatePicker and your formatted value using the following scripts: // Date Picker const startDate = new DatePicker({ container: "start-date-picker", value: "2020-06-10" }); view.ui.add(startDate, "bottom-right"); var datePickID = document.getElementById("datePicker-date"); var formattedID = document.getElementById("formatted-date"); var datePickerDate = startDate.value; datePickID.innerHTML = datePickerDate; formattedID.innerHTML = datePickerDate.getFullYear() + "-" + (datePickerDate.getMonth() + 1) + "-" + datePickerDate.getDate(); view.whenLayerView(dwallLayer).then(function(layerView) { timeLayerView = layerView; timeLayerView.filter = { // where: "endDate <= date'" + "2020-6-10" + "'" // time field is "EndDate" where: "endDate <= DATE'" + fromattedID.innerHTML + "'" // time field is "EndDate" } }); Output is displayed like this: Unfortunately, the formatted value simply returned nothing. I have no idea how I can convert the raw DatePicker date format to "2020-6-10". I hope you can give another clue.. Best Regards,
... View more
05-17-2020
01:55 AM
|
0
|
1
|
1496
|
POST
|
Dear viewers, I wonder how I can filter feature layer using new widget "DatePicker". More specifically, I want to return a date selected in DatePicker and filter the feature layer in featureLayerView. I have tried lots but I am not even certain what is wrong or right. I am sorry that what I did below does not make sense... I really appreciate it if you can give me some hints.. // Date Picker const startDate = new DatePicker({ container: "start-date-picker" }); view.ui.add(startDate, "bottom-right"); // click event handler for seasons choices startDate.addEventListener("click", filterByDate); // User clicks date // Filter layer by the selected date function filterByDate(event) { const selectedDate = event.target.value; timeLayerView.filter = { where: "EndDate <= date'" + selectedDate + "'" // time field is "EndDate" }; } view.whenLayerView(featureLayer).then(function(layerView) { timeLayerView = layerView; });
... View more
05-11-2020
02:49 AM
|
1
|
3
|
1629
|
POST
|
Hello, What I want to do: I simply want to add an expression in Dynamic content of Text widget so that I can calculate proportion (see Figure below). However, it fails whenever I add using conditional sentences (==). I tried lots but nothing works. Question: Could someone kindly teach me how to filter data using Expression? Is it even possible to add conditional sentences? Are there any instruction documents for how to use Expression of Dynamic Text widget. I have not seen anything in the homepage. Does it use SQL or Arcade expression? I really appreciate your assistance.
... View more
04-01-2020
05:18 PM
|
3
|
4
|
5931
|
Title | Kudos | Posted |
---|---|---|
3 | 04-01-2020 05:18 PM | |
1 | 05-11-2020 02:49 AM |
Online Status |
Offline
|
Date Last Visited |
01-26-2025
02:57 AM
|