|
POST
|
I am having a display issue with stacked pop-ups. My first pop-up displays correct. However if I use the arrow to go to the next pop-up it does not display. Thank you for the help const popupTemplate_PTS = new PopupTemplate({ title: "<h2>Project Title: " + "{project_title}" + "</h2>", content: function popupTemplate_PTS() { var PTSdisplayString = ""; PTSdisplayString += ("<b>Project Number: </b>"); var myProject_link = ("https://opendsd.sandiego.gov/Web/Projects/Details/" + "{project_id }"); var myProject_text = ("{project_id}"); var URLmyProject_link = myProject_text.link(myProject_link); PTSdisplayString += (URLmyProject_link); PTSdisplayString += "<br>"; PTSdisplayString += ("<b>Project Created: </b>" + "{ date_project_create }" + '</br>'); PTSdisplayString += ("<b>Project Scope: </b>" + "{project_scope}" + '</br></br>'); PTSdisplayString += '<b>Job address: </b>' + '{address_job}' + '</br>'; PTSdisplayString += '<b>Job APN: </b>' + '{job_apn}' + '</br>'; PTSdisplayString += '<b>Job Drawing Number: </b>' + '{job_drawing_number}' + '</br>'; var myApproval_link = ("https://opendsd.sandiego.gov/Web/Approvals/Details/" + '{approval_id}'); var myApproval_text = ("" + "{approval_id}"); var URLmyApproval_link = myApproval_link.link(myApproval_link); var URLmyApproval_link2 = myApproval_text.link(myApproval_link); PTSdisplayString += "<ul>"; PTSdisplayString += '<li><b>Approval Type: </b>' + '{approval_type}' + '<br /></li>'; PTSdisplayString += '<li><b>Approval Number: </b>' PTSdisplayString += (URLmyApproval_link2); PTSdisplayString += '</li>' PTSdisplayString += '<li><b>Approval Status: </b>' + '{approval_status}';// + "<br/>"; PTSdisplayString += "</ul>"; return PTSdisplayString },//end of function });
... View more
02-08-2021
11:47 AM
|
0
|
2
|
1237
|
|
POST
|
Be sure to set the includedefaultsources to false var searchWidget = new Search({ view: view, allPlaceholder: "Search by street address", autoSelect: true, suggestionsEnabled: true, includeDefaultSources: false, sources: [ { locator: new Locator({ //url: "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" //World GeocodeServer url: "your GeocodeServer" }), name: "City Locator", placeholder: "Street Address", zoomScale: 1000 }, ] })
... View more
02-02-2021
01:49 PM
|
0
|
0
|
2087
|
|
POST
|
I am new to the javascript api. I am stuck converting some arcade code into javascript. So I can add html (bold, url, etc) to the print out. Basically when the user clicks it will give me an APN which I want to filter/order in the DSD_HistoricPTS feature set I believe I want to use a FeatureLayerView so the processing can take place on the clients side. //arcade code below var clickedParcelAPN = $feature.APN //{APN} var filterbyAPN = 'job_apn = @clickedParcelAPN' var PTSFilterAPN = Filter(DSD_HistoricPTS, filterbyAPN) var PTSOrderBY_ProjectId = OrderBy(PTSFilterAPN, 'project_id') for (var f1 in PTSOrderBY_ProjectId){ popupString += Text("Project Title: " + f1.project_title) + TextFormatting.NewLine + ("Project Number: " + f1.project_id) + TextFormatting.NewLine + ("Project Created: " + f1.date_project_create) + TextFormatting.NewLine + etc } I can't figure out the javascript equivalent to Filter and OrderBy. I am sure there is a super simple solution but it has me stuck. Thank you!
... View more
01-11-2021
03:56 PM
|
0
|
1
|
1064
|
|
IDEA
|
Wonderful idea, currently it's a lot of steps to save arcade expressions as you are working on them 1) Close the arcade editor 2) Close the pop-up configuration 3) Save the map 4) Reopen the pop-configuration 5) Reopen the arcade editor...continue working
... View more
12-03-2020
10:46 AM
|
0
|
0
|
814
|
|
IDEA
|
It seems a web browser submission of a survey differs from the preview you see in connect under "Form Preview". With a public facing surveys I assume most are going to be completed in a web browser. For example masks work perfectly in the preview window of connect, however if you publish this and complete the survey via a web browser the functionality is lost. It would be great if there was a setting on the preview window of connect to get it to display and act as it will in the web browser. Otherwise the only way to really test a survey is to publish it, make changes republish.
... View more
11-30-2020
01:04 PM
|
7
|
1
|
720
|
|
IDEA
|
What great news! I am thrilled you are taking my idea under consideration. I will gladly help test this new feature in the EAP and will leave my feedback there.
... View more
11-23-2020
10:29 AM
|
0
|
0
|
2755
|
|
IDEA
|
I have a Survey123 that needs to collect the street address of business. So I have a couple required questions. However just collecting this will result in null island point locations. I either have to have a map question, requiring the user to enter their address again. Or pull the survey into Pro, export a table, geocoded and then publish the results. Why not just let us configure the map question to store the address information in the survey? Just a few configurable questions that can be loaded into the search for the map and display the results. Saving the address to the attribute table. This would mean the survey could be immediately displayed on a map, and no need for the user to input the same information twice.
... View more
11-10-2020
11:57 AM
|
8
|
5
|
2846
|
|
POST
|
Thank you Ken Buja I increased the timeout to 1000 and it works!
... View more
10-26-2020
07:53 AM
|
0
|
0
|
1658
|
|
POST
|
I have a script to grab the pop-up information when opened from the search bar. Only I get null results for the first opened pop-up and it's driving me crazy. The second time a pop up everything works as expected. I just can't capture the first pop up to open. If there is a better way to know which pop up is opened, I would love to know. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> <title>Search Widget | Sample | ArcGIS API for JavaScript 4.16</title> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } </style> <link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/themes/light/main.css" /> <script src="https://js.arcgis.com/4.16/"></script> <script> require([ "esri/Map", "esri/views/SceneView", "esri/widgets/Search" ], function (Map, SceneView, Search) { var map = new Map({ basemap: "satellite", ground: "world-elevation" }); var view = new SceneView({ scale: 123456789, container: "viewDiv", map: map }); var searchWidget = new Search({ view: view }); //a watcher for when the pop up fires view.popup.watch("visible", function (popUpStatusChange) { if (popUpStatusChange == true) { console.log('Pop-up watch has been fired') console.log("Pop-up title is:", view.popup.title); //returns the pop up title console.log("Pop-up content is:", view.popup.content); //returns the pop up content } }); view.ui.add(searchWidget, { position: "top-right" }); }); </script> </head> <body> <div id="viewDiv"></div> </body> </html>
... View more
10-23-2020
01:41 PM
|
0
|
2
|
1688
|
|
IDEA
|
The best work around I can think of is add all new fields in the "preferred" order, field calculate each field and then delete all the old fields. I would think that could be done with a bit of python, first objectid and geometry to a new feature class, then just joining the old fields one at a time in the new order.
... View more
10-09-2020
03:21 PM
|
0
|
0
|
2178
|
|
POST
|
I've started adding a duplicate webmap and try to form the story, so it is not two distracting to have both a webmap and a webapp displays on larger screens. That way at least I get an interactive map to show on a mobile screen. The webapp still shows as a card, but I assume most people just ignore it. I fully understand there are limitations to what should be displayed on a mobile screen. I really wish there was a way to include alternative map instead of a card. Since webapps and dashboards get turned into cards on mobile screens.
... View more
09-09-2020
01:14 PM
|
0
|
0
|
3166
|
|
POST
|
Thank you Robert, this is what I was looking for. I was getting doubled results when the pop up was turned on and off, so I added an if statement view.popup.watch("visible", function (popUpStatusChange) { if (popUpStatusChange == true) { console.log("Pop-up watch has been fired") console.log("Pop-up title is:", view.popup.title); //returns the pop up title console.log("Pop-up content is:", view.popup.content); //returns the pop up content } });
... View more
09-01-2020
02:10 PM
|
0
|
0
|
6149
|
|
IDEA
|
I would love to be able to load in the attributes from a feature service. I have a storymap with 50+ rec centers. If I could access a feature layer and it's attributes I could easily set up a webapp or a survey123 to let each rec center edit their own data. This way we could keep the most up to date data in the storymap with out me, trying to edit 50 plus records manually, or have 50 editors! With out access to dynamic layers the information displayed will have to very basic. However, if it can be dynamically updated information from a feature service, we could include things like movie is playing on "movie night" or a note that the stage is closed for repairs, etc.
... View more
08-03-2020
10:11 AM
|
2
|
0
|
4339
|
|
BLOG
|
Thank you for the reply, I honestly had not thought of the security side of things, that makes total sense. I am sure I can achieve similar results post survey.
... View more
07-20-2020
12:32 PM
|
0
|
0
|
1220
|
|
BLOG
|
Super excited @javascript functionality is now available for the web forms. Sadly I just found out that public surveys can not use javascript. Will this functionality be available in the future? There is so much I could do with javascript functionality but I would need it to work on Public Surveys or it won't meet my organizations needs.
... View more
07-17-2020
12:27 PM
|
0
|
0
|
1220
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-02-2021 12:12 PM | |
| 1 | 10-18-2022 11:12 AM | |
| 1 | 06-13-2023 08:55 AM | |
| 2 | 05-22-2024 03:26 PM | |
| 1 | 04-26-2024 01:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|