-
You can do it using something of this kind
Microsoft.Office.Interop.InfoPath.XDocument myDOM = myapp.XDocuments.NewFromSolution(''abc'');
and use myDom to set the values.
Shanthi
InfoPath Dev India
-
You will need to get the current day by calling GetDay and then break up today's date into its various components, subtract the appropriate number from the day component and set the date back using the all other components and the updated Day component. It should calculate the date correctly.
Did you try to run the code in debugger to see what ...
-
I was looking at Access recently and it has a same option as SQL identity column which is called Auto Number here. This can also be used.
Shanthi
InfoPath Dev India
-
hi andywt,
You will need to create an IXMLDomDocument2
Dim projectCategory As IXMLDOMDocument2 = e.XDocument.GetDOM(''Project Category'')
projectCategory.setProperty(''SelectionNamespaces'', ''Namespace'')
Here instead of ''NameSpace'' copy all of the namespaces like xmlns:xsi=''...'' from your secondary dom over to here. For details on the ...
-
Hello Sumeet,
What kind of a data connection did you take to the Web service? Was it a Submit data connection or a Recieve data connection. You do not have a dom available when you create a Submit data connection. This will be available only for Recieve data connections. So you can pull data and make changes using it only if you use Recieve data ...
-
Hello
There is one way to solve this issue. Instead of taking a submit connection to this function. Take a recieve data connection to it. Now you have the DOM of this web service connection available as a secondary DOM. On the button that you click to submit the data to the web service, add rules to set the various values in the secondary DOM ...
-
We collect monthly activity reports from 8 groups including project name, project leader, date, and status (can be several paragraphs long). We would like to be able to publish these reports via the web with multiple view capability (e.g., by group, by month, by project lead etc). Reports must be reviewed and approved by a group manager and senior ...
-
Thanks for the link. I'm still missing something (sorry to be so difficult) but the example in the book is:
id = CreateTask( _
thisXDocument.DOM.selectSingleNode(''/my:myFields/my:title'').text, _
thisXDocument.DOM.selectSingleNode(''/my:myFields/my:body'').xml)
which gets the Main document.
If you had a secondary document named ''secDoc'' with ...
-
Hi Guys,
I am new to infopath. I have a web service that returns a number as a string when called. I bound a text field control in infopath to this web service and then added a custom Submit button with Rules to the form that does nothing besides closing the form. When I run the form, I see the value of the text control being set but I am not ...
-
Thank you Agni, but my case is a little bit different
My infopath form connected to database and I do not want to save xml file at all.
Can I generate output stream from ASPX with content of the xml document inside,
the browser will understand ''xml'' and open infopath form on client side ?
Thanks
Eugene