Use our Google Custom Search for best site search results.
Search
-
Can I run the following javascript code from Managed Code? Some users are getting errors when trying to use userName = System.Environment.UserName;
var wshShell = new ActiveXObject("Wscript.Shell");
var wshEnv = wshShell.Environment("Process");
var userName = wshEnv.Item("UserName");
-
I am looking for some JScript code to catch error from Web Service when the input field is not found. Right now if is giving a default error message which is not very descriptive to the user.
-
I am getting the below error whan trying to access a field on my form.
'XDocument.DOM.selectSingleNode(...)'is null or not an object File:script'js
My namespace is set as...
XDocument.DOM.setProperty("SelectionNamespaces", ...
-
I understand about how to hide buttons to allow the Admin to copy form attribute to the Sharepoint List. The two forms then has one with the Data Connection to the Sharepoint List(Admin) and one has it without the Data Connection to the Sharepoint List(User)...correct?
But when a user emails the form to the Admin and ...
-
How does the below keep the Data Connection to the Sharepoint List from not running when the form opens? Doesn't the Data Connection automatically run when form opens?
We can add the rule in onLoad form using Tools -> Form Options -> Open and Save -> Rules. We have to add condition to when this rule should be executed.
I ...
-
I have an InfoPath Form that you uses a Web Service Data Connection to a Sharepoint List. But only the Admin users have access to the List so the form ask for credentials when a a user opens the form to fill it out. The Web Service is used only by the the Admins to copy the data from the form to a Sharepoint List using ...
-
I made the following corrections but I still get the same error. I deleted he Location column and re-added it so the right name is used. I was testing with using Rules for the submit option is why there were two sets of Submits.
The following error occurred:
InfoPath cannot submit the form.
An error occurred while ...
-
Yes it does. It is named "Submit"
-
I get the following error when I try to add a record to a Sharepoint List.
The SOAP response indicates that an error occurred on the server:
Server was unable to process request. ---> Object reference not set to an instance of an object.
File:script.js
Line:120
Line 120 is XDocument.DataAdapters["Submit"].Submit();
Does ...
-
The code falis on the line 98 so I do not know if the code you have listed is working.
ERROR
InfoPath cannot open the selected form because of an error in the form's code.
The following error occurred:
Expected ';'
File:script.js
Line:98
var listService As New WebList.Lists();
CODE for Line 98
var listService As New ...