POST
|
Hey Ismael, Are there any updates to the ability to create a view from two feature services on AGOL? I could not find anything on this so I assume no movement yet, but could this be possible in Portal. I will most likely move ahead using Webhooks like James suggested to integrate my Workforce Assignments and my Survey123 Inspections. Tom Thomson wrote a great article here: Getting started with hosted feature layer views PS: Thank you for all your great Survey123 Articles, they are a lifesaver!
... View more
03-31-2020
07:35 AM
|
0
|
0
|
761
|
IDEA
|
The ability to have your own custom URL Scheme when creating records is one of the most powerful components of Survey123! With the ability to now edit existing records within Point, Polyline and Polygon feature classes it would be beneficial to extend this functionality to be able to pass field attributes when Editing. Currently the largest limitations of Edit Mode are that you cannot have pre-populated answers, capture start and end times and pass attributes into the form. Tackling the ability to pass attributes would address all of these issues and greatly increase the functionality of this mode. The most critical drawback of not having the ability to pass attributes in Edit Mode is in my opinion, that you cannot pass in Coordinates and automatically set the location of Geopoint questions. What lead me to post this idea was testing the ability for Survey123 to simultaneously create a record in one table and edit a record in a related table within the same database at the same time. In my testing this worked, but without the ability to pass attributes within the url scheme I cannot automatically set the location of the record that is being created within the repeat of the survey. If people are curious as to how to set this up I can post a more detailed How-To on how this works. In short your create a File Geodatabase in ArcMap/ArcPro with two tables or features classes, which are related using GlobalID and GUID and create a relationship between them. Then upload the database to AGOL. In Survey123 Connect you create a survey pointed to the first feature class or table within that Geodatabase via the form_id and submission_url within the settings. Within that survey you will create a repeat with the name field having the same name as the second feature class or table. You can then use the following guide to setup the URL to be in Edit Mode and when you hit submit the survey will edit the record in the first dataset and create a record in the second dataset. https://community.esri.com/groups/survey123/blog/2019/05/24/survey123-tricks-of-the-trade-editing-records-in-a-web-form Regards, Kevin
... View more
11-18-2019
01:31 PM
|
9
|
3
|
2197
|
POST
|
Hello All, I am implementing an application in Web Appbuilder and am looking for a little assistance from some more senior developers with implementing some changes to the Information Summary Widget. My clients have asked for the ability to have the widget group features. In the below example you can see there are different types of project for Water, Wastewater and Roadways and they are stored in two different types of feature class. Unfortunately to my knowledge there are no configuration settings to allow for this within the widget, so I have made some attempts at creating a facade to achieve this goal without overhauling the entire Widget.js file. Here is the before I have written this basic code posted below. In the Chrome console I can run the pieces to perform the intended result.The issue arises when I go to implement the code into the Widget.js file where things go poorly. In debugging the code of the widget to attempt to understand what is happening I have noticed that it passes through each feature class four times when refreshing the display, and this is where I am unsure where to implement my code to be performed after this is complete? //get the new sum from the first two layers var number1 = parseInt(document.getElementById("recNum_CapitalSearch_4529_4599_1271").innerHTML.replace(",","")) var number2 = parseInt(document.getElementById("recNum_CapitalSearch_9364_4752").innerHTML.replace(",","")) var number3 = number1 + number2 //sets the new sum of values document.getElementById("recNum_CapitalSearch_4529_4599_1271").innerHTML=number3 //combine lists var table1 = document.getElementById("legend_CapitalSearch_4529_4599_1271") var table2 = document.getElementById("legend_CapitalSearch_9364_4752") var table3 = table1.innerHTML + table2.innerHTML //sets the new values for the list document.getElementById("legend_CapitalSearch_4529_4599_1271").innerHTML=table3 //hides the element not wanted document.getElementById("rec_CapitalSearch_9364_4752").style.display="none" Here is the code working for a single pass Thank you for reading! Kevin
... View more
11-18-2019
10:48 AM
|
0
|
0
|
327
|
POST
|
Good Afternoon Lee, I am also now experiencing problems. Recently Google Chrome is now blocking the pop-up. As of yet I haven't found a way to fix this issue. It still seems to work as expected in Microsoft Edge, but I have not been able to allow AGOL as a trusted site to prevent it from blocking the pop-ups in Chrome. Kevin
... View more
11-18-2019
09:48 AM
|
0
|
0
|
1138
|
POST
|
Good Afternoon James, Thanks for taking the time to get back to me! Have you had a chance to open my example in Survey123 Connect and test it in the field app versus the browser? I am more concerned about the application capturing that all the questions have been check off; rather than, which questions have been checked off. My current use case is where questions are used to confirm that something has met our standards. The name field values can all be the same and the counting will work within the web browser, but it breaks in the field app? I am curious as to if this was designed like this or is a limitation of the field app? I would also like my values in the database to only have Y for an answer of yes and not have to resort to Y1 Y2 Y3 Y4 to make all the questions have unique values to work in the field app. Kind Regards, Kevin
... View more
08-12-2019
10:00 AM
|
0
|
1
|
427
|
POST
|
Hello All, I am having difficulty getting the Field App to know when my multiple choice question has had all of its questions answered. I have identified the issue as being caused by how the Field App stores its values and will not function as expected unless the choices names are unique. This would then require that I code all the possible combination for the multiple choice question as it can be completed in any order. I am not sure why this is happening or another away around this. I would greatly appreciate your assistance I have created a survey which shows what is going on.
... View more
08-08-2019
07:10 AM
|
1
|
3
|
515
|
POST
|
I have solved the issue and determined that you cannot pass the full URL from arcade into the Pop-up media URL. Create an Attribute Expression with the following code: // Converts Longitude from metres to decimal degrees var originShift = 2.0 * PI * 6378137.0 / 2.0; var lon = (Geometry($feature).x / originShift) * 180.0; // Converts Latitude from metres to decimal degrees var originShift = 2.0 * PI * 6378137.0 / 2.0; var lat = (Geometry($feature).y / originShift) * 180.0; lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); // Combines the coordinates and passes them to the Pop-up Media URL var Coordinates = Concatenate(lat,",", lon); Coordinates Then in the Pop-up media for the image use the following URL: javascript:mywindow=window.open('https://maps.google.com/?cbll={expression/expr1}&cbp=12,90,0,0,5&layer=c','mywindow','height=400,width=400,left=450,top=525'); Make sure the URL references the correct expression so it passes the coordinates into the URL Now you can open a windowed tab for Google Street View at the location of the geometry.
... View more
06-21-2019
10:44 AM
|
1
|
2
|
1138
|
POST
|
Robert, I just notice that the code only works on my end for the first time the widget is opened and then if it is closed it stops working. This might be due to some of my changes within the application. I will see if I can find out what is causing it. Thank you for your help!! Your the best PS: I got the logo in the header widget to be larger! Thanks for the links this morning
... View more
06-07-2019
10:55 AM
|
0
|
1
|
693
|
POST
|
Hello Robert, I just checked and the code does work until you restart the widget and then it pops back for some reason. I appreciate your patience with this! I am sure its working fine on your end. Kevin
... View more
06-07-2019
10:38 AM
|
0
|
3
|
693
|
POST
|
Hey Robert, That was a blank copy of the file to show there was no base postcreate function here is my failed code
... View more
06-07-2019
10:10 AM
|
0
|
5
|
693
|
POST
|
I have no existing postcreate function within the Basemap Gallery Widget.js I had to add the postcreate function to the file. The only file which contains an existing postcreate function is the Jimu.js WidgetPlaceholder.js file?
... View more
06-07-2019
09:55 AM
|
0
|
7
|
693
|
POST
|
Hey Robert, Your right I just noticed! I also can't use .dojox_layout_ResizeHandle_2 as every time you open and close a widget the id changes. I guess its back to trouble shooting the JS. Is there anything I am doing wrong within the Widget.js file? Currently I just added the code to the bottom after the refreshLegend function.
... View more
06-07-2019
08:38 AM
|
0
|
9
|
693
|
POST
|
Hello Robert, Thanks for helping me on all my difficulties! I was unable to make the JS work but I did manage to use CSS to hide it within the Widgets style.css file. .dojoxResizeHandle { visibility: hidden !important; } Kind Regards, Kevin
... View more
06-07-2019
08:07 AM
|
0
|
11
|
1172
|
POST
|
Hello All, I have been working on trying to increase the size of the Launchpad Themes Logo without much success. I would greatly appreciate your assistance and maybe best practices for trying to make changes to a value of an attribute within a DOM Node. I am still learning so detailed explanations are greatly appreciated. I know I need to change the following: .jimu-widget-header .logo { padding: 10px; } > .jimu-widget-header .logo { padding: 5px; } logoNode height: 25px; margin-top: 10px; > logoNode height: 50px; margin-top: 5px; I have tried the following: CSS to edit the Common.css file within the theme including with !important (Gets overwritten by parent) HTML to edit the Widget.HTML within the Header Widget of the Theme. (Gets overwritten by parent) JS to edit the Config.json within the layout of the Theme. (Gets overwritten by parent) After some playing around I think the only option left is to use JS to change the DOM Node within the Widget.json file located within the Header Widget of the theme? This is my best guess as to what is going on; maybe some more senior developers can shed some light on the situation. Kind Regards, Kevin
... View more
06-06-2019
03:50 PM
|
0
|
1
|
477
|
POST
|
Hello Robert, I added the requirements within define() and the variables within the function(). I must still be missing something because it is not being removed? Appreciate your help, sorry I am new at this
... View more
06-06-2019
12:49 PM
|
0
|
13
|
1172
|
Title | Kudos | Posted |
---|---|---|
1 | 04-24-2019 12:35 PM | |
1 | 05-11-2019 07:49 AM | |
9 | 11-18-2019 01:31 PM | |
1 | 08-08-2019 07:10 AM | |
1 | 06-21-2019 10:44 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|