<?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>How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/discussions/f/user-interface/10832/how-to-validate-user-input-with-ms-sql-table</link><description>Hi Community, 
 I have a user input task on my site. User fills the data and the data goes into MS SQL table. 
 I have a field (say PR No.) in my form. I want to validate the the data entered by user in the PR filed on the fly with my table to check whether</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/48095?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2017 02:35:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ebdaf03b-6312-4ee2-81b3-b1c9c99c7f0d</guid><dc:creator>venkateshs329</dc:creator><description>Which component we are providing for multiple selection.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/48087?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 20:10:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8efbaf27-f8c3-4b71-bcd1-af762e56285e</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/sureshg57"&gt;sureshg57&lt;/a&gt; , I am using Microsoft SQL Server as Database and Stored Procedure returns only integer value. Select statement of my stored procedure is giving me the required result. I am wondering how can i use the same on my interface. Can you help with this ? How can i get the same value which i am getting on running stored proc on DB in Appian ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/48061?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 13:09:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a14b0836-8de2-4bab-a42d-822c3fb34673</guid><dc:creator>sureshg57</dc:creator><description>Hi &lt;a href="/members/prasoonp"&gt;prais1852&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
I believe it is good to use fn!executestoredprocedure function. As you have lot of data in DB it is probably best to allow DB side to do all validations. You can pass all the IDs as a string and validate each in side stored procedure and return value that you can use for validation in the field. This way you can hand over the processing of the validation to the DB rather than doing in Appian.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Suresh&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/48055?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 12:18:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a98fae6-4f65-4a5f-94a2-ead2d9bba6e2</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/chandrasekharg"&gt;chandu&lt;/a&gt;  The way expression rule is returning the values and you are formatting the user input to validate PR numbers are not matching. Result of which i am getting false value only. How can i modify my expression rule in the same format as your are formatting the input data using split() and then match for validation ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47918?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 17:10:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:793a3723-a7de-48b2-a0c7-5048f105f642</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/chandrasekharg"&gt;chandu&lt;/a&gt;  I like your approach but i am getting problem with my expression rule. How can i modify my expression rule to store values in the same way you are doing using split() method. For all the PR numbers i am getting mismatch on using expression rule with a!queryEntity(). However when i am using Query Rule that problem is not coming but i can&amp;#39;t use Query Rule to show exactly which PR number doesn&amp;#39;t exist. I like your approach but finding it difficult to debug the error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47917?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 17:10:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23c9f3ad-d91b-4909-b837-466b103db502</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/chandrasekharg"&gt;chandu&lt;/a&gt;  I like your approach but i am getting problem with my expression rule. How can i modify my expression rule to store values in the same way you are doing using split() method. For all the PR numbers i am getting mismatch on using expression rule with a!queryEntity(). However when i am using Query Rule that problem is not coming but i can&amp;#39;t use Query Rule to show exactly which PR number doesn&amp;#39;t exist. I like your approach but finding it difficult to debug the error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47814?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 10:41:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e867e90-32de-477d-8f85-119aa173c665</guid><dc:creator>jaishankarj</dc:creator><description>I would suggest to go for an approach involving Stored Procedure. &lt;br /&gt;
&lt;br /&gt;
The field which you want to validate pass that to the SP as parameter, run the query to check IF EXISTS in the table. &lt;br /&gt;
Set a out parameter if you find the match and pass it back to the process and route the user back to the UI where it shows the error message based on the out parameter (this is on assumption you want to validate the PR No. and need to show the message on UI if it already exists).&lt;br /&gt;
&lt;br /&gt;
 This will improve performance and will be quick and you wont end up with the error message for 1MB.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47726?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 10:50:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c42e813-bc07-494e-be52-8c37fe9ff3fe</guid><dc:creator>chandu</dc:creator><description>&lt;p&gt;The below code might help you, I didn&amp;#39;t concentrated the validation part when user enters other than number you can validate when user enters other than numbers in the text field. let me know if you face any issue.&lt;/p&gt;
