Search - InfoPath Dev Sign in | Join | Help 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 Search More Search Options Page 2 of 4 (34 items) < Previous 1 2 3 4 Next > Re: Pass Parameter to an unopened form Hi, It doesn't work. var Topass = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Name/@id").text; var Salary = Application.XDocuments.NewFromSolution("C:\\Temp\\Salary.xsn"); Salary.DOM.selectSingleNode("/my:myFields/my:id").text = Topass; <= Still got error message from this ... Posted to Code (Forum) by troy0118 on 04-18-2007 Re: Pass Parameter to an unopened form Hi nukkumatti, Thanks again. var Getid = XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:Name/@id").text; var Salary = Application.XDocuments.NewFromSolution("C:\\Temp\\Salary.xsn"); Salary.DOM.selectSingleNode("dfs:myFields/dfs:queryFields/q:Salary/@id").text = ... Posted to Code (Forum) by troy0118 on 04-18-2007 Re: Sending values to an unopened form Hi Patrick, Could you please point me out what I should do? As you mentioned, I can use an Open rule to executive this. Please take a look on the diagram I provided, and advise me. Thanks a bunch. Troy Posted to General (Forum) by troy0118 on 04-16-2007 Re: Pass Parameter to an unopened form Hi nukkumatti, This is what I have now: 1. var SalarySolution = Application.XDocuments.NewFromSolution("C:\\Temp\\Salary.xsn"); 2. var getid = SalarySolution.DOM.selectSingleNode("dfs:dataFields/d:personal/@id").text; (However, I still got the error message "Reference to undeclared namespace prefix: ... Posted to Code (Forum) by troy0118 on 04-16-2007 Re: Pass Parameter to an unopened form Hi nukkumatti, Thanks for your reply. This is what I need: I have the following(red words) in the Modify button: var SalarySolution = Application.XDocuments.NewFromSolution(''\C:\\Temp\\Salary.xsn''); var getid = SalarySolution.DOM.selectSingleNode(''/dfs:myFields/dfs:dataFields/d:personal/@id'').text; (I assume the above line is to get the ... Posted to Code (Forum) by troy0118 on 04-13-2007 Re: Pass Parameter to an unopened form Thanks, Patrick. I am not here to asking for coding for me, but for help. I thought it will be helpful if I posted some code. Sorry about that if I made you feel so. I have posted an image regarding my issue on other posting. Please advise. Posted to Code (Forum) by troy0118 on 04-11-2007 Re: Sending values to an unopened form Thanks for your response, Patrick. I have specified my situation by providing an image: Can I use NewFromSolutionWithData method? I don't get it because the example of the method requires a saved xml file. In my case, the form will not be saved. While working on it, I will need to open another form for modification. Thanks so much. Posted to General (Forum) by troy0118 on 04-11-2007 Pass Parameter to an unopened form I am trying to pass a parameter from an opened form(service.xsn) to an unopened form (contract_details.xsn). During filling out the service form, a user will choose a contract and click on a button to open the contract form and running query to get the deatil of the contract. Here is what I have on the modify button in the service form. function ... Posted to Code (Forum) by troy0118 on 04-11-2007 Re: Sending values to an unopened form The article you suggested is similar to the NewFromSolutionWithData, doesn't it? It says using an xml file to test it. However, my question is a parameter in an opened form(no save) needed to be passed to an unopened form in a query field. Have been struggling on this issue. and need this to be done by next Friday. Please advice. Thanks very much. Posted to General (Forum) by troy0118 on 04-11-2007 Sending values to an unopened form My situation: 1. During filling out a form, a drop-down list box will populate some data. 2. Select a specific record from the drop-down list box. So far, it's esay. 3. After selecting the record, click on a button and send the value to another form and open it in order to run a query. This is tough. The point is how I can send the value to the ... Posted to General (Forum) by troy0118 on 04-10-2007 Page 2 of 4 (34 items) < Previous 1 2 3 4 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.