-
Set a default value on each box and set it to the corresponding node from the secondary data connection, but filter each according to the selection in the dropdown. The statement is like this:
"ClockIn(SPList) where BusRoute(SPList) is equal to BusRoute(IPForm)"
- You click the fx button next to the default value field for the ...
-
This has probably been answered in some form on this forum, but I have a specific method in mind.
I have a dropdown box that gets its data from a sharepoint list. For example it pulls a list of bus routes, and the user selects one. Below that are a series of text boxes for information such as Clock In, Clock Out, Depart, etc. All of this ...
-
Once I saw the form was getting populated I put back in my old code to get the parameter, but it was still filling the form with "test" text. So I found how to clear the infopath cache with the command line: infopath.exe /cache clearall
Then I tried the command line pass parameter again, and it worked!
Looks like I was cached the ...
-
Just so you know, you shouldn't have to be at full trust to run this code. Here's a thread with more info.
-
Figure out the error code. I had my form set at domain trust. I set it to Full Trust and the error went away. And the Form Field did get populated with the test text.
-
When I try that method I get this error below.
System.Security.SecurityException
Request failed.
at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)
at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()
at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()
at ...
-
You can give variable 'biz' a temporary value and preview your form to be sure the value is being set by your code. So instead of:
Dim biz As String = e.InputParameters("biz")
You could say:
Dim biz As String = "test"
And preview your form. Does your field get populated?
-
It's very easy to do by using conditional rules on Form Open without code. Set your rules in Tools > Form Options > Open and Save > Rules. Switch view according to the current user based off profile info or some other metadata in the form. Here are 2 of my blog posts that give 2 ways of determining how to switch the ...
-
Hilary thanks for the response.
I followed those steps and still when I use the command line to send the parameters to the form it comes back empty in the field. Is there something directly on the field I need to do? I copied and pasted the XPath as you explained.
This is my Entire Form Code:
Imports ...
-
Hi,
This might have asked several times in this forum but i didn't find the solution. I have a task in infopath which is having 2 views, one is user view who creates the purchase requisition and the other is manager view who approves the form. Whenever the user login to the portal and click the ...