&lt;p&gt;note: I took the rule input as Integer array type you can try with text also.&lt;/p&gt;
&lt;p&gt;rule!getPNData(PN:{local!list})/* please replace here with your query entity rule this rule input need to take list*/&lt;br /&gt;&lt;br /&gt; =load(&lt;br /&gt; local!list,&lt;br /&gt; local!dBlist,&lt;br /&gt; local!notInDB,&lt;br /&gt; a!sectionLayout(&lt;br /&gt; label: &amp;quot;Lorem Ipsum&amp;quot;,&lt;br /&gt; firstColumnContents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Lorem Ipsum&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value:ri!task,&lt;br /&gt; saveInto: {ri!task,&lt;br /&gt; if(&lt;br /&gt; rule!APN_isBlank(ri!task),&lt;br /&gt; {},&lt;br /&gt; {&lt;br /&gt; a!save(&lt;br /&gt; local!list,fn!split(ri!task,&amp;quot;,&amp;quot;)&lt;br /&gt; ),&lt;br /&gt; a!save(local!list,tointeger(local!list)),&lt;br /&gt; a!save(local!dBlist,&lt;br /&gt; rule!getPNData(PN:{local!list})/* please replace here with your query entity rule this rule input need to take list*/&lt;br /&gt; &lt;br /&gt; ),&lt;br /&gt; a!save(local!dBlist,tointeger(local!dBlist)),&lt;br /&gt; a!save(local!notInDB,difference(local!list,local!dBlist))&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; &lt;br /&gt; },&lt;br /&gt; refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt; validations: {&lt;br /&gt; if(rule!APN_isBlank(local!notInDB),&amp;quot;&amp;quot;,&amp;quot;Cannot able to fetch data for &amp;quot;&amp;amp;local!notInDB)&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label:&amp;quot;DB Data&amp;quot;,&lt;br /&gt; value:local!dBlist&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; secondColumnContents: {&lt;br /&gt; /* Add components here for a two-column section */&lt;br /&gt; },&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47722?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 08:56:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0850b7af-2d6b-485b-ad76-f9d8d0316d16</guid><dc:creator>prais1852</dc:creator><description>&lt;p&gt;Hi kchaitanyam &amp;nbsp;I have changed my rule input to array now. But the problem is on the interface. How should i take the user input for PR field. Earlier i was using a!IntegerField() but i can not use it now because if there are 2 PR nos then user will enter both numbers using comma(,) as separator.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!integerField(
      label: &amp;quot;PR&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      value: ri!PRnumber,
      saveinto: ri!PRnumber,
      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
      validations: {
    if(
      isnull(ri!PRnumber),
      {},
      if(
        length(rule!CheckPRNumber(ri!PRnumber)) = 0,
        &amp;quot;PR Number does not exist.&amp;quot;,
        {}
      )
    )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What changes should i do to make it work ? Also please help me with creating the other expression rule to detect duplicate numbers if possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47672?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2017 02:21:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4879d2b-a743-4013-b73d-d5a6f6b62cd2</guid><dc:creator>Krishna Chaitanya</dc:creator><description>Hi prais1852&lt;br /&gt;
You have to make &lt;br /&gt;
 your rule input as array ,&lt;br /&gt;
Earlier you have only one validation rule which checks the valid PR Number,now you have to write two more validation rules &lt;br /&gt;
1)rule which checks the length of rule input (not more than 20 inputs )&lt;br /&gt;
2)one more rule which checks the duplicate in rule input array using contains function&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47636?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 10:28:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:263ddbb8-9941-4ba9-9e6a-52688a46e051</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/kchaitanyam"&gt;Krishna Chaitanya&lt;/a&gt;  my requirement has been changed now. I am looking for your suggestion. Now my PR field on form can have more than 1 PR number and user can separate them using comma (,) (for ex- 123,234,456 where 123 is a PR number. Similarly 234 and 456). Earlier i was checking for only 1 PR number but now i want to validate for all the PR numbers that user enters. Also maximum, a user can enter 20 PR numbers. Is there any way to implement this ? What approach would you suggest ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47333?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 11:37:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a52a6f73-49ca-46ee-bd2a-209ba5078629</guid><dc:creator>prais1852</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/kchaitanyam"&gt;Krishna Chaitanya&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion. I fixed the problem this code -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!integerField(
      label: &amp;quot;PR&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      value: ri!PRnumber,
      saveinto: ri!PRnumber,
      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
      validations: {
    if(
      isnull(ri!PRnumber),
      {},
      if(
        length(rule!CheckPRNumber(ri!PRnumber)) = 0,
        &amp;quot;PR Number does not exist.&amp;quot;,
        {}
      )
    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47325?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 08:00:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5655ae5-1be5-4a4e-b967-d35f4d58983a</guid><dc:creator>Krishna Chaitanya</dc:creator><description>&lt;p&gt;create query rule as&amp;nbsp;CheckPRNumber with below logic.&lt;/p&gt;
&lt;p&gt;a!queryEntity(&lt;br /&gt; entity: cons!(Constant which refers your Pr NO Entity),&lt;br /&gt; query: a!query(&lt;br /&gt; &lt;br /&gt; filter : if(&lt;br /&gt; isnull(ri!PRNo),&lt;br /&gt; null,&lt;br /&gt; a!queryFilter(&lt;br /&gt; field :&amp;quot;PRNo&amp;quot;,&lt;br /&gt; operator:&amp;quot;=&amp;quot;,&lt;br /&gt; value :ri!PRNo&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; pagingInfo:a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: - 1&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;this rule &amp;quot; rule!CheckPRNumber(ri!PRnumber)&amp;quot; returns empty data if data is not their for that PRNo,Now &amp;nbsp;you can check with length or totalcount for validation&lt;/p&gt;
&lt;p&gt;a!integerField(&lt;br /&gt; label: &amp;quot;PR&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value: ri!PRnumber,&lt;br /&gt; saveinto: ri!PRnumber,&lt;br /&gt; refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt; validations: if( isnull(PRnumber),{},&lt;/p&gt;
&lt;p&gt;if(rule!CheckPRNumber(ri!PRnumber).totalCount=0,{},&amp;quot;Invalid PR Number&amp;quot;&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;)&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47324?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 07:03:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8034fbc6-c727-4241-a8a3-2b3e00a00078</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;a href="/members/prasoonp"&gt;prais1852&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
Please call the created expression in interface PR.No filed validation.In interface you might the field to capture PR.No&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47323?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:59:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2750fbea-d7ec-4305-b4c6-149546560785</guid><dc:creator>prais1852</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/kchaitanyam"&gt;Krishna Chaitanya&lt;/a&gt;&amp;nbsp;i know the concept now but need help with syntax. I have created the Query Rule&amp;nbsp;&lt;strong&gt;CheckPRNumber() &lt;/strong&gt;and if i pass the PR number as parameter then it returns the value.&lt;/p&gt;
&lt;p&gt;The same Query Rule i am trying to call in my interface like this -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!integerField(
      label: &amp;quot;PR&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      value: ri!PRnumber,
      saveinto: ri!PRnumber,
      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
      validations: {if(rule!CheckPRNumber(ri!PRnumber), {}, &amp;quot;Invalid PR Number&amp;quot;)}
    )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But i am getting error -&amp;nbsp;&lt;strong&gt;Error evaluating function &amp;#39;queryruleexec&amp;#39; : No value received for input [PRnumber] in query rule [CheckPRNumber].&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47321?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:45:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38ee30a6-dcb5-44ef-89d6-62d0b3a36766</guid><dc:creator>Krishna Chaitanya</dc:creator><description>1)Then write a query entity which fetch the PR table which has rule input PR No,with query filter &lt;br /&gt;
a!queryFilter(&lt;br /&gt;
   field:&amp;quot;PR No&amp;quot;,&lt;br /&gt;
   operator:&amp;quot;=&amp;quot;,&lt;br /&gt;
   value:ri!PRNo&lt;br /&gt;
 )&lt;br /&gt;
2)pass the user entered PR number for the above rule&lt;br /&gt;
3)if that rule returns  data then the PR No is exists in that table &lt;br /&gt;
if total count of that rule is 0 then the Pr No is not Exists.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47320?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:42:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3d09f9d-6c88-4f44-9f1b-dbf466a9c759</guid><dc:creator>prais1852</dc:creator><description>Hi   can you help me with the step 3 you explained. I have created the Query rule and passed the PR number. Where should i call my query rule for validation ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47319?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:24:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf01416d-c049-4985-9e97-88ca89960236</guid><dc:creator>prais1852</dc:creator><description>Hi &lt;a href="/members/kchaitanyam"&gt;Krishna Chaitanya&lt;/a&gt;  default memory size is 1 MB mentioned in the link. Instead of bringing PR No list in memory from external DB, isn&amp;#39;t it better to pass the user entered PR number on the form (interface) as a parameter to my query rule and then check whether PR number exist or not and return appropriate message based on true/false value ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47318?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:12:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3479bd43-da95-4154-a107-e5374127a7fa</guid><dc:creator>Krishna Chaitanya</dc:creator><description>go through below link&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.2/Post-Install_Configurations.html#Query_Rule_Limits"&gt;docs.appian.com/.../Post-Install_Configurations.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47317?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:02:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27ae4abf-9125-4c8a-afd0-55abff234483</guid><dc:creator>prais1852</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/kchaitanyam"&gt;Krishna Chaitanya&lt;/a&gt;&amp;nbsp;I have almost two hundred thousand (2,00,000) record in PR table and when i used the Query rule i was able to&amp;nbsp;fetch only 2000 records. If i try to fetch all record i get &amp;quot;&lt;strong&gt;Function evaluation error : Memory threshold reached during output conversion&lt;/strong&gt;&amp;quot;. Is there anyway to fix this problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47294?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 15:57:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43a00277-221f-48da-90ae-b8ddb1b0700f</guid><dc:creator>Alok Patro</dc:creator><description>in the validations or in a rule you can design a query entity to perform the validation and use the validation results going forward.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47288?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 06:28:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5ca6b20-b816-4e8f-b518-21db8cf39a1c</guid><dc:creator>Krishna Chaitanya</dc:creator><description>&lt;p&gt;Hi prup &lt;br /&gt; first you have to write query entity to fetch table data and then a!queryentity().data.PR No hear you wil get list of {PN No}&lt;br /&gt; then by using contains() function you can search the entered PR NO&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; Local!PRNoList: a!queryEntity().data.PRNO,&lt;br /&gt; a!sectionLayout(&lt;br /&gt; label :&amp;quot;&amp;quot;,&lt;br /&gt; contents: a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;PR NO&amp;quot;,&lt;br /&gt; value: ri!PRNO,&lt;br /&gt; saveInto: ri!PRNO,&lt;br /&gt; validations: if(&lt;br /&gt; contains(&lt;br /&gt; local!PRNoList,&lt;br /&gt; ri!prNo&lt;br /&gt; ),&lt;br /&gt; &amp;quot;PR No Exists&amp;quot;,&lt;br /&gt; {}&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate user input with MS SQL Table ?</title><link>https://community.appian.com/thread/47287?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 06:27:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8c15ec3-0638-4915-ae46-d38e32bf1e3f</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;a href="/members/prasoonp"&gt;prais1852&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
In your form,&lt;br /&gt;
1.Write an queryentity expression rule with PR No. rule input. In query entity add a filter to fetch matchings records with the given rule input.&lt;br /&gt;
2.Take local variable or rule input.&lt;br /&gt;
3. Update the variable in interface either in with() or PR no. filed SaveInto by calling above expression rule(pass PR No. as input).&lt;br /&gt;
4.Add validation for the filed.(If the above variable is null-no matching record found else matching record found)&lt;br /&gt;
&lt;br /&gt;
Hope it will help you..!!!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>