<?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: Splitting a string</title><link>https://www.infopathdev.com:443/forums/thread/108734.aspx</link><pubDate>Wed, 30 Nov 2016 19:52:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108734</guid><dc:creator>Tom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108734</wfw:commentRss><description>Thanks! It will take me a few days to try this so let me give it a go and see how it goes. I will let you know.</description></item><item><title>Re: Splitting a string</title><link>https://www.infopathdev.com:443/forums/thread/108723.aspx</link><pubDate>Wed, 30 Nov 2016 15:58:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108723</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108723</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yah - what does the data in the secondary table look like? Just date values? Are you looking for an exact match - user selects 2016-11-15 and you want back just the last three digits from another field in a row that has 2016-11-15? At any rate, I created a simple sample - save the attached file locally, right click and select Design, then you can preview. If the data is a fixed length, you should just be able to use a substring formula. If it varies, the formula will be slightly more complex. If the date is an exact match, you can just use a filter to get the right row - if it is a range, that gets more complex (again) - but hopefully this will help?&lt;/p&gt;</description></item><item><title>Re: Splitting a string</title><link>https://www.infopathdev.com:443/forums/thread/108720.aspx</link><pubDate>Wed, 30 Nov 2016 13:46:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108720</guid><dc:creator>Tom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108720</wfw:commentRss><description>Hi Hilary,

I am looking for an XPath solution. essentially I have a secondary data source for which a single field contains a history of what was entered for example at different times:



I have the secondary data source as a repeating table and outside of that table I have a date value that I can select. I want to be able to for example select the date &amp;quot;2016-11-15&amp;quot; and return &amp;quot;XYZ&amp;quot; as this was the value that was applicable on that date (&amp;quot;XXX&amp;quot; isn&amp;#39;t applicable until &amp;quot;2016-11-20&amp;quot; for example). Does this make sense?</description></item><item><title>Re: Splitting a string</title><link>https://www.infopathdev.com:443/forums/thread/108708.aspx</link><pubDate>Tue, 29 Nov 2016 22:01:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108708</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108708</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - your table is in your main or a secondary data source? I guess I&amp;#39;m having a hard time understanding what you are trying to do, but it seems like you may not even need code for this ... might be able to just use XPath. Can you maybe attach a screenshot under the Options tab in a reply that describes this a bit more thoroughly?&lt;/p&gt;</description></item><item><title>Splitting a string</title><link>https://www.infopathdev.com:443/forums/thread/108700.aspx</link><pubDate>Tue, 29 Nov 2016 16:37:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108700</guid><dc:creator>Tom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108700.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108700</wfw:commentRss><description>I have a field in a table that stores a string of history values for my entries which is always the same length per new entry, for example:
 

 
I want to write some code to look at these values and pull the last 3 characters based on the date. For example, if the user is looking at month 10, I want the &amp;quot;100&amp;quot; but if looking at month 11, I want the &amp;quot;111&amp;quot;. 

Is there any way anyone knows of that this can be done?</description></item></channel></rss>