-
I tried everything but I don't know what to do ...
-
You can add an OnBeforeChange event handler which checks the operation and then gives an error message if they are trying to delete the attachment.
Hope this helps!
Shanthi
InfoPathDev India
-
Just like there is Alert there is a Confirm to get a confirm dialog box -> thisXDocument.UI.Confirm. If you want a confirm window with Yes/No buttons, here is code that can help you out
if(XdConfirmChoice.xdNo == thisXDocument.UI.Confirm(string.Format(''Are you sure you want to delete?'' ), XdConfirmButtons.xdYesNo))
return;
Here if the user ...
-
Here is the jscript that would be used to create a new instance given a solution file. If you want to give an xml file instead of the solution file then call New instead of NewFromSolution.
var oApp = new ActiveXObject(''InfoPath.Application'');
//Open an InfoPath document from the published template
var oXDocumentCollection = ...
-
Ok Greg,
The only way i could solve it was to replace the text feild with a new field. Same settings as the deleted one but now it works. Thanks for the reply. I love this site. What happened a couple weeks ago, i couldnt get on.
-
I have an InfoPath form that sites on SharePoint form library
I have the URL to this form (the user can open an instance of the form by that link).
Let's say that this is the linkhttp://MyServer/MyForms/template.xml
I have an ASP/HTML page that contain button, click on this button should open me an instance of the form (by javascript).
What ...
-
No. I want a pop-up window which is not Alert (like confirm type). Becuase Alert window contain icon of yellow triangle which mean Error.
-
Ok ;) i will try with an example:
Dir Tree:
Root - test1
- test2
- test3
New form -> submitted to folder test1
Now when I edit this form I would like that, depending on a field in the form, that it is submitted in another folder (test2). this works fine ... but the problem is, that the original in test1 is still there ;)
thanks in ...
-
Hello Maggie,
Sorry for the late reply. Here is a brief explanation of the code.
SharepointListAdapter oSpla =
(SharepointListAdapter)thisXDocument.DataAdapters[''SharePoint Adapter''];
string sUrl = oSpla.SiteUrl;
This code is used to get the URL from where you want to get the data.
IXMLDOMDocument2 oDom ...
-
I would suggest using the Date picker control and having some onBeforeChange validator code.
Shanthi
InfoPathDev India