|
POST
|
Thanks, Noah! Good to know although - arghh !! When will all this 3.x/4.x go away? Until very recently, I have been told by ESRI staff to not even worry about ExperienceBuilder. Sounded more like the Experimental Builder. So I've ignored it. I will stop ignoring it.
... View more
07-15-2020
07:20 AM
|
0
|
0
|
2708
|
|
POST
|
Tanu, thanks for chiming in... if any of my users actually want to save the file or attach to email, it would be great if they didn't have to completely rename it... especially since the Print widget context menu suggests that the file will have a name.... It's not a major issue because I can generate the file I need but it's not fully thought through in my view.
... View more
07-15-2020
07:08 AM
|
1
|
2
|
2708
|
|
POST
|
This is Part 3 of a series of Q&A around customizing Print widget and printing service. For context, Part 1 and Part 2. So far... COMPLETE - Managed to publish custom print services with custom layout templates that meet my needs. COMPLETE - Managed to hook the print widget into that service and limit user input to a choice of "layout template" and "output filename'. Question: What's the use of taking user input for an output filename if the printResultDijit's url is linked some gobbledeegook PDF in the print service output directory ? I've not been managed to tell the print service what kind of file names it should generate for the printing output. Is that possible? The "My Favorite Output" link actually takes you to some PDF with a very different name. My understanding of the Share as Web Tool menu is that the parameter Output File does not actually specify the name of the file that will be generated but rather than name of the variable for that name?? If I enter "gobbledeegook", that actually changes the name of the parameter... Long story short, how can I turn a download link such as: arcgisoutput/Custom_GP_Services/MyGPService_GPServer/_ags_ea388fcde7ab4bb498c2004ee55ec796.pdf into something like arcgisoutput/Custom_GP_Services/MyGPService_GPServer/no_gobbledeegook.pdf or - if that's not possible - at least: arcgisoutput/Custom_GP_Services/MyGPService_GPServer/no_gobbledeegook_except_ags_ea388fcde7ab4bb498c2004ee55ec796.pdf
... View more
07-14-2020
02:50 PM
|
0
|
6
|
2774
|
|
POST
|
Hey I'll take a look and compare... sorry keep getting my wires crossed with you here... didn't see your response until I'd posted mine. Thanks for always coming through!!
... View more
07-14-2020
07:45 AM
|
0
|
0
|
3428
|
|
POST
|
This worked.... printDefInspector: function(printDef) {
printDef.mapOptions.scale = this.scaleForPrinting;
return printDef;
},
onLayoutChange: function(newValue) {
if (newValue == 'Layout 1')
{this.scaleForPrinting = 10000;}
else if (newValue == 'Layout 2')
{this.scaleForPrinting = 2000;}
...
... View more
07-14-2020
07:44 AM
|
1
|
0
|
3428
|
|
POST
|
Okay, this here forces the scale to a particular numeric value... printDefInspector: function(printDef) {
// don't really need the following since I removed the
// Advanced Options
// if (this.preserve.preserveScale === 'force') {
// printDef.mapOptions.scale = this.preserve.forcedScale;
// }
printDef.mapOptions.scale = 12000;
return printDef;
}, Now, I just need to set it based on the selected layout. Slowly inching closer...
... View more
07-14-2020
07:13 AM
|
0
|
3
|
3428
|
|
POST
|
Robert Scheitlin, GISP, Any suggestions as to how I might force a certain scale for printing when a specific layout is selected? I was able to tweak the show/no-show of layout elements based on which layout is selected in there event handler... onLayoutChange: function(newValue) {
...
} But I don't know what governs the scale of what in my case is PDF output.
... View more
07-14-2020
06:17 AM
|
0
|
4
|
3428
|
|
POST
|
Great! My above fix took care of part 1. I adapted your solution in the referenced post as follows: var layoutItems = array.map(Layout_Template[0].choiceList, function(item) {
if(item !== "MAP_ONLY")
return {
label: item,
value: item
};
}); That helped with second portion.
... View more
07-13-2020
01:25 PM
|
0
|
5
|
3428
|
|
POST
|
Thanks, Robert, didn't see this before hit 'Send'... I'll take a look at the link.
... View more
07-13-2020
01:11 PM
|
0
|
6
|
3428
|
|
POST
|
So the following seems to have some effect: // was
var PrintDijit = declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
...
//showAdvancedOption: true,
...
// changed it to
var PrintDijit = declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
...
showAdvancedOption: false,
...
... View more
07-13-2020
01:10 PM
|
0
|
7
|
3428
|
|
POST
|
So in a way this is part 2 to a recent post about manipulating what ends up in the PDF generated with the Print Widget. I have two (2) questions: 1// How do I hide the Advanced Options in the widget? I've plowed through the code and noticed numerous commented references to things like: // this.config.showAdvancedOption = this.showAdvancedOptionChk.getValue();
But I haven't had a chance to figure out what combination of uncommenting what might hide the options. I'm trying to build something where I don't need the user to get lost in options. They should only have to select a papersize and the app takes care of the rest. 2// Similarly, I would like to limit printing to 2 paper sizes for which I've prepared optimal layouts. I don't need and don't want to see the "MAP_ONLY". How do I hide/remove it? These may be rudimentary tasks for custom widgeteers. I feel like I'm still only scratching the surface on the widget universe.
... View more
07-13-2020
12:30 PM
|
0
|
9
|
3505
|
|
POST
|
Thanks all the good info. I've repeated the same steps in Pro and have to admit (can't believe I'm doing this - haha)... when you're authoring layouts, Pro exceeds the experience in ArcMap in terms of manipulating the layout elements. Good job! - I'll have another post about the Print Widget shortly. But this part I've got down for now, Thanks, Tanu.
... View more
07-13-2020
12:03 PM
|
1
|
1
|
3821
|
|
POST
|
I have to stay step 16 is tricky if you don't really know the role/significance of each parameter 16. Click each parameter and examine the defaults that are set... I had to go back and try several times before I got useful results. For example, getting a meaningful name for your printing service.
... View more
07-10-2020
09:15 AM
|
0
|
0
|
3821
|
|
POST
|
Thanks, Tanu. Got it working. I tracked down the Print templates directory on my AGS machine that is host to the printing service and saw those MXDs in there. That's where the MXD comment comes from. I thought I could just manipulate those files to make them suit my needs. But then I read a "no no - don't do that" somewhere and didn't Instead I created a couple of clones of those templates, removed the scalebar from them, and saved to an empty directory. From there, I followed steps 1 - 19 here. While that happened to be for ArcMap, I realize I could've used Pro. As with everything else, ArcMap is just soooo much more intuitive and soooo much easier. I force myself to use Pro when I can and when I'm working in an application (10% of my day) but the emphasis is on "force". I just switched to 2.5 and like it as little as the last release.
... View more
07-10-2020
09:10 AM
|
1
|
4
|
3821
|
|
POST
|
Thanks Tanu... I was suspecting as much and am already fiddling with the Layouts on my Print Service machine. Back to working with MXD's - ha! Thanks for chiming in.
... View more
07-09-2020
09:58 AM
|
0
|
6
|
3821
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2025 07:32 AM | |
| 1 | 02-09-2024 05:18 PM | |
| 1 | 02-04-2025 09:27 AM | |
| 1 | 03-22-2019 10:55 AM | |
| 1 | 03-05-2020 08:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2026
12:14 PM
|