Preceding-Sibling - InfoPath Dev Sign in | Join | Help in Samples and templates InfoPath downloads (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Browse Folders DBXL Documentation Installation and Setup SharePoint Integration SQL Integration Other Subjects XML-to-XML Side by Side Notifications Active Directory Event Receiver Qdabra Tools Document Deployer Bulk Operations Others qRules Excel to XML Template Parts SharePoint Revert UDCX InfoPath downloads Samples and templates Training DBXL v2.7 qRules DBXL v2.8 DBXL v3.0 DBXL v3.1 DBXL v3.2 FormsViewer v2.1 FormsViewer v2.2 DBXL v3.3 FormsViewer v2.4 FormsViewer v3.1 FormsViewer v3.2 FormsViewer v4.1 FormsViewer v4.2 FormsViewer v5.2 Qdabra Forms 2021 DBXL v3.4 Qdabra Forms 2022 Qdabra Forms 2023 Qdabra Forms 2024 Qdabra Forms 2025 FormsQuo FormsViewer FormsViewer Installation and Setup How-To Guides Samples and Custom Features Frequently Asked Questions Licensing Policy Known Issues & Workarounds Preceding-Sibling Download Contact Downloads: 3,414 File Size: 5.5kB Posted By: ErnestoM Views: 5,145 Date Added: 04-29-2009 This form sample uses preceding-sibling to default a new row in a repeating table to the values in the row immediately prior. It also has a row counter that combines preceding-sibling with the count function! Filed under: preceding-sibling Comments vivasuzi said: I used this in one form, but I cannot for the life of me get it to work in another form even though I'm using the exact same structure. count(preceding-sibling::groupName) + 1 Works fine in one form count(preceding-sibling::anotherGroupName) + 1 Tells me it doesn't point to a valid location. I tried count(preceding-sibling::anotherGroupName/FieldName) + 1 and got the same error. i'm pulling my hair out over this b/c I'm pretty much duplicating what I've done in the other form and it won't work. Any suggestions? 07-14-2009 01:05 PM Patrick Halstead said: Hi VivaSuzi, We'd have to look at your forms. I recommend our InfoPath Detailing service - costs $50 and you'll find other stuff out plus we can fix your issue. Otherwise, just send the forms and we'll take a quick look, but can't promise we'll solve it in 5 minutes. 07-16-2009 02:06 AM Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
This form sample uses preceding-sibling to default a new row in a repeating table to the values in the row immediately prior. It also has a row counter that combines preceding-sibling with the count function!