-
You are correct that XDocument does not have any delete functionality.
My question is why you keep flopping around your myPathdelete variable? First you set it to a point to the node my:text, then you change it into an ActiveX Object, then you try to delete the ActiveX Object using a method that doesn't exist.
I think you were probably on the ...
-
I believe that if you are using a Full Trust forms that you should be able to have all the forms access the same .vbs file.
Greg Collins [InfoPath MVP]
-
Because you are doing a query, you are clearing out all the data that was stored previously under dsf:dataFields.
The best thing for you to do is to store a copy of the user name in code, and then have an OnAfterChange event handler for the @Login field, which will populate it from the variable when it gets recreated (via query or anything ...
-
Glad to help out!
Greg Collins [InfoPath MVP]
-
Glad to help out! And I'm happy you got it working!
Greg Collins [InfoPath MVP]
-
Great -- so just to clarify, you'll want to specify the new timeout this way:
XDocument.QueryAdapter.Timeout = 60; // or whatever length you want.
Greg Collins [InfoPath MVP]
-
Try this:
XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(@''c:\foo\form.xsn'');
You can also use Rules on a button to open a new form
Greg Collins [InfoPath MVP]
-
Okay, it looks like what you are looking for is XDocument.QueryAdapter, but this will only work if your main connection is a database or web service. If you have an XML file as your main data source, then the QueryAdapter will be null.
The DataAdapters is only for secondary data sources.
I hope this helps!
Greg Collins [InfoPath MVP]
-
At this point I will need you to provide more information about the forms and your intentions. I'll need this in order to understand what you are attempting to do and what is actually happening.
Greg Collins [InfoPath MVP]
-
When you used the word ''template'' did you mean that? Or did you mean the live form? There is no communication between templates (i.e. InfoPath Designer), only between forms (i.e. InfoPath Editor).
As for the editor, you have an XDocuments collection off of the Application object. You can get to all open forms and pass data between them.
If you ...