-
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 = ...
-
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
-
Hello Liorlankari,
If I understand your question correctly you want to be able to give a different message in the pop-up window. You can do that by giving whichever string you want as message in your alert window. So code will look like this
thisXDocument.UI.Alert(''String you want seen on the Alert window'');
Shanthi
InfoPathDev India
-
You can definitely open an instance of an InfoPath solution published to Sharepoint. The link for that will behttp://<your sharepoint site>/<your form library name>/forms/template.xsn
As far as i know you cannot send a parameter as an input.
Shanthi
InfoPathDev India
-
I don't fully understand by what you mean by ''move''. Are you trying to overwrite during submit? Can you explain the issue with more detail?
Shanthi
InfoPathDev India
-
You can do this by having conditional formatting set based on a
secondary DOM field value and set that field value as you want it in the onLoad function.
There is also the option to set conditional formatting directly and mention that if the field contains some value then make it read only -> but remember if you do this the field will become ...
-
Can you explain the problem more fully -> I tried creating a solution as mentioned above and it worked for me. I was able to sum values both ot the inner repeating group level and the outer repeating group level.
Shanthi
InfoPathDev India
-
It looks like what you want to do is save the calculated values into the main xml file. The best way to do this would be to show the field as a read only text box and set the default value as the sum or whichever math function you want to do. You can also use Rules to set the field value and that should also work.
Does this ...
-
Hello
The issue seen will be fixed by making your solution a full trust solution. How to set the solution as a fully trusted solution is athttp://www.infopathdev.com/forums/topic.asp?TOPIC_ID=225
Shanthi
InfoPathDev India