|
POST
|
Aaron Brown you can use the same approach specified in the following thread. https://community.esri.com/message/806861-re-custom-printing-in-webapp-builder-without-javascript?commentID=806861&et=wa… Basic steps are as follows: select parcels on your webmap submit a print job if your parcel layer is a feature layer, then print task will include those selected features object-ids in the json (that gets sent to your print service - which is supposed to be arcy based custom service) if your parcel layer a sublayer of an mapImage (aka dynamic map service) layer, then it will include those features in a separate featureCollection layer (make sure forceFeatureAttributes in JS API 3.24 or older, or 'include attributes' on WAB print widget is set to true/checked) in your arcpy code: in case of feature layer with selection-object-ids, you need to retrieve attributes for those selected parcels by making query request to your service and generate report from the result recordset/featureset as it described in the blog post specified in above mentioned geonet thread. ... a sample code can be found here: https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D38a88b5cccb84884… in case of featureCollection, you need to loop thru all features in the featureCollection layer, read their attributes and generate reports as described in the blog post from above mentioned thread. pls let me know if you have any question
... View more
10-17-2018
10:33 AM
|
0
|
0
|
2117
|
|
POST
|
Did you publish your service as an 'async' service? We recommend 'sync' for any print service. That'd help get rid of extra requests. regarding the failure, it seems like it is failing on the server while executing the task. Pls check your arcpy code, try to debug it and you can also log error message in your arcpy code that will appears in Server Manager log or in the response (only you set your service log level to something more appropriate). hope this help.
... View more
10-17-2018
09:27 AM
|
0
|
1
|
3316
|
|
POST
|
FYI: just uploaded another script in case you are interested of showing photos from attachments of a map/feature service sublayer. http://www.arcgis.com/home/item.html?id=38a88b5cccb8488480b004e6d318770d
... View more
10-12-2018
11:01 AM
|
0
|
0
|
3316
|
|
POST
|
this might help you as well (this is all on the server side using arcpy and python) Printing Popups from Web Application
... View more
10-12-2018
10:27 AM
|
2
|
3
|
3316
|
|
POST
|
Sunbeam Rahman 1. It all depends on your use case. If you were to store a year worth of daily forecast data, you'd end up having a table with close to 2 million records. If you index datetime and unioncode fields, then database should be able to pull out 5000+ records for a single day and join them admin boundaries pretty fast (of course it'd also depends on the capacity of the machine that is hosting your database). I think you need to do some trial outs to find out at what point database performance does not meet your expectation. Pls keep in mind that when you share that out as a map service, there may be more than one users hitting the database. Regarding aggregation: if i'm not mistaken, you want to use the daily forecast data, therefore aggregation would not help much (in fact it might be relatively expensive). If your data were like hourly or bi-hourly forecast, and you'd want to visualize them using dynamically computed daily forecast, yes, then you could have gone with the aggregation approach I described in the blog post. 2. my understanding is that both admin boundary and pest-status tables are in the same database, right? if so, you can follow the same steps that described in the help topic I specified earlier to join. you can use query layer too, there won't be any performance difference between query layer and doing joins in arcmap (as described in the help topic). 3. popup should work with map's current time. hope this helps. pls let me know if you have any question.
... View more
10-10-2018
08:50 AM
|
1
|
0
|
3124
|
|
POST
|
Thanks Sunbeam Rahman. since your answer to #3 is yes, I'd say add new daily forecast data to 'pest status' table (instead of adding them in newly created tables). Depending on how far in the past you want your users to go back in time, you can periodically remove older records from that table to keep the size of the table manageable. If you have both 'UnionCode' and the date-time fields indexed, pulling 5000+ records from a table and joining them to another shouldn't be a big issue for an enterprise database these days. pls read the following help topic: Temporal data in separate tables—Help | ArcGIS for Desktop since your table gets updated daily, pls read this help as well: Calculating the time extent of your data—Help | ArcGIS for Desktop pls let me know if you have any question.
... View more
10-09-2018
11:55 AM
|
1
|
1
|
3124
|
|
POST
|
Sunbeam Rahman have few questions: does 'pest status' table contain records for all 5000 admin polygons or there are 5000 separate tables one for each admin polygons? when new data comes in everyday, do you update the existing table(s) (with that i mean daily data gets inserted as new rows) or you create a new table(s) and new data get inserted in those newly created tables. on your webmap, do you want your end clients use time slider to go back to any time to visualize the map or your webmap always shows the latest pest-status?
... View more
10-08-2018
11:27 AM
|
0
|
1
|
3124
|
|
POST
|
Hanneke Pretorius, unfortunately that is not supported. AGOL Print service comes with 8 default templates. As of now, if you need to use your own layout templates, you must publish a print service with your own layout templates from ArcGIS Pro (2.1 or later) or ArcMap (10.1 or above), and consume your print service from WAB print widget or JS API print task. Printing in web applications—Documentation (10.5) | ArcGIS Enterprise
... View more
10-02-2018
10:36 AM
|
0
|
2
|
3041
|
|
POST
|
yes, that is by design that resultOffset and resultRecordCount are ignored when returnIDsOnly=True. not sure why you'd want to page thru objectids, but if you really need to do that you can submit a query where outFields=objectid & returnIDsOnly=False along with pagination parameters (i.e. resultOffset and/or resultRecordCount). hope this helps.
... View more
10-02-2018
10:27 AM
|
0
|
1
|
7855
|
|
POST
|
Robert, Sorry about the confusion. Yes, you are right, in the end the result that is returned by map/feature service, contains only a number not a featureset. When I said 'does the count on the client side by looping thru those rows', I meant the communication between map/feature service (being the client here) and the underlying database. I will update my previous comment to make that explicit. Thanks for point that out to me
... View more
10-02-2018
09:55 AM
|
0
|
0
|
4574
|
|
POST
|
Pls note there is an important distinction between these two options - it is how excuteCount and 'getting count from outStats' are implemented (at least for on-premises/non-hosted map and feature services). Unfortunately can't say that for sure for hosted feature services though. These implementation results in performance especially when you have a lot of data in your layer (or lots of rows matched by where-clause) - JS API executeCount calls map/feature service query operation with returnCount=True parameter - when that happens, map/feature service asks database to return individual rows (that matches the where-clause) and computes the count by looping through them and returns the count value back to JS API client... ... versus when you execute with outStatistics, JS API calls query operation with outStatistis=[{...}] parameter which results in a query that gets evaluated at the database level - that means map/feature service asks database to do the computation at the database level and return the resultant number instead of return individual rows, that count value is forwarded to JS API client. Having said that, there is a bit downside to outStatistics approach too - it only works when the data source of the layer is one that supports this kind of query -- which is almost all data sources (such as FileGDB or any enterprise database (e.g. Oracle, SQL Server, PostgreSQL etc.)) except shapefiles. Therefore you should check whether the layer, you are about to query, supports outStatistics. hope this helps.
... View more
10-02-2018
09:18 AM
|
0
|
2
|
4574
|
|
POST
|
I think you should be able to use QueryTask.outStatistcs to get a count. here is a sample Query Statistics with SQL Expression | ArcGIS API for JavaScript 3.26
... View more
10-01-2018
02:57 PM
|
0
|
0
|
4574
|
|
POST
|
Hi Ella, it is very odd that def query does not work with standardized queries option is enabled !! could you pls do me a favor? log on to the server machine that hosts your print service you need to log on as a user that runs ArcGIS SOC process (aka ArcGIS Server Account or SOC user) download and start Fiddler submit the print job from your app monitor the requests that get sent to the map service from the print service check what kind of error message that map service returns also, see whether you can repro this by submitting a request to the map service from a web browser. If that does not provide much clue, could you pls send me a small sample dataset and map etc. to help me reproduce this issue on my machine. I need to take a look at this and have it fixed. Thanks. Tanu
... View more
10-01-2018
10:08 AM
|
0
|
0
|
4517
|
|
POST
|
Diane, this is how I'd have approached: I'd not use JS API Print digit, instead I'd implement my own print button (or menu or something like that) The grid index feature layers that intersect the user-selected geographic boundary will be selected On the button_click, I'd use JS API search/select function of the feature layer to select index features Grab the web map and insert it into an ArcGIS pro template that has Map Series enabled. call JS API Print Task and execute and submit a job to a print service Export the Map Series as a PDF file. for that, on the server side, I'd use arcpy based print service. here is a tutorial on how to publish an arcpy based print service. It is written for ArcMap, but the same concepts/steps are applicable for ArcGIS Pro. Tutorial: Advanced web map printing/exporting using arcpy.mapping—Documentation | ArcGIS Enterprise here is a tutorial on map series: MapSeries—ArcPy | ArcGIS Desktop note: this is the one where I'm not sure whether it'd work right out of the box with layers come in part of webmap_as_json, or layers need to staged up front as it stated in another tutorial (Tutorial: Basic web map printing and exporting using arcpy.mapping—Documentation | ArcGIS Enterprise) I will talk to our arcpy.mapping guru and one of us will get back to you. Also export an excel file of the attributes of the point features that are printed in the Map Series. Print service returns only one output - i don't think (at least I'm not aware of) you can return a pdf and an excel file as outputs from a print service and consumed that from JS API Print Task. here is a crazy thought, you can use gp tool to export data to excel and use some python libraries to convert that excel to PDF >> combine that pdf to map series output pdf.
... View more
10-01-2018
09:45 AM
|
1
|
0
|
1061
|
|
POST
|
thanks. I see why you want to generate json yourself. I hope you won't mind if I recommend you to contact Esri Support at this point.
... View more
09-27-2018
04:19 PM
|
0
|
0
|
4517
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:42 PM | |
| 2 | 05-11-2026 04:59 PM | |
| 1 | 04-16-2026 01:37 PM | |
| 1 | 03-06-2026 04:33 PM | |
| 1 | 03-05-2026 03:22 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|