Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

using Current() and repeating sections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Philomeno - 15 Aug 2005 22:19 GMT
ok...I have read a bunch of stuff about this but I am so new at using xpath
queries that I am not able to figure out the syntax...and maybe I an not even
close but...

I am trying to populate a ddown list using the value saved in another in a
repeating section....Customers/Contacts....I have read and implemented this
scenario where it is not in a repeating section getting a ref to the
Dataobject for the contacts and setting the query text (parameter) to the
current clientno...and then Query() to refresh...see below.....

begin code
***************************************
Dim theDataObject
           theDataObject =
thisXDocument.DataObjects.Item("GetContactsForClientNoCONTACTS")

theDataObject.DOM.setProperty("SelectionNamespaces", _
               
"xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution""" & _
               "
xmlns:ns8=""http://tempuri.org/SparCRMService/SparCRMService""")

Dim queryValue
           queryValue =
thisXDocument.DOM.selectSingleNode("/my:NewProj/my:Contacts/my:Contact/my:ConName")

queryValue.text = e.NewValue

theDataObject.Query()
***************************************
end of code

So now I want to use Current() in the selectSingleNode call (i assume) but I
can't get the syntax right....

Any help?

Tim Philomeno, Sparling, Inc.
virgul - 16 Aug 2005 10:06 GMT
Hi,

Dim queryValue
           queryValue thisXDocument.DOM.selectSingle­Node("current()/my:NewProj/my:Contacts/­my:Contact/my:ConName")

++

Thierry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.