Converting Code to JSCRIPT - InfoPath Dev
in

InfoPath Dev

Converting Code to JSCRIPT

Last post 08-24-2007 06:38 AM by shayrlz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-23-2007 08:20 AM

    Converting Code to JSCRIPT

    How can I convert this to put in the JSCRIPT code? 

    xdXDocument:GetDOM("Manual Procedimentos PROAF")/dfs:myFields/dfs:dataFields/dfs:Manual_Procedimentos_PROAF/@Orientacoes

     

    Tnx

  • 08-23-2007 08:54 AM In reply to

    Re: Converting Code to JSCRIPT

    // You only need to do this once. This is needed because you are using prefixes. If you use other prefixes than dfs, you have to add other declarations in this line
    XDocument.GetDOM("Manual Procedimentos PROAF").setProperty("SelectionNamespaces", "xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution'");

    // This selects the node from the secondary data source and returns the node's text
    XDocument.GetDOM("Manual Procedimentos PROAF").selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Manual_Procedimentos_PROAF/@Orientacoes").text

     

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-24-2007 06:38 AM In reply to

    Re: Converting Code to JSCRIPT

    Thanks!!!!!!!!!!!!!!!!!

    :)

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.