HomeFlows

Use Document ID to display image in Image Viewer? Messages in this topic - RSS add reply

jmcmann49
jmcmann49
Posts: 51


9/6/2019
jmcmann49
jmcmann49
Posts: 51
Hi all,
I’m having an issue trying to display an image in a Data Repeater form.
Currently, I’m using a SQL query which is returning Document ID, but I can’t get the image viewer on a form to display this document.
What steps can I take to transform this Document ID into something the image viewer will understand?
edited by Brendan@decisions.com on 9/18/2019
0 link reply with quote
Scott@decisions.com
Scott@decisions.com
Administrator
Posts: 59


9/6/2019
Scott@decisions.com
Scott@decisions.com
Administrator
Posts: 59
Hi jmcmann49,

There is one step that will take care of this issue for you; the GetDocumentDataAsPNG step takes in data as a DocumentID and will output it as png FileData. We can build out an example here:

First, make sure whichever png you’re using is either in the studio or, in your case, can be pulled/fetched via query. Then create a flow named say “Document to PNG Flow”. In this flow, create an input at the Start Step that will reference the Document ID string you’re grabbing. Next, place the GetDocumentDataAsPNG step from the “Steps” column on the right. Feed the Document ID into this, this will then output the DocID as png FileData.

Now that you have this png FileData, you can use the bytes portion of the output (FileData.Contents) as the data for the image form component.
For your case, since you’ve set up a data repeater in a form, you should see the Data Name of the image in the inputs for the form. Choose “Select from flow” and map the Bytes from the FileData to this component. And voila! You should be able to input a Document ID to this flow and have the referenced png display on each data repeater!
edited by Scott@decisions.com on 9/6/2019
0 link reply with quote
Carlos
Carlos
Posts: 2


13 days ago
Carlos
Carlos
Posts: 2
Hi all, will appreciate to know where in the tree is located the Step GetDocumentDataAsPNG
0 link reply with quote
osman@decisions.com
osman@decisions.com
Administrator
Posts: 19


12 days ago
osman@decisions.com
osman@decisions.com
Administrator
Posts: 19
Hey
In the Flow designer, you can find this step under Integration→Internal Services→Document Service.
edited by osman@decisions.com on 6/26/2020
0 link reply with quote


(Ctrl+Enter)




Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software