|
POST
|
const ccWidget = new CoordinateConversion({
view: this.view,
container: element
});
const filt_formats = ccWidget.viewModel.formats.filter((format) => {
if (["basemap", "dms"].indexOf(format.name) === -1) {
return true;
} else {
return false;
}
});
filt_formats.forEach((format) => {
ccWidget.formats.remove(format);
});
ccWidget.render(); In the above code I am trying to limit the conversion options in the Coordinate Conversion widget. The formats are limited, and the conversions when the widget loads is a Collection of 1. The issues is that the <Select> element in the widget still contains all of the original format options. Updating the viewModel should trigger the Widget to render() so I have tried updating that as well, and I am calling render() to be sure. ccWidget.viewModel.formats.remove(format); The error I get in the browser states, "Uncaught Error: select had a option child removed, but there is now more than one. You must add unique key properties to make them distinguishable." <select aria-controls="ccNode__list-item-0" aria-label="Select format" class="esri-select esri-coordinate-conversion__select-row" title="Select format"><option aria-label="xy" title="xy">XY</option><option aria-label="basemap" value="basemap">BASEMAP</option><option aria-label="dms" value="dms">DMS</option><option aria-label="dms" value="dms">DMS</option><option aria-label="mgrs" value="mgrs">MGRS</option><option aria-label="usng" value="usng">USNG</option><option aria-label="utm" value="utm">UTM</option></select> I don't think I should modify the domNode, but the widget render() should update it. What am I missing here?
... View more
10-24-2018
07:56 AM
|
0
|
8
|
4104
|
|
POST
|
Hi Rene, Thank you so much.. I am going to pull the trigger on getting your 4.x development book this weekend. I think that will help me a lot. Thanks!
... View more
10-18-2018
08:05 AM
|
0
|
0
|
1138
|
|
POST
|
<div class="obstruction-inputs">
<div id="ccNode" afterCreate={this._placeCCWidget} bind={this}></div>
<div> _placeCCWidget() {
const ccWidget = new CoordinateConversion({
view: this.view,
container: "ccNode"
});
this.ccViewModel = ccWidget.viewModel;
} So the above code works, but I was thinking that that storeNode convenience method would offer a more robust solution. However, when implementing the afterCreate={storeNode}, the method was not found on the Widget. Does the storeNode convenience method really exist on the Widget? or does it need to be created manually? Thanks!
... View more
10-18-2018
07:41 AM
|
1
|
3
|
1138
|
|
POST
|
Hello Geonet, I've been learning the proper techniques for using the ViewModel and View with the render method to build custom widget using 4.x api. My question is, "What is the proper technique for using a widget (ie. Coordinate Conversion) within the View of my custom widget?" The Coordinate Conversion Widget has its own render method and View. I would like to instantiate it within my View Mode to access its properties as the user interacts. It seems like this would be a common practice but I have not found any guides on using widgets within a widget. My goal is to be able to access to the properties of the Coordinate Conversion ViewModel in my custom widget. The jsx online resources are very basic and the render method is used to basically render html strings right? How does another widget then get rendered. Do I need to pass the container html string to the render method? Thanks and sorry for the confusing question.
... View more
10-18-2018
07:02 AM
|
1
|
4
|
1246
|
|
POST
|
Thanks for the insight Matt... I will look at those methods on the VDOM and find some tutorials for JSX. With the new 4.9 api something changed that is throwing errors with the ui placement I believe. Switching back to 4.8 and the errors go away. It may be a change to one of the esri/widgets, or a change to the implementation of the widget I am creating. When I gather more info I will create a new post with that error message.
... View more
10-13-2018
10:16 AM
|
0
|
0
|
1163
|
|
POST
|
Hi, In a Database Server geodatabase we have encountered an issue where coded domain values updated during an ArcMap session are not maintained when closing and reopening the program. Has anyone come across this issue before. I know that the software version could be an issue. ArcMap 10.5 and Database Server 10.5 with SQL ServerExpress. I'd like to know if this is a know bug with 10.5 or if there is a way to find log files for the Database Server that would reference a locked table or corrupted files pointing to a SQL Server Express issue. Thanks!
... View more
10-10-2018
07:21 AM
|
0
|
2
|
654
|
|
POST
|
Hello, I'm learning the new 4.x API and have been pretty successful implementing the Accessor based ViewModel per the recommendations on the available resources online. When needing to modify the Widget UI after initial rendering, is there a recommended approach? Currently I am comfortable using domConstruct as was the typical technique in the 3.x api. Is there a typescript 4.x equivalent to using the dojo dom tools? When developing in 3.x I typically prefer creating dom nodes in javascript rather than the html widget template. In the 4.x api, when rendering jsx, is there a recommended way to reference domNodes (ie. this.myDomNode using dojo-data-attach-point) so that the UI can be modified? The references for jsx available online haven't completely sunk in with me yet so I am hoping the geoNet community has some insight or direction for me to look in. Thanks!!
... View more
10-09-2018
02:08 PM
|
1
|
2
|
1269
|
|
POST
|
Hi Allan, I am building an app using 4.8 and the Calcite-Maps library was used to create the initial layout and panels which work great. An issue I am having is that I need to create a tabbed UI in the popup to display a series of grids. I was unable to get the Calcite-Maps library to work within the Popup and then tried using DGrid. That was unsuccessful and overkill so I went to using the Calcite-web tabs which look great and offer an easy to use table. My only issue is that I cannot get the calcite.tabs to work in the Popup. What would you recommend for creating a tabbed UI in the Popup in a 4.8 app? Thanks, Rich
... View more
09-06-2018
06:59 AM
|
0
|
5
|
2336
|
|
POST
|
Hello, I am getting this error when using SAML with ADFS. The apps that are deployed on the web server fail when using SAML, but the Collector App and Explorer App do not. My thoughts are ranging from 1) the server is striping variables required to pass the info, 2) There is actually an issue with the SAML response, to 3) What tools should I use to debug this? Since Collector and Explorer work, I am thinking it is related to the web server. Are there any logs that AGOL provides which could shed light on the issue?
... View more
08-08-2018
01:23 PM
|
0
|
2
|
3337
|
|
IDEA
|
This is just another ArcMap feature that is missing in ArcGIS Pro. When doing data work and managing multiple geodatabases it is very useful to go to the data sources tab in the Contents pane and group the layers together that are from the same workspace. In ArcGIS Pro the option to Group the selected layers is disabled when on the Data Source Tab. Could this please be enabled? Thanks!
... View more
07-02-2018
09:11 AM
|
3
|
3
|
1475
|
|
POST
|
Hi Rohit, After taking that break, I was able to have the python api create the test user and remove the test user. It really was as simple as configuring the user roles as "org_viewer", and the role as int(1). In the documentation it states "By default, your org has 3 roles - org_user , org_publisher and org_admin" The role I am using is "org_viewer". Should that also be considered a default role?
... View more
06-27-2018
05:44 PM
|
0
|
0
|
1391
|
|
POST
|
Hi Rohit, That is what I've been working on for the past year or so. I am building a Django application with a RestAPI to integrate with backend SQL databases from other systems. I am running into an issue where I need to create Level 1 Viewer Users for an organization so that they can print from AGOL. When debugging in PyCharm, it worked once then I keep getting a Runtime Error: You do not have permissions to access this resource or perform this operation. I'm gonna take break, then try to dig into it a little more. Do you think that I need to create a thread or call an external script for the Python API or something to that effect so that the django system does not interfere? During one of my debugs I was able to create a test user. Then I deleted it through the AGOL web page. Since then I have been unable to create one. Do you know if there are limits set on the AGOL server that would restrict how often users can be added or removed? Also, when I try to create a user, it fails saving Unable to Create 'test_user'. However when I search for the user I get a return but am unable to delete() it or query the privileges. I get a permissions error and an exception is thrown. That user is not visible in AGOL on the Organization page so I am thinking that the AGOL server might be throwing a fit or something. They have 30 Level 1 Users and 0 Free Level 2 Users, so this is to provide printing in a web app. It would be great if I could manage these Viewers through the Python API when the print widget is activated. If the user does not exist, create it. I would then look at deleting the 5 users who have been inactive for a month if it gets full. Thanks, Rich
... View more
06-24-2018
05:12 AM
|
0
|
1
|
1391
|
|
POST
|
Hi Robert, A great use case is expiration dates. Some assets, all leases, and other real world things have expiration dates that get set when the objects is created. If an idea does not yet exist I will create one on the ideas page.
... View more
05-25-2018
08:01 AM
|
0
|
1
|
590
|
|
POST
|
In the Web App Builder Query Widget, there is a filter option for "in the past X units of time". We want to filter for dates that fall "in the next X units of time". Why would that option not be included. All it requires is adding the time difference instead of subtracting. Now I am looking at a work around, Why would a future looking query not be as important as a historical query?
... View more
05-25-2018
07:50 AM
|
0
|
3
|
646
|
|
POST
|
Just after reading through the snippet it looks like that it what we are thinking of. Thanks for your help getting it going in the app. If I find enough time to put towards writing the equations in javascript, I'd love to be able to calculate the intersection myself, but my Calc and Trig are rusty.
... View more
05-11-2018
01:59 PM
|
1
|
0
|
330
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-30-2020 05:48 AM | |
| 1 | 07-24-2020 06:10 AM | |
| 1 | 03-24-2020 10:04 AM | |
| 1 | 01-11-2022 05:32 AM | |
| 1 | 10-04-2021 06:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-05-2022
08:48 AM
|