<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=CustomColumn_addOption</id>
	<title>CustomColumn addOption - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=CustomColumn_addOption"/>
	<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;action=history"/>
	<updated>2026-05-07T18:43:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=20154&amp;oldid=prev</id>
		<title>Cg huyphong at 09:46, 12 December 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=20154&amp;oldid=prev"/>
		<updated>2011-12-12T09:46:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:46, 12 December 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Data cache modifying CGScript functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Data cache modifying CGScript functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;﻿&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;﻿&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{HelpFiles}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====CustomColumn_addOption====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====CustomColumn_addOption====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-17714:rev-20154:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Cg huyphong</name></author>
	</entry>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=17714&amp;oldid=prev</id>
		<title>Cg_pham at 03:19, 29 March 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=17714&amp;oldid=prev"/>
		<updated>2011-03-29T03:19:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:19, 29 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;HelpBooks&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Data cache modifying CGScript functions&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;﻿&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;﻿&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-16643:rev-17714:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Cg_pham</name></author>
	</entry>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=16643&amp;oldid=prev</id>
		<title>Catglobe: jrfconvert import</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=CustomColumn_addOption&amp;diff=16643&amp;oldid=prev"/>
		<updated>2011-03-07T09:08:17Z</updated>

		<summary type="html">&lt;p&gt;jrfconvert import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:HelpBooks]]&lt;br /&gt;
﻿&lt;br /&gt;
&lt;br /&gt;
====CustomColumn_addOption====&lt;br /&gt;
&lt;br /&gt;
Adds a custom column option to the end of the options array for the custom column passed as argument to the method. The custom column option is added to the custom column and the method returns the index positioning it among the custom column options for the custom column.&lt;br /&gt;
&lt;br /&gt;
Important: the order of adding options to custom column does matter much. The script will be generated as:&lt;br /&gt;
&lt;br /&gt;
if(expression for custom column option 0)&lt;br /&gt;
&lt;br /&gt;
{return value for custom column 0;}&lt;br /&gt;
&lt;br /&gt;
else if(expression for custom column 1)&lt;br /&gt;
&lt;br /&gt;
{return value for custom column option 1;}&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
else if(expression for custom column n – 1)&lt;br /&gt;
&lt;br /&gt;
{return value for custom column option n - 1}&lt;br /&gt;
&lt;br /&gt;
else {return empty;}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Syntax&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
CustomColumn_addOption(&amp;#039;&amp;#039;customColumn&amp;#039;&amp;#039;, &amp;#039;&amp;#039;customColumnOption&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Arguments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;customColumn&amp;#039;&amp;#039;: is an array. It is the custom column array returned by CustomColumn_new function.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;customColumnOption&amp;#039;&amp;#039;: is an array. It is the custom column option array returned by CustomColumnOption_new function.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Return type&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Number&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
array customColumn = CustomColumn_new(CUSTOM_COLUMN_TYPE_NUMBER, &amp;quot;AgeGroup&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
customColumn[CUSTOM_COLUMN_TEXT] = &amp;quot;Age groups&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
array customColumnOption_Kid = CustomColumnOption_new(&amp;quot;Age &amp;amp;lt; 15&amp;quot;, 1, &amp;quot;Kid&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
array customColumnOption_Teen = CustomColumnOption_new(&amp;quot;Age == [15-18]&amp;quot;, 2, &amp;quot;Teen&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
array customColumnOption_Adult = CustomColumnOption_new(&amp;quot;Age == [19-45]&amp;quot;, 3, &amp;quot;Adult&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
array customColumnOption_Senior = CustomColumnOption_new(&amp;quot;Age &amp;amp;gt; 45&amp;quot;, 4, &amp;quot;Senior&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
CustomColumn_addOption(customColumn, customColumnOption_Kid );&lt;br /&gt;
&lt;br /&gt;
CustomColumn_addOption(customColumn, customColumnOption_Teen);&lt;br /&gt;
&lt;br /&gt;
CustomColumn_addOption(customColumn, customColumnOption_Adult);&lt;br /&gt;
&lt;br /&gt;
CustomColumn_addOption(customColumn, customColumnOption_Senior);&lt;br /&gt;
&lt;br /&gt;
DCS_addCustomColumn(customColumn);&lt;br /&gt;
&lt;br /&gt;
/*the custom column&amp;#039;s script will be similar to this:&lt;br /&gt;
&lt;br /&gt;
if (Age &amp;amp;lt; 15)&lt;br /&gt;
&lt;br /&gt;
{return 1;}&lt;br /&gt;
&lt;br /&gt;
else if (Age == [15-18])&lt;br /&gt;
&lt;br /&gt;
{return 2;}&lt;br /&gt;
&lt;br /&gt;
else if (Age == [19-45])&lt;br /&gt;
&lt;br /&gt;
{return 3;}&lt;br /&gt;
&lt;br /&gt;
else if (Age &amp;amp;gt; 45)&lt;br /&gt;
&lt;br /&gt;
{return 4;}&lt;br /&gt;
&lt;br /&gt;
else return empty;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Availability&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 5.5&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- imported from file: 5213.htm--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Catglobe</name></author>
	</entry>
</feed>