POST
|
So I added the missing files to jimu.js and got further. The next issue I ran into was that there is an absolute (ish) path in the Visibility widget which refers to 'webappbuilder\stemapp\Visibility' . As per instructions, we hosted the widget in another location on the web server. I dropped the Visibility Widget folder in there and everything started to work. I think the wrap-up for this one is that the Visibility Widget in Military Tools 2.0 cannot be deployed with 10.5.1 WAB Standard Edition in the manner outlined in the instructions (specifically referring to deploying custom Widgets into standard Portal without modifying anything). If has at least one dependency that wasn't satisfied in the standard install of Portal 10.5.1 (upgraded from 10.5.0) and there is (at least one) hard-coded path to the webappbuilder stemapp folder that needs to be relative to the installed folder instead. Lyle Wright can someone please look at the Visibility widget and update so it can be deployed as per instructions here: Add custom widgets—Portal for ArcGIS | ArcGIS Enterprise ?
... View more
08-17-2017
11:14 PM
|
0
|
1
|
1662
|
POST
|
We just upgraded from 10.5.0 to 10.5.1 and the files weren't there in our deployment.
... View more
08-17-2017
11:04 PM
|
0
|
0
|
1662
|
POST
|
Ah yes. The file was empty when I looked at it, not {}. I'll try adding the task url to it tomorrow. Hopefully that will mean it doesn't have the dependency on the files that aren't there (although I haven't checked, the 404 not found error kind of points that way) Thanks for the quick response. Ben.
... View more
08-15-2017
02:35 AM
|
0
|
0
|
288
|
POST
|
Hi Lyle, In this scenario, we're trying not to use Developer Edition to deploy 'out-of-the-box' widgets into the production environment. We upgraded to 10.5.1 specifically to add the Military Tools custom widgets to the standard edition of the Web App Builder. In order to deploy it we have; - Hosted the widgets folder on our Portal web server (https://portal.domain/widgets/Visibility/) - Added an 'Application Extension (App Builder) item in Portal: https://portal.domain/widgets/Visibility/manifest.json - Shared the item with the organisation As I said, this worked fine with both the Distance and Bearing and the Coordinate Conversion widgets...something specific to the visibility widget isn't quite there. thanks
... View more
08-14-2017
11:00 PM
|
0
|
0
|
288
|
POST
|
Hi Anthony, thanks for the reply. I'm on FF45 I've had a look and the first thing I noticed was the console complaining that the config.js file had a premature end. That file is blank in version 1.1 and 2.0 so I threw the text from version 1.0 into it and it got past that. Now it's stuck on /apps/webappbuilder/stemapp/jimu.js/serviceBrowserRuleUtils.js which is coming back with a '404 Not Found' response. This I think is resulting in a scriptError...something about injectUrl in init.js of the jsapi. I've tried to put the GP Service URL in the config.js but that doesn't solve it either. Does that help any?
... View more
08-14-2017
10:50 PM
|
0
|
8
|
1662
|
POST
|
Hi all, We've deployed Military Tools 2.0 Widgets to our 10.5.1 Portal and cannot get the Visibility one to work. CoordinateConversion and DistanceAndDirection work perfectly in Web App Builder (Default) however when selecting the Visibility Widget, once you hit Ok, we just get a spinning 'loading' icon in the middle of the dialog box forever. The dialog boxis called 'Configure Visibility'. This is obviously before we get the chance to nominate the GP Service. How do we go about troubleshooting this? Thanks for your help.
... View more
08-09-2017
04:12 PM
|
0
|
12
|
2795
|
DOC
|
I struggled to find a simple solution to this, so thought I'd put it up to help the next person. What I was trying to do was iterate through the rasters which formed my mosaic and retrieve the acquisition date from each of them. In ArcMap, you would find this by opening the attribute table and clicking through the little arrow within the raster field for each record. import arcpy
arcpy.env.workspace = r'D:\example.gdb'
rows = arcpy.SearchCursor(r'D:\example.gdb\my_mosaic', fields='ObjectID')
ObjectIDs = []
for row in rows:
ObjectIDs.append(row.getValue('ObjectID'))
for ObjectID in ObjectIDs:
raster = 'my_mosaic\Raster.OBJECTID = ' + str(ObjectID)
aquisition_date = arcpy.GetRasterProperties_management(in_raster=raster, property_type='ACQUISITIONDATE')
print 'Aquisition Date = {}'.format(aquisition_date) Hope this helps someone out.
... View more
05-26-2016
03:10 AM
|
4
|
2
|
2483
|
Title | Kudos | Posted |
---|---|---|
4 | 05-26-2016 03:10 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|