Hi
I am using infopath 2007
I have a data paths which look like this…
/dfs:myFields/dfs:dataFields/d:ApplicationAliases/@Alias
/dfs:myFields/dfs:dataFields/d:ApplicationAliases/@ApplicationID
Where ApplicationAliases is repeating.
I need to ensure that combinations of @ApplicationID and @Alias are unique. Applicationid is a dropdown, Alias is a text field. I need to translate Alias to stop xyz and XYZ being entered.
So my plan was to get the preceding sibling working on @Alias – then change it to be @Alias[../@ApplictionID=current()../@Applicationid] (I don’t know if that will work - correction would be appreciated !).
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.
translate(., "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz") = xdMath:Eval(preceding-sibling::my:Aliases | following-sibling::my:Aliases, "translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')")
(many thanks to Jimmy for his help in this one.)
Initially I tried changing my:Aliases to @Alias – but that does not work, I have found the post http://www.infopathdev.com/forums/p/6891/25126.aspx#25126 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.
Could someone point me in the right direction please ?
Thank you
Catharine