Any way to get user input for Report DataSet Transform workflow?
-
We ditched the Transform workflow and created a traditional workflow that utilizes the Print Map activity. You can gather any amount of data from the user via a Display Form activity. The values in the Display Form should be entered into a Dictionary(string, string) where the Key is the same as the label control's Display Name (not the rpx label's Data Field value) in your rpx file, and the dictionary value is whatever the user enters for that item.
Use the Report Designer application to create your template (rpx) file and register it within the Rest Manager tool. Any custom fields you add to your report need to be configured on the "Text Fields" tab of the "Print Templates" page in Manager. The thing that threw us was how to configure these fields. In Manager on the "Text Fields" tab, you need to click the "Add Text Field" button, and the window that pops up will show you a list of "Data Fields" that are found in your rpx file. These need to be mapped to your Display Form input / dictionary. When you configure the Text Fields in Manager, the "Display Name" is the name of the text label in your rpx file and also the key in the dictionary you create from your Display Form in your workflow. Finally, in the workflow, call the "PrintMap" activity and pass in your dictionary as the "Text Fields" property. This should place the values gathered from your user in the Display Form, into the pdf created via the PrintMap activity.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar