<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=BulletedListFiles</id>
	<title>BulletedListFiles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=BulletedListFiles"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=BulletedListFiles&amp;action=history"/>
	<updated>2026-04-04T00:47:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=BulletedListFiles&amp;diff=27&amp;oldid=prev</id>
		<title>Smtxwiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=BulletedListFiles&amp;diff=27&amp;oldid=prev"/>
		<updated>2020-05-25T20:44:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:44, 25 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=BulletedListFiles&amp;diff=26&amp;oldid=prev</id>
		<title>Smtxwiki: Created page with &quot;Case: we build a list of Names, they can all have multiple attachments linked to them.  Data is stored in a simple datastore, with 2 fields : Name &amp; Attachments.  Goal is to s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=BulletedListFiles&amp;diff=26&amp;oldid=prev"/>
		<updated>2016-12-19T10:21:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Case: we build a list of Names, they can all have multiple attachments linked to them.  Data is stored in a simple datastore, with 2 fields : Name &amp;amp; Attachments.  Goal is to s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Case: we build a list of Names, they can all have multiple attachments linked to them.&lt;br /&gt;
&lt;br /&gt;
Data is stored in a simple datastore, with 2 fields : Name &amp;amp; Attachments.&lt;br /&gt;
&lt;br /&gt;
Goal is to show, when editing the entry in a form, the already uploaded files, but they need to be clickable :)&lt;br /&gt;
&lt;br /&gt;
The issue is that files are renamed when saved during the process (so you do not know the exact filename, unless the ticket is started).&lt;br /&gt;
&lt;br /&gt;
Secondly, in the workflow, you know only the full link to the file.&lt;br /&gt;
&lt;br /&gt;
So how did we pull it off?&lt;br /&gt;
&lt;br /&gt;
First, in the form; make a field of the type multi-upload.&lt;br /&gt;
&lt;br /&gt;
Call it &amp;#039;NewAttachments&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now, in the process, we need to add the &amp;#039;&amp;lt;a href=&amp;quot;..&amp;quot;&amp;gt;&amp;#039; &amp;amp; &amp;#039;&amp;lt;/a&amp;gt;&amp;#039; HTML codes around each entry (remember, we support multi file upload!!)&lt;br /&gt;
&lt;br /&gt;
Make a first variable called &amp;#039;FilePlaceholder&amp;#039; (in our example, it got ID 1136)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, start with a multiplier step, multiply per file.&lt;br /&gt;
Edit your variable as follows: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; #REPLACE-VARIABLE-1136#||&amp;lt;a href=&amp;quot;#REPLACE-MULTIPLIERDATA-4892||File#&amp;quot;&amp;gt;#REPLACE-MULTIPLIERDATA-4892||File#&amp;lt;/a&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will make a nice piped-list of all entries, with a link.&lt;br /&gt;
&lt;br /&gt;
The start value of the variable is empty, but it gets added again and again in the front, so the addition in each multiplier step happen at the end.&lt;br /&gt;
&lt;br /&gt;
Problem is the || that will be there at the begiining of the varialbe and will mess stuff up.&lt;br /&gt;
&lt;br /&gt;
So we need to get rid of it.&lt;br /&gt;
&lt;br /&gt;
Therefor, make a second variable, call it : AllFiles  (ID was 1135 in my setup)&lt;br /&gt;
We will remove the first instance of || by this calculation:&lt;br /&gt;
&amp;lt;pre&amp;gt; IIF(&amp;#039;#REPLACE-VARIABLE-1136#&amp;#039; != &amp;#039;&amp;#039;, SUBSTRING(&amp;#039;#REPLACE-VARIABLE-1136#&amp;#039;, 2), &amp;#039;&amp;#039;) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now show this field in the form, but you need to replace the || by bullets.&lt;br /&gt;
So the calculation on the field will need to be  (you might need to go in edit mode of this page to see the code):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;   &amp;#039;&amp;lt;UL&amp;gt;&amp;lt;LI&amp;gt;&amp;#039;+REPLACE(&amp;#039;#REPLACE-FORMFIELD-YOURFIELD#&amp;#039;,&amp;#039;||&amp;#039;,&amp;#039;&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;&amp;#039;)+&amp;#039;&amp;lt;/LI&amp;gt;&amp;lt;/UL&amp;gt;&amp;#039;  &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, if you want users not to replace the current uploaded files with new ones, make another hidden field, that lists the current files, but put || in front of it.&lt;br /&gt;
Call it for example: Current_attachments&lt;br /&gt;
&lt;br /&gt;
In the process, make a new variable, call it &amp;#039;All Files Combined (new and old)&amp;#039;&lt;br /&gt;
&lt;br /&gt;
the initial value is then : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; #REPLACE-VARIABLE-1135##REPLACE-FORMFIELD-Current_attachments# &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
remember : variable 1135 was our variable with all files, piped; where we removed the first pipe ||, the field that we add after it has the || as a start, as defined in the hidden field.&lt;br /&gt;
&lt;br /&gt;
examples: &lt;br /&gt;
&amp;lt;pre&amp;gt; http://dev.ssp7.smt-x.com/Forms/form.aspx?id=281&lt;br /&gt;
https://ssp-q.siemens.be/Forms/form.aspx?id=1250 (tab: other) &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>