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 / November 2006

Tip: Looking for answers? Try searching our database.

Reference to n element of a list :(

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 21 Nov 2006 08:34 GMT
Please help me.

I have an external data source which is a list of ID's, I need a
reference to n element of that list. This is a XPath expression, it
works.

xdXDocument:GetDOM("name_od_datasource")/dfs:myFields/dfs:dataFields/dfs:name_od_datasource[n]/@S_ID

where n is the n element of a list.

That's great but how can I write something like that directly in Visual
Basic? Could you help me?

Simply I need a reference (from VB, not XPath) to n element of my list
(external data source). I tried for example, create a drop down list.
That drop down list is filling up by those elements but I still can't
get the n element of that drop down list (only the first one). I
suspect there is a direct method (without a drop down list) to get to n
element od external data source. I tried various methods but nothing
helped :(

I would be greatful if you could help me.
andrew_s - 21 Nov 2006 18:22 GMT
I think you may be looking for something like this?

http://infopathdev.com/forums/topic.asp?TOPIC_ID=96

Dim myNode As IXMLDOMNode =
thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/s0:SelectHardwareSoftwareRequestByIDResponse/s0:SelectHardwareSoftwareRequestByIDResult/ns1:DataSet1/ns1:dbo_udp_SelectHardwareSoftwareRequestByID/ns1:HardwareOrSoftware")

You would still be using XPath, though it would be within vb.net.

cheers,
Andrew

> Please help me.
>
[quoted text clipped - 18 lines]
>
> I would be greatful if you could help me.
 
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.