Preceding-Sibling: why doesn´t it work??? - InfoPath Dev
in

InfoPath Dev

Preceding-Sibling: why doesn´t it work???

Last post 08-23-2006 09:30 AM by Greg Collins. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-22-2006 01:17 AM

    Preceding-Sibling: why doesn´t it work???

    Hi

    i have a reapeating section with severals, automatically filled fields. Well when user adds a new section I want the values of some of the fields to be copied. First I thought with the preceding-sibling, added through a rule in the repeating section properties won´t be a problem, but I simply can´t get it working :-(
    When i want to set the value which should be copied I always get the message that i don´t have the right X-Path.
    but I DO HAVE!!!
    Thats my value to be set:

    preceding-sibling::dfs:myFields/dfs:dataFields/d:Vorgang/@Benutzer[1]

    My xml-file is quite huge, so I don´t want to copy it here, but You can be sure, I read it 100 times, and I always get the same path...

    Would be so great If you could help me!

    Millie

  • 08-22-2006 12:46 PM In reply to

    Re: Preceding-Sibling: why doesn´t it work???

    I think your XPath should look like
    ../preceding-sibling::d:Vorgang[1]/@Benutzer

    When you are looking for data from one of the preceding sibling, you should not write the full xpath.
  • 08-22-2006 04:15 PM In reply to

    Re: Preceding-Sibling: why doesn´t it work???

    Also, as you see on Agni's example, the [1] should be on the node and not the attribute.
  • 08-23-2006 12:11 AM In reply to

    Re: Preceding-Sibling: why doesn´t it work???

    Thanks a lot!! It worked!!!
    Can´t believe it, I spent so much time in this :-)
    Millie
  • 08-23-2006 09:30 AM In reply to

    Re: Preceding-Sibling: why doesn´t it work???

    Glad you got it working! And thanks Agni for providing the solution!
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.