<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>get image from folder</title><link>https://community.appian.com/discussions/f/new-to-appian/22019/get-image-from-folder</link><description>Hi! 
 i created a cdt with an imageID then in an interface i designed a file upload with the target pointing to a documents folder and a save into and value of ri!product.imageId, now on an approval interface i want to display those images, i tried this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86204?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:53:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3c2f57c-42a1-4835-91ea-39079085f798</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;Thank you so much, managed to make it work, had to input some values in orther for the interface not to show error, thanks for the trouble&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86203?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:44:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acc5b2a8-1c76-464f-9f74-7b50fcc5fd91</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&amp;quot;&lt;span&gt;then i click refresh go to the user input task to validate the item all the information is showed except the pictures because i keep getting into error when designing the validate form&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What does &amp;quot;click refresh&amp;quot; mean?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So your problem is that you are not able to create the second form because of the error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As I mentioned, you need to make sure that the image field only shows when there are some images. Then, designer is happy.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86202?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:39:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66c4a112-f1f0-46da-8aa1-5c781b0a34e8</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;i designed a form where a user can add a item with pictures attached then a read only form where the validator can preview the items including the pictures then i built a process model where the user enters the items in the form then i click refresh go to the user input task to validate the item all the information is showed except the pictures because i keep getting into error when designing the validate form&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86201?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:27:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2d934f3-06be-4037-8bb9-d91cd535b0f4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What do you mean? In the interface designer? Make sure to show the image field only if there is an image to show. And/or provide some valid values for testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86197?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:17:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91e566f6-10a0-4b0a-87c0-ea199e4940ce</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;the same error in the interface*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86196?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 09:05:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1065398c-6ca0-4f05-978c-15fa90523c61</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;Changed it, i dont even get to the user input task (even though I already did it and values are being passed through) because I cant get the interface to work, i get the same error even with the imageId type changed to document&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86194?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 08:59:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c058c091-8de2-47b9-9988-d66130687b93</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you pass the data into the user input task?&lt;/p&gt;
&lt;p&gt;Seems like you configured the field in the CDT as an integer. Please change that to &amp;quot;Document&amp;quot;. Appian will still persist the id to DB, but I think the rule input used to store uploaded document must be of type Document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86193?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 08:49:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77e1924d-7c10-468a-9622-7875275cd1c6</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/variable.png" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see in the imageId the data is passing throw after submiting the form, when i type a!documentImage(&lt;br /&gt; ri!product.imageId&lt;br /&gt; )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i get this error message now:&amp;nbsp;&lt;span&gt;Interface Definition: Expression evaluation error at function a!imageField [line 72]: The image at index 1 in an image gallery component [label="Item's Pictures"] has an invalid value for &amp;quot;document&amp;quot;. &amp;quot;document&amp;quot; must not be null.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86188?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 05:57:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11906631-9ca4-4944-b262-4d2dc76cb723</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;First make sure the data flow in your process is correct. Validate this by opening the process instance in monitoring and check whether your process variables have the expected values.&lt;/p&gt;
&lt;p&gt;I think that you can reduce your code to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!documentImage(ri!product.imageId)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Appian will happily cast your data types to the target data type. Keep in mind, this works almost perfectly for assignments, not for comparisons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86186?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 02:06:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10b9eac5-c3c8-47f9-a2e9-8278e26a7740</guid><dc:creator>sais0002</dc:creator><description>&lt;p&gt;Can you try&amp;nbsp;a!documentImage(todocument(&lt;span&gt;ri!product.imageId&lt;/span&gt;)) and also check if the document is the available in the folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: get image from folder</title><link>https://community.appian.com/thread/86185?ContentTypeID=1</link><pubDate>Sun, 26 Sep 2021 20:55:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:755ca610-858a-48a4-b23e-9142369ebb64</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;and how do I fix it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>