<?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=AddedRemoved_from_multi_select</id>
	<title>AddedRemoved from multi select - 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=AddedRemoved_from_multi_select"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=AddedRemoved_from_multi_select&amp;action=history"/>
	<updated>2026-04-03T23:04:27Z</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=AddedRemoved_from_multi_select&amp;diff=11&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=AddedRemoved_from_multi_select&amp;diff=11&amp;oldid=prev"/>
		<updated>2020-05-25T20:44:26Z</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=AddedRemoved_from_multi_select&amp;diff=10&amp;oldid=prev</id>
		<title>Smtxwiki at 13:51, 14 May 2019</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=AddedRemoved_from_multi_select&amp;diff=10&amp;oldid=prev"/>
		<updated>2019-05-14T13:51:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When using a multi select list, it sometimes occurs that you want to pre-select items and track which of these items have been removed and which items have been added. With the NCALC functions displayed below you can get a list of items added and removed. Just like in the example screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[File:AddRemove.jpg]]&lt;br /&gt;
&lt;br /&gt;
The NCALC fields look like this:&lt;br /&gt;
    &amp;lt;nowiki&amp;gt;REMOVED: foreachstring(&amp;#039;#REPLACE-FORMFIELD-formname||hidAlreadyInstalled||#&amp;#039;,&amp;#039;||&amp;#039;,&amp;#039;IIF(INDEXOF(\&amp;#039;#REPLACE-FORMFIELD-formname||hidCurrentSWSelection||#\&amp;#039;,\&amp;#039;{0}\&amp;#039;)=-1,\&amp;#039;{0},\&amp;#039;,\&amp;#039;\&amp;#039;)&amp;#039;,&amp;#039;&amp;#039;)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;nowiki&amp;gt;ADDED: foreachstring(&amp;#039;#REPLACE-FORMFIELD-formname||hidCurrentSWSelection||#&amp;#039;,&amp;#039;||&amp;#039;,&amp;#039;IIF(INDEXOF(\&amp;#039;#REPLACE-FORMFIELD-formname||hidAlreadyInstalled||#\&amp;#039;,\&amp;#039;{0}\&amp;#039;)=-1,\&amp;#039;{0},\&amp;#039;,\&amp;#039;\&amp;#039;)&amp;#039;,&amp;#039;&amp;#039;)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Explained&lt;br /&gt;
The ForEachString function is used to break up the list with already installed items. For each occurence in that list, the IIF function checks if it is mentioned in the current selection list. When mentioned, it should be ignored, if not mentioned, there is a difference and the occurence is included in the Removed field. The Added and Removed fields are identical, except that the fields OLD/NEW are switched. You may want to additionally take care of the last , in the result string.&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>