p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Other Office > Infopath
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Infopath Programming and automation discussions only please. :)

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 12th, 2008, 12:09 AM
Registered User
 
Join Date: Sep 2008
Location: AA, AA, Mauritius.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using preceding-sibling

Hi
Been stuck on using this formula...

(../../../my:OpeningBal | preceding-sibling::*[1]/ClosingTransBalance)[(count(preceding-sibling::*/TransID) = 1) + 1]

Let me explain...
it is an IF statement
the true result being ../../../my:OpeningBal
the false result being preceding-sibling::*[1]/ClosingTransBalance
i.e. it sets the value to the field ClosingTransBalance of the previous item in the Repeating table.

Condition: count(preceding-sibling::*/TransID) = 1
it counts whether there is ONE item in the items repeating table

Thanks
Ced

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
preceding-sibling::comment() bonekrusher XSLT 11 October 1st, 2008 12:38 PM
Preceding-sibling question. lafilip XSLT 7 March 5th, 2007 12:35 PM
preceding-sibling jonesyp XSLT 2 November 22nd, 2005 12:29 PM
preceding-sibling behaviour andrewcday XSLT 6 December 3rd, 2004 03:24 PM
sorting and preceding-sibling iamhigh XSLT 5 August 25th, 2003 01:23 AM



All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc