POST
|
In ESRI Javascript 3x version I have created a print preview to highlight the print area on the screen. User will get an idea about the area included in the print output. I used screenUtils API (3.x) for this purpose. While checking the functionality matrix I understand this is deprecated in the 4.x version and not planned to upgrade. The guidelines suggest to use MapView.toMap(), MapView.toScreen(), SceneView.toMap(), SceneView.toScreen(). attached a screen shot from the current 3.x version. Could some one suggest a working example using Javascript API 4.x to get similar output. a sandbox example would be really helpful
... View more
05-12-2021
03:46 PM
|
1
|
1
|
1410
|
POST
|
Hi Bill , This is a great tool , That I was using successfully for a while. Recently we upgraded our ESRI Jvascript API to 4.7. I am having difficulty to upgrade this part , especially ScreenUtils is not available yet. Did you upgraded this tool ? It would be great if you could share some spinet to that helps me to upgrade my code. Thanks! Surendran
... View more
04-18-2019
08:43 AM
|
0
|
0
|
2626
|
POST
|
I am creating a ArcGis 10.5 Desktop processioning python toolbox to edit map document properties. Is there a Multi-line property for "GPString" datatype? What is the best control to edit long text for summary and description text ? How do I create a multi line text box control for the tool parameter?
... View more
04-26-2018
11:55 AM
|
0
|
2
|
971
|
POST
|
Katie, I don't think it is browser cache issue. The issue exists more than one Machine. I have no clue of what could be the issue.
... View more
03-01-2018
01:20 PM
|
0
|
1
|
2809
|
POST
|
This is the version Microsoft Edge 40.15063.674.0 Microsoft EdgeHTML 15.15063 Please find attached screenshot I tested on another computer with edge, where it works fine. Microsoft Edge 40.15063.674.0 Microsoft EdgeHTML 15.15063 Both versions looks same.
... View more
02-23-2018
08:05 AM
|
0
|
3
|
2809
|
POST
|
The site www.arcgis.com/home/webmap/viewer.html is not loading in some edge browsers. I am getting a blank page. I tried clear cache. The Error message I am getting is Current window: www.arcgis.com/home/webmap/viewer.html
SCRIPT12004: An internal error occurred in the Microsoft Internet extensions
dojo.js (20,67) any help ?
... View more
02-14-2018
11:38 AM
|
0
|
7
|
3536
|
POST
|
Freddie, This works ! Thank you for the solution. I am excited to know other options to accomplish the same goal. Thank you
... View more
02-09-2018
09:35 AM
|
0
|
0
|
1169
|
POST
|
Thank you again, Personally I like the ESRI Add data like dialog, but our requirement is to let users search for layers from 100s of layers from different sub folders and add to TOC. We can call "explorer.exe" using subprocess.popen with couple of lines of code. But I am not sure if there is any other issue with this, so far it works fine.
... View more
01-25-2018
08:33 AM
|
0
|
0
|
708
|
POST
|
Thank you for the reply. In that case what is the advantage of using pythonaddins.OpenDialog()? we can create a python adding which calls the explorer window as a sub process and search and drag layers from that to TOC. which is better method ?
... View more
01-25-2018
07:39 AM
|
0
|
2
|
708
|
POST
|
I have a custom filtered pythonaddins.OpenDialog() , Is it possible to drag drop layers into TOC ? This is possible from windows explorer and folder connection.
... View more
01-24-2018
02:00 PM
|
0
|
4
|
822
|
POST
|
I have two combo boxes. I am trying to add items dynamically into the second combobox from the first combobox's "onSelChange(self, selection)" event. due to some reason this is not working. here is my sample code: import arcpy
import pythonaddins
class ComboBoxClass1(object):
def __init__(self):
self.items = []
self.editable = True
self.enabled = True
self.dropdownWidth = 'WWWWWW'
self.width = 'WWWWWW'
def onSelChange(self, selection):
pass
def onEditChange(self, text):
pass
def onFocus(self, focused):
self.refresh()
pass
def onEnter(self):
pass
def refresh(self):
self.refresh()
pass
class ComboBoxClass2(object):
def __init__(self):
self.items = ["Location1","Location2","Location3"]
self.editable = True
self.enabled = True
self.dropdownWidth = 'WWWWWWW'
self.width = 'WWWWWWW'
self.cb1= ComboBoxClass1()
def onSelChange(self, selection):
self.cb1.items.append(selection)
self.cb1.refresh()
def onEditChange(self, text):
pass
def onFocus(self, focused):
# When the combo box has focus, update the combo box with the list of layer names.
pass
def onEnter(self):
pass
def refresh(self):
self.refresh()
pass
... View more
01-23-2018
09:58 AM
|
0
|
2
|
1748
|
POST
|
How do I get the ArcGIS server directories(Cache,Jobs,Output,System) paths using arcpy including job ID I want search for a file in the current Job folder. Is there any environment variables like arcpy.env.scrachfolder. I know the path but I have to add [jobid]\scratch to that. How do I get current jobid.?
... View more
11-15-2017
04:08 PM
|
0
|
1
|
942
|
POST
|
I had same issue. I solved the issue by adding search field as sort field and sorted on ascending order, then took the first one in the list. It worked for me. , #you can try something like: item_to search ="your item to search" owner ="owner of the item" item=gis.content.search(query="title:"+ item_to search + " AND owner: " + owner, sort_field='title', sort_order='asc' )[0] Surendran
... View more
10-16-2017
12:10 PM
|
2
|
0
|
5617
|
POST
|
How do I migrate the following statement into Agrgis Pro version of Arcpy ? arcpy.mapping.ConvertWebMapToMapDocument(Web_Map_as_JSON,templateMxd) I couldn't find ConvertWebMapToMapDocument in Arcpy.mp documentation Is there any ArgisPro version of the following script Tutorial: Advanced web map printing/exporting using arcpy.mapping—Documentation | ArcGIS Enterprise Thank you
... View more
09-20-2017
02:34 PM
|
2
|
1
|
958
|
POST
|
It looks setRequestPreCallback is not available in the API version 4.x (request | API Reference | ArcGIS API for JavaScript 4.3 ) I am trying to convert my old print task using new 4.x API. Is there any alternate way to retrieve and modify args.content.Web_Map_as_JSON before it call print task?
... View more
03-08-2017
07:47 AM
|
0
|
1
|
1197
|
Title | Kudos | Posted |
---|---|---|
1 | 05-12-2021 03:46 PM | |
2 | 10-16-2017 12:10 PM | |
2 | 09-20-2017 02:34 PM |
Online Status |
Offline
|
Date Last Visited |
05-24-2024
11:55 AM
|