-
I would suggest attaching your Visual Studio debugger to the IIS process (most likely w3svc.exe), setting a breakpoint on the opening brace of this method, and observing the values that way, because I'm stumped as to why this is happening. If StartDate really is that 19 character-long string, then Substring() should work just ...
-
Your formula doesn't really make sense the way it is. How's this?
xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM("DSE Security Levels")/dfs:myFields/dfs:dataFields/dfs:DSE_Security_Levels[@Security_Level = 1], 'concat(@User_Name,";")'), "..")
-
The error you posted a few posts up:
"System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string."
Suggests that the string (StartDate) is an empty string. How did you verify that the string is actually of length 19? Could you post some more of your web service's code, starting at the ...
-
Did you do as I suggested twice so far and turn off the option to query the data source when the form is opened? If not, it will still be querying the web service with an empty string as a parameter, and that will cause that error if you try to use Substring() on it.
-
Just position your cursor where userName() is currently located, delete the text userName() and use the Insert Field... dialog to insert the DisplayName field into the formula. That should do the job.
-
The date picker's format doesn't matter. If you're using a date picker, then the underlying data is most likely in the right format.
Did you do as I suggested and turn off the "Query when form is opened" option for that data connection? I think that's the cause of the problem.
-
This should do the trick:
Dim sds As IXMLDOMDocument2 = CType(thisXDocument.GetDOM("TBL_EMPLOYEE"), IXMLDOMDocument2)
sds.setProperty("SelectionNamespaces", "xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" ...
-
The first problem is that you have the data connection set to query when the form is opened which means it is being queried with empty data. You should turn that option off.
If you are in fact sending the date in the format m/d/yyyy, that is another problem. SOAP requires that dates be sent as XML, which means yyyy-mm-dd. You might be ...
-
What you're describing isn't possible.
I would suggest using a form design that uses a locked repeating section instead of a hardcoded layout and questions. Then you'd only need to set conditional formatting on a few checkboxes.
-
Yes. Naturally you will need to adjust it to the actual schema of your form.