-
Hello,
Here is another way to do on Save,
If we write OnSaveRequest in code we can avoid saving the form if user click on Cancel using below code,
[InfoPathEventHandler(EventType = InfoPathEventType.OnSaveRequest)]
public void OnSaveRequest(SaveEvent e)
{
e.IsCancelled = e.PerformSaveOperation();
if(e.IsCancelled)
{
e.ReturnStatus = ...
-
Hello,
After taking the web service connection you have to write the below code to submit the form,
try
{
IXMLDOMDocument2 submitDocument = (IXMLDOMDocument2)GetDom("Connection Name", "Web Service Namespace");
setDocumentWithPIDom.selectSingleNode("XPath of xml node in your web service", ...
-
Hello,
If you have more than 1200 fields it will be hard to copy and past and rebind those fields. This is not easy to do without Format Painter for text box control. Is it working using Format Painter for other forms in your machine? Is this problem for only your form?
-
Hello,
Thank for your reply. Did you exceed the limitation of promoted list properties in your form? Can you give more detail on your error message?Hello,
Go through the below link to get more information on Xdocument,
http://msdn.microsoft.com/en-us/library/bb229879.aspx
-
Hello,
Go through the below link to get more information on Xdocument,
http://msdn.microsoft.com/en-us/library/bb229879.aspx
-
Hello,
You have to follow these steps to create the solution of InfoPath,
1. In Visual Studio, File -> New -> Project.
2. You have to choose language in left side of Project types in New Project window.
3. Select Visual C# to expand and select Office then you can see ‘InfoPath Form Template' in right side Templates.
4. Click on OK ...
-
Hello,
We don't have any option to protect user not able open the existing form in xml mode. If you want we can filter it out using [Me] as Anuma mentioned in the above.
If you want we can close the InfoPath form while opening we have to check the user name is equal to your form or any other role.
-
Hello,
You have to add on before change event for that field then you have to check the number of nodes available in that list. If the count is exceeds your requirement then you to give one alert message and eventObj.ReturnStatus = false;
Depends on your requirement you have to write the code and here is the sample,
function ...
-
Hello,
Is your data connection is primary connection or secondary connection? If your connection is secondary then only you will get that option.
In your case you might not have permission to access that access database from that machine. Check it once permission levels for Access database and add the permission to your log in user for that ...
-
Hello,
Can you check in your web.config file and the below statement is available,
<trust level="Full" originUrl="" />
What is the error you are getting? Can you give more details on your error message?