<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71032.aspx</link><pubDate>Tue, 11 Oct 2011 16:29:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71032</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71032</wfw:commentRss><description>&lt;p&gt;Excellent!&amp;nbsp; Glad to help, and it looks like you&amp;#39;re understanding the logic just fine.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Just so you know, the &amp;#39;[|]&amp;#39; there&amp;nbsp;is an arbitrary piece of text to separate the Alias and ApplicationID, so that there&amp;#39;s no risk of false positives when you concatenate them together.&amp;nbsp; I used &amp;#39;[|]&amp;#39; because I figured that character sequence was unlikely to appear in either of those fields.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Happy trails!&lt;/p&gt;</description></item><item><title>Re: Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71024.aspx</link><pubDate>Tue, 11 Oct 2011 13:44:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71024</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71024</wfw:commentRss><description>&lt;p&gt;I have put this in my form and it works - you are a super hero...&lt;/p&gt;
&lt;p&gt;I am now trying to &amp;#39;decode&amp;#39; it for the future... &lt;/p&gt;
&lt;p&gt;translate(concat(. , &amp;#39;[|]&amp;#39;, ../@ApplicationID), &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;)&amp;nbsp; - I think&amp;nbsp;you are&amp;nbsp;concatenating the two items together first, then translating the concatenated result.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;xdMath:Eval(../preceding-sibling::d:ApplicationAliases | ../following-sibling::d:ApplicationAliases, &amp;quot;translate(concat(@Alias, &amp;#39;[|]&amp;#39;, @ApplicationID), &amp;#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;#39;, &amp;#39;abcdefghijklmnopqrstuvwxyz&amp;#39;)&amp;quot;) &lt;/p&gt;
&lt;p&gt;- so in this bit you are going to the parent and getting the preceding following siblings - then&amp;nbsp;concatenating the Alias and&amp;nbsp;ApplicationID&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Brilliant !&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;</description></item><item><title>Re: Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71022.aspx</link><pubDate>Tue, 11 Oct 2011 13:26:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71022</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71022</wfw:commentRss><description>&lt;p&gt;How&amp;#39;s this:&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;translate(concat(. , &amp;#39;[|]&amp;#39;, ../@ApplicationID), &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;) = xdMath:Eval(../preceding-sibling::d:ApplicationAliases | ../following-sibling::d:ApplicationAliases, &amp;quot;translate(concat(@Alias, &amp;#39;[|]&amp;#39;, @ApplicationID), &amp;#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;#39;, &amp;#39;abcdefghijklmnopqrstuvwxyz&amp;#39;)&amp;quot;)&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71021.aspx</link><pubDate>Tue, 11 Oct 2011 13:12:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71021</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71021.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71021</wfw:commentRss><description>&lt;p&gt;Yes that is exactly the case.&lt;/p&gt;
&lt;p&gt;Every app&amp;nbsp; and every alias may appear serveral times.... but it is the combination which has to be unique&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71017.aspx</link><pubDate>Tue, 11 Oct 2011 12:55:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71017</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71017</wfw:commentRss><description>&lt;p&gt;Well, the simple answer to how to use preceding and following sibling with this structure would be to use something like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;../preceding-sibling::d:ApplicationAliases/@Alias&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;But since you&amp;#39;re checking for unique &lt;em&gt;combinations&lt;/em&gt;, you might have a complicated situation on your hands. Are you saying that &lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp; App1&lt;br /&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp; App2&lt;br /&gt;Jill&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App1&lt;br /&gt;Jill&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;would be ok, but &lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp; App2&lt;br /&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp; App2&lt;br /&gt;Jill&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App1&lt;br /&gt;Jill&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App2&lt;/p&gt;
&lt;p&gt;would be invalid because there are two John - App2 rows?&lt;/p&gt;</description></item><item><title>Preceding (and following) sibling with attributes</title><link>https://www.infopathdev.com:443/forums/thread/71015.aspx</link><pubDate>Tue, 11 Oct 2011 12:16:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71015</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71015.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71015</wfw:commentRss><description>&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Hi&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I am using infopath 2007&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have a data paths which look like this…&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;/dfs:myFields/dfs:dataFields/d:ApplicationAliases/@Alias&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;/dfs:myFields/dfs:dataFields/d:ApplicationAliases/@ApplicationID&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Where ApplicationAliases is repeating.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I need to ensure that combinations of @ApplicationID and @Alias are unique.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Applicationid is a dropdown, Alias is a text field.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I need to translate Alias to stop&amp;nbsp;xyz and XYZ being entered.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;So my plan was to get the preceding sibling working on @Alias – then change it to be @Alias[../@ApplictionID=current()&lt;/font&gt;&lt;a href="mailto:../@Applicationid"&gt;&lt;font size="3" face="Calibri"&gt;../@Applicationid&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt;] (I don’t know if that will work - correction would be appreciated !).&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;So in trying to get the preceding/following sibling to work I started with the following, which Jimmy helped me get working in another form of slightly different structure.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;translate(., &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;) = xdMath:Eval(preceding-sibling::my:Aliases | following-sibling::my:Aliases, &amp;quot;translate(., &amp;#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;#39;, &amp;#39;abcdefghijklmnopqrstuvwxyz&amp;#39;)&amp;quot;)&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;(many thanks to Jimmy for his help in this one.)&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Initially I tried changing my:Aliases to @Alias – but that does not work, I have found the post &lt;/font&gt;&lt;a href="http://www.infopathdev.com/forums/p/6891/25126.aspx#25126"&gt;&lt;font color="#800080" size="3" face="Calibri"&gt;http://www.infopathdev.com/forums/p/6891/25126.aspx#25126&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; which I think may be a similar problem to mine – my understanding of this is that I need to go UP the data tree and then back down again – so I have tried ../@Alias still to no avail. &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Could someone point me in the right direction please ? &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Thank you&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Catharine&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>