<?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>i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/discussions/f/general/2396/i-have-an-apply-function-that-whose-rule-gets-3-parameters-the-apply-looks-like</link><description>i have an apply function that whose rule gets 3 parameters. The apply looks like this: a!applyComponents(function:rule!DCMIFS_CustomTextField, array:merge(local!technicalOfficers,ri!hours, ri!hours)) local!technicalOfficers gets 3 values of type text</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8450?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2014 00:28:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34f9d768-0125-4c77-86f3-3bda1ace1ad9</guid><dc:creator>aswinb</dc:creator><description>Thanks Jesse, I fixed everything....will look forward to your help in future...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8446?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 18:01:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72991e98-599f-41e7-bda8-1bebabcb9952</guid><dc:creator>jesse.triplett</dc:creator><description>What are you having a problem with now? Did you try to imitate the file I attached and are still having an issue? The file I attached works for me... and it should for you. I should have also mentioned the parameter types: I did index(int), label(text), temp(any type)&lt;br /&gt;&lt;br /&gt;Anyways, I recommend against what you&amp;#39;ve attachedin DCMIFS_CustomTextField. It&amp;#39;s inefficient to to query for the whole technical officers list every time just to get one piece of it. Especially since the query is executed twice in that if(). Did you see in the file I attached how I merge and pass in technical officers?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8445?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 17:44:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb77c813-da90-4f31-9660-b9f34eae252b</guid><dc:creator>aswinb</dc:creator><description>I tried doing it but its not saving. Then I tried something a little different. I have attached the code here...&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/8203.performanceMetricsTotal.yml"&gt;performanceMetricsTotal.yml&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/DCMIFS_5F00_CustomTextField.txt"&gt;DCMIFS_CustomTextField.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8422?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 22:03:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a650c96e-3717-4036-bf79-a1fd7abd24ee</guid><dc:creator>jesse.triplett</dc:creator><description>Please see the attached example file if you need more reference. The top section is the helper rule, the second part is a section that can be placed in a form. &lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/applyComponents.st"&gt;applyComponents.st&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8419?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 21:39:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:336739c8-b398-4857-9201-b5a22d9f7369</guid><dc:creator>jesse.triplett</dc:creator><description>Did you try your first line, without the indexing and the merging (as I mentioned in the other thread). Something like the following. This is just to try and get the typed in values to save at all.&lt;br /&gt;&lt;br /&gt;a!applyComponents(function:rule!DCMIFS_CustomTextField(label:_, value:ri!hours, saveInto:ri!hours),&lt;br /&gt; array: local!technicalOfficers)&lt;br /&gt;&lt;br /&gt;If this works, then the next step is to save into the correct part of the ri!hours array, you should handle that logic inside of the rule!DCMIFS_CustomTextField() rule.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8413?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 19:54:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:660891f4-c1a1-479b-8e5d-d7ee180fd317</guid><dc:creator>aswinb</dc:creator><description>None of the above are working...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8412?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 19:54:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8b06dae-8d99-4a02-ac5c-82837c03eb1c</guid><dc:creator>aswinb</dc:creator><description>a!applyComponents(function:rule!DCMIFS_CustomTextField(label:_, value:_, saveInto:_),&lt;br /&gt; array:merge(local!technicalOfficers, ri!hours[1+fn!enumerate(count(local!technicalOfficers))], ri!hours[1+fn!enumerate(count(local!technicalOfficers))])),&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have an apply function that whose rule gets 3 parameters. The apply looks like</title><link>https://community.appian.com/thread/8411?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2014 19:51:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0518e1ff-6639-4808-becc-5206831cf97c</guid><dc:creator>aswinb</dc:creator><description>a!applyComponents(function:rule!DCMIFS_CustomTextField(label:_, value:ri!hours[_], saveInto:ri!hours[_]),&lt;br /&gt; array:merge(local!technicalOfficers, 1+fn!enumerate(count(local!technicalOfficers)), 1+fn!enumerate(count(local!technicalOfficers)))),&lt;br /&gt;&lt;br /&gt;I also tried the above code but its giving errors...that&amp;#39;s all.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>