<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: concat and substring formula - combined?</title><link>https://www.infopathdev.com:443/forums/thread/97299.aspx</link><pubDate>Mon, 05 May 2014 19:13:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97299</guid><dc:creator>tjb105</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97299</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Final formula for combining concat and substring was concat(substring(@PATIENT_LAST_NAME, 1, 1),
@Last_4_of_Patient_SSN)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;This allowed me to choose the first letter of the patient&amp;#39;s last name and the last 4 of patient&amp;#39;s SSN.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;quot;@Last_4_of_Patient_SSN&amp;quot; is a data field.&amp;nbsp; In other words, I did not have to use a substring to bring in the Last 4 of the patients SSN because the data field &amp;quot;@Last_4_of_Patient_SSN&amp;quot; only contains the last 4 of the patients SSN.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: concat and substring formula - combined?</title><link>https://www.infopathdev.com:443/forums/thread/97285.aspx</link><pubDate>Mon, 05 May 2014 06:02:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97285</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97285.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97285</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have a formula here which uses only one text field for the first and last name. If you are using a separate field, kindly replace the formula for the 2nd concat value (last name)&amp;nbsp;to the proper one.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;concat(substring(&lt;u&gt;field1&lt;/u&gt;, 1, 1), substring(&lt;u&gt;field1&lt;/u&gt;, string-length(&lt;u&gt;field1&lt;/u&gt;) - 3, 4))&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;where&lt;em&gt; &lt;strong&gt;substring(&lt;u&gt;field1&lt;/u&gt;, string-length(&lt;u&gt;field1&lt;/u&gt;) - 3, 4))&lt;/strong&gt; &lt;/em&gt;is intended for the last name.&lt;/p&gt;&lt;p&gt;Please let me know if this helps.&lt;/p&gt;</description></item><item><title>concat and substring formula - combined?</title><link>https://www.infopathdev.com:443/forums/thread/97188.aspx</link><pubDate>Mon, 28 Apr 2014 14:25:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97188</guid><dc:creator>tjb105</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97188</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I want to create a formula that will take the first letter of the patient
last Name field and merge it with the patient’s last 4.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Can anyone help with this? &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;I&amp;#39;m trying to do something similar to this post &lt;/font&gt;&lt;a href="http://www.infopathdev.com/forums/p/21539/97116.aspx#97116"&gt;&lt;font color="#0000ff" size="3" face="Times New Roman"&gt;http://www.infopathdev.com/forums/p/21539/97116.aspx#97116&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;.
This is the formula I am using: concat(substring(@PATIENT_LAST_NAME), 1, 1)
@Last_4_of_Patient_SSN&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;This is the error I receive:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Expected value type: end-of-string&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;Actual value: ..&lt;br /&gt;
concat(substring(&lt;/font&gt;&lt;a href="mailto:../@PATIENT_LAST_NAME"&gt;&lt;font color="#0000ff" size="3" face="Times New Roman"&gt;../@PATIENT_LAST_NAME&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Times New Roman"&gt;),
1, 1) --&amp;gt;..&amp;lt;&lt;/font&gt;&lt;a href="mailto:--/@Last_4_of_Patient_SSN"&gt;&lt;font color="#0000ff" size="3" face="Times New Roman"&gt;--/@Last_4_of_Patient_SSN&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;</description></item></channel></rss>