Access Secondary Datasource - InfoPath Dev
in

InfoPath Dev

Access Secondary Datasource

Last post 01-22-2010 04:36 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-21-2010 11:58 PM

    Access Secondary Datasource

    First, sorry for my bad english.

     I want to access datafields in a secondary datasources out of a jscript Code. The name of the Datasource is "v0_getTravels" and i tried the following code:

    node = XDocument.DataObjects("v0_getTravels).DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:v0_getTravels");

    id = node.selectSingleNode("@travel_id").nodeTypedValue;

     but an error occours, that there is no Namespace defined called "dfs"

    where is my misstake?

  • 01-22-2010 04:36 AM In reply to

    Re: Access Secondary Datasource

     Please make sure that the SelectionNamespaces declaration towards the top of the .js file includes the dfs namespace (prefix and URI), and add it if it's not there.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.