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 2007

Tip: Looking for answers? Try searching our database.

Not able to Crack the xPath for a field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tam - 11 Aug 2007 00:48 GMT
Hi, I am not able to crack the xpath for my fields, I followed everything
what ever is discussed in this link
http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/38
46426f74113855/545ac3fc18c61d7d?lnk=st&q=find+xpath+in+infopath&rnum=3&hl=en

but no go..

My Hierarchy looks like this...
-myFields
    +queryFields
     -dataFields
         -d:Test_Plan
             :Run
             :Test_Suite_Name

I want to refer to thsi Test_Suite_Name and xpath shows ---  
dfs:dataFields/d:Test_Plan/@NT_User_Name.  Tried all the combinations
appending //dfs:dataFields/d:Test_Plan/@NT_User_Name  tried //dfs:dataFields
gives me an error undeclared name space dfs tried my error tried /dfs error
tried //dfs:myFields/dfs:dataFields/d:Test_Plan/@Test_Suite_Name error.  I
get either error or undelcared name space.  Can anyone tell me how can we
work this out.  In addition to this if anyone can tell me how to register a
non local form using regform utility it would be gr8... regform gives me an
error if I register a network location form.
Shiva (GGK Tech) - 13 Aug 2007 07:18 GMT
Hi,

Check out this link,

http://www.infopathdev.com/forums/thread/14105.aspx

You can try below the xPat once if you set the property
/dfs:myFields/dfs:dataFields/d:Test_Plan/@NT_User_Name  

Hope this Helps you

Signature

Shiva
http://www.ggktech.com

> Hi, I am not able to crack the xpath for my fields, I followed everything
> what ever is discussed in this link
[quoted text clipped - 18 lines]
> non local form using regform utility it would be gr8... regform gives me an
> error if I register a network location form.
Tam - 13 Aug 2007 19:22 GMT
I tried the following code.. it gives me error Type Mismatch DataObjects.. I
dont know the exact format of the function call for DataObejcts... I am using
the code in VBScript... can you help me identify this error as I am very new
to Infopath..

Sub XDocument_OnLoad(eventObj)
DataObjects("My connection").Query()
DataObjects("My connection").DOM.setProperty "SelectionNamespaces",
"xmlns:=""http://schemas.microsoft.com/office/infopath/2003/ado/queryFields""
xmlns:d=""http://schemas.microsoft.com/office/infopath/2003/ado/dataFields""
xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"""
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Test_Plan/@NT_User_Name").text = NTUserName()
End Sub

> Hi,
>
[quoted text clipped - 29 lines]
> > non local form using regform utility it would be gr8... regform gives me an
> > error if I register a network location form.
S.Y.M. Wong-A-Ton - 17 Aug 2007 01:54 GMT
Try using XDocument.DataObjects instead of just DataObjects.
---
S.Y.M. Wong-A-Ton

> I tried the following code.. it gives me error Type Mismatch DataObjects.. I
> dont know the exact format of the function call for DataObejcts... I am using
[quoted text clipped - 43 lines]
> > > non local form using regform utility it would be gr8... regform gives me an
> > > error if I register a network location form.
 
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.