-
There is a property to check: thisXDocument.IsNew
-
I think I answered this question (vaguely enough) in another of your posts wherein I mentioned that you will need to create the nodes in code, and then insert of append them to the proper location.
There should be plenty of tutorials online on how to do create an XmlNode and insert it into an existing DOM. Visual Studio help will probably also be ...
-
Hi Greg,
I've tried to append nodes to the DOM as you suggest however i continue to get this error:
''Schema validation found non-data type errors''
When i do.. here is the code i use:
string temp = createChildNode(pair);
XmlReader reader = XmlReader.Create(new StringReader(temp));
...
-
ExecuteAction is flaky at best. I say this because there are too many restrictions on when and where it can be used.
I you want to insert nodes into your DOM from code, just do it directly by creating the nodes in code, and then appending, or inserting them where they should go.
If you need help creating and adding nodes to a DOM, Visual Studio ...
-
Now I am getting this error
The specified bstrAction value for the View.ExecuteAction call is not applicable for the current selection
when i use executeAction.. here is the code:
formControl1.XmlForm.CurrentView.ExecuteAction(Microsoft.Office.InfoPath.ActionType.XOptionalInsert, Constants.IMAGES_XMLTOEDIT);
where Images_XmlToEdit = Images_128
-
Hi,
I found Matt's great jscript example for setting the SelectionNamespaces property for the secondary datasource DOM:
XDocument.GetDOM( ''Name of your secondary data source'' ).setProperty( ''SelectionNamespaces'' , 'xmlns:ns1=''Text obtained from Figure 2'' xmlns:ns2=''Another namespace''' );
Is there an equivalent method to accomplish this ...
-
Hello All,
New to infopath and using infopath 2007. I am extremely frustrated right now to lack of support online for this product but can see that it's valuable once I can get past these growing pains. I hope someone can help, i've been looking at this same problem for DAYS and can't get it to work.
So i have an infopath form, there is a ...
-
Thank you so much for the quick reply Patrick. Yes, I am looking for the database sample called ''pubs'' for sql 2005. I will use that as the backend database of my small infopath application. I spent a chunk of time to search for it, I could not find it. Please help or give me some hints!!
Thanks aganin.
-
Your welcome. Just keep in mind you propably have to change this setting later on every users machine BUT...
Here is a little help:
open again the .NET Framework 2.0 Configuration
Click once on My Computer. In the right panel click on Create Deploymnet Package. Select a location to where you want to save the Windows Installer Package and name it ...
-
I use a submit button to submit a new form to a sharepoint library. However, when the form is subsequently accessed (for updates), I want to disable or hide the submit button... the user needs to click Save, instead.
During form opening, how do I recognize that the user is editing an existing document vs creating a new document in order to ...