Use our Google Custom Search for best site search results.
Search
-
I tried it but I get this Error massege:
System.Runtime.InteropServices.COMException
Invalid context for OM call.
What is the problem? Can I close a form in OnAfterChange event?
-
I have an InfoPath form (.NET infoPath project) that contain a field that contain OnAfterChange(DataDOMEvent e) event.
I this function I have a Confirm massege (In C#):
if (this.thisXDocument.UI.Confirm(''bla bla'', XdConfirmButtons.xdOKCancel) == XdConfirmChoice.xdCancel )
I want that click on Cancel will close the form!!!!
How to to it??
-
Thank you Greg. It's work!
-
I have an InfoPath form that contain a field that contain OnAfterChange(DataDOMEvent e) event.
In this event function i have this code (In C#):
string str=e.Source.nodeValue.Tostring();
this.thisXDocument.UI.Alert(str);
I previewed the form and try this test: I enter in the field the input ''test1'' and get the alert ''test1'', I change the ...
-
I have an InfoPath form that contain onSubmitRequest function (In .Net CodeForm- C#).
In the function I'm create an object of WebService (which is web reference in my .NET project) that get the form's values and enter them into database.
When I run my form as a preview form, It's all work well. But when I publish the form and run it I get this ...