<?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 requirement to read an excel sheet and validate the parsed fields.</title><link>https://community.appian.com/discussions/f/general/1097/i-have-requirement-to-read-an-excel-sheet-and-validate-the-parsed-fields</link><description>I have requirement to read an excel sheet and validate the parsed fields. In that i need to validate a field whether it is a number or not. i did not find anything regarding this check with an expression (ie with expression editor / existing functions</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3773?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 17:14:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:915abbe6-b30e-41e4-ae96-d1812910487e</guid><dc:creator>sikhivahans</dc:creator><description>Ok, I think you have changed your regular expression. Thats fine&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3772?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 17:12:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2260e145-f371-4309-9ecc-b8a98856e616</guid><dc:creator>saratrk</dc:creator><description>regexmatch(&amp;quot;^\\d+\\.?\\d*$&amp;quot;, pv!inputText) is working for the integers as well as decimals. Thanks for your help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3766?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 13:43:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d5c8171-9226-41db-bf53-e6f1eb2ab6f9</guid><dc:creator>sikhivahans</dc:creator><description>ya ok&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3764?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 12:26:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:797cf047-42d1-441b-a1d1-dd24f4274601</guid><dc:creator>saratrk</dc:creator><description>just found regexmatch in the functions.will try on that. Thank you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3763?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 12:10:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:653004e3-62fe-42f6-b10b-dcd4cbb8fd15</guid><dc:creator>sikhivahans</dc:creator><description>@saratrk, still if you have any follow-up questions let me know.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3762?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 12:08:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48f655cc-7a8c-4cc4-8b13-0b38621fa9ae</guid><dc:creator>sikhivahans</dc:creator><description>@saratrk, thats what i have said in the previous comment, use regexmatch() for this purpose. regexmatch("^[0-9]+(,[0-9]+)*$",ri!yourInputText). But Please note that this regular expression doesn't work (i think it checks only for numbers)for decimals as decimals contain point i.e. dot.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3761?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 12:04:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed15598d-5456-4af6-ac89-40c391b57f77</guid><dc:creator>saratrk</dc:creator><description>i have searched in the forum and found&lt;br /&gt;return (window.FormAPI.getValue(&amp;quot;myTextField&amp;quot;).id).match(/^[0-9]+(,[0-9]+)*$/)&lt;br /&gt;used on the form for the same purpose.&lt;br /&gt;&lt;br /&gt;But can i use match(/^[0-9]+(,[0-9]+)*$/) in the script task expression editor ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3753?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 09:52:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b41dcadf-615e-41bb-9a21-555560013317</guid><dc:creator>sikhivahans</dc:creator><description>@saratrk, one option is to have a regular expression which checks only for presence of numbers Usage of regexmatch with this expression returns true/false out of it. Still if you find any better way you can proceed with that.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3752?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2013 09:45:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cdb8c760-2499-4cc7-bbf8-79fc444ca283</guid><dc:creator>saratrk</dc:creator><description>Hi alex and sikhivahans thank you both for your response.&lt;br /&gt;&lt;br /&gt;typename(typeof()) is not working in my case. I read the excel file &amp;#39;bill_amount&amp;#39; field in the text format. typename(typeof()) returns me text. if i convert the bill_amount to integer with toInteger() it returns number even if the value is &amp;quot;abcd&amp;quot; so i think i there is no other way than to write a custom function. &lt;br /&gt;&lt;br /&gt;Let me know if there is any other way.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3741?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2013 17:57:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9030c1c1-12cd-4b11-8e1f-bc712b3e9fca</guid><dc:creator>sikhivahans</dc:creator><description>saratrk,you could use typeof() or typename(typeof()) functions to check data types.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have requirement to read an excel sheet and validate the parsed fields.&lt;br /&gt;&lt;</title><link>https://community.appian.com/thread/3740?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2013 17:52:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44496b0b-51ce-4400-b439-966f217bd438</guid><dc:creator>Alex Weller</dc:creator><description>Sarat, the expression  typeof() will tell you the Appian datatype but if you are parsing excel, I believe you will need to determine the type of the elements of each column beforehand. Please see the relevant shared component for more information on this.&lt;br /&gt;&lt;br /&gt;You can write your own Appian expression to validate email addresses using a combination of Appian&amp;#39;s useful Text Functions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>