Print Map Activity not accepting Text Fields
I have a print map workflow that uses the PrintMap activity. One of the arguments activity is "TextFields" which takes an IDictionary object. I have tried to put in the fields I want to replaced in the print template but they are not getting sent to the server. If I grab the request URL from Fiddler it does not include the text field attributes. However, if I run the "Create a printable map" tool from the "I want to" drop down in my SilverlightViewer app it generates the following:
tf__Title=This%20is%20the%20Title&tf__subtitle=This%20is%20the%20Subtitle&tf__Notes=Here%20are%20the%20notes
If I copy the above parameters and append them to the request URL from my HTML5 site everything works fine.
Is this a known bug in the HTML5 viewer and workflows.
Thanks,
Bryan
-
I'm seeing the same thing with the SL Viewer 1.8 and the PrintMap activity in a workflow, so I guess this thread should be moved to the Workflow forum.
At one point, one of the fields was set, but the others were not. After changing things back and forth, I cannot reproduce this anymore, and now none of the fields are set again.
0 -
I had a similar problem but found something on the forums, which I think was written by Ralph Price, and thus got it to work with the HTML5 1.2 viewer.
I only implemented it for the MapTitle which has the DataField specified in the print template as _Title.
In the Print Workflow the dictionary key is then set to "Map Title" and in the Print Templates, configured in the site under Text Fields, the data field is _Title and the display name is Map Title.I think the key change is having Map Title (with the space) in the display name field, without which it doesn't work. In the Print Template in Report Designer it is referenced without the space i.e. MapTitle
0 -
Yes, that works. Whatever is set in the REST Manager as "Display Name" for the text field of the printtemplate, should be the key value in the dictionary used in the PrintMap activity.
0 -
Did you ever resolve this problem? I'm experiencing the same problem with a generic print function I've been playing with.
Peter.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare