K
kfrost
Hello,
I have two views, Main and TripDetails. The main has a repeating table that
is populated by a secondary data connection called Trips.
Users select a trip by clicking a button and they get taken to the
TripDetails view which has fields populated by a data connection to Sql
called main.
For certain situations, while in trip details, I need to access via code
nodes in the Trips data connection.
I've been trying to use the following to work with no luck.
Dim objTripsNode As IXMLDOMNode = thisXDocument.DataObjects("Trips").DOM
Dim objTripsElem As IXMLDOMElement = objTripsNode.selectSingleNode("//Trips")
Dim strID As String = objTripsElem.getAttribute("TripID")
The first line creates an object with the data from Trips. However, the
second line does nothing. objTripsElem keeps a value of nothing. If I look
at the xml value in the objTripsNode object, I see the TripID attribute I'm
looking for but I just can't figure out how to access it.
Any ideas?
I have two views, Main and TripDetails. The main has a repeating table that
is populated by a secondary data connection called Trips.
Users select a trip by clicking a button and they get taken to the
TripDetails view which has fields populated by a data connection to Sql
called main.
For certain situations, while in trip details, I need to access via code
nodes in the Trips data connection.
I've been trying to use the following to work with no luck.
Dim objTripsNode As IXMLDOMNode = thisXDocument.DataObjects("Trips").DOM
Dim objTripsElem As IXMLDOMElement = objTripsNode.selectSingleNode("//Trips")
Dim strID As String = objTripsElem.getAttribute("TripID")
The first line creates an object with the data from Trips. However, the
second line does nothing. objTripsElem keeps a value of nothing. If I look
at the xml value in the objTripsNode object, I see the TripID attribute I'm
looking for but I just can't figure out how to access it.
Any ideas?