Converting Code to JSCRIPT - InfoPath Dev Sign in | Join | Help in Newbie Questions InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Newbie Questions » Converting Code to JSCRIPT Converting Code to JSCRIPT Last post 08-24-2007 06:38 AM by shayrlz. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-23-2007 08:20 AM shayrlz Joined on 08-23-2007 Posts 28 Converting Code to JSCRIPT Reply Contact 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 davidair Joined on 01-15-2007 Canada Posts 282 Re: Converting Code to JSCRIPT Mark as Not AnswerMark as Answer... Reply Contact // 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 lineXDocument.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 textXDocument.GetDOM("Manual Procedimentos PROAF").selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Manual_Procedimentos_PROAF/@Orientacoes").text David Airapetyan / Software Services ArchitectQdabra® Software / Streamline data gathering to turn process into knowledge 08-24-2007 06:38 AM In reply to shayrlz Joined on 08-23-2007 Posts 28 Re: Converting Code to JSCRIPT Mark as Not AnswerMark as Answer... Reply Contact Thanks!!!!!!!!!!!!!!!!! :) Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
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
// 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 lineXDocument.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 textXDocument.GetDOM("Manual Procedimentos PROAF").selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Manual_Procedimentos_PROAF/@Orientacoes").text
Thanks!!!!!!!!!!!!!!!!!
:)