-
Hi Ryan,
How about adding rules to your control panel buttons to switch the view and then print. The print will have to be done in code and, as Matt states, will require FT, but it's doable.
-
Hi Ryan,
One way to do this is to save the current time in a field when the submit button is pressed but just before you submit to the DB. When the user reopens the form and changes status to Completed/Close, create an OnAfterChange handler that compares current time to submitted time and displays the difference. This will require a little coding ...
-
Hi Mairen,
Do you mean multiple InfoPath forms or multiple views within one form? Both scenarios can be batch-submitted, but the latter is much simpler. Please let me know and I'll respond with some ideas.
-
Have you tried using rules and actions to do this:
1. Create a button for your double export (if you don't have one)
2. Add a rule to the button with a condition that checks ''The Expression'' where the right-hand side calls xdExtension:ExportViewAsMHT()
3. Set the action to switch to the new view
4. Add another rule that does the same thing and ...
-
Hi Karsten,
Chinhnc is right - you need to correct your code to do a submit. But, I have a bigger question: why se code at all for this? You can define rules on a button that submit and then close the form. That should be easier.
-
Hi Gsantosgo and welcome,
Be very careful when you modify the XSN's data source. Make sure that you don't a) change the name of nodes, b) change their structure, and c) add new nodes as optional. Otherwise, simple relink won't work for old forms as their schema won't be compatible.
-
Hi Bigcat,
Does the form do a SharePoint submit or are you using File->Save? Are there any other data connections in the form?
-
Hi Gaurs,
I replied to your other post regarding that issue. Please don't double post. I will delete double posts.
-
Hi Gaurs,
Probably has something to do with type of data since SQL datetime is different from the XML data type in InfoPath.
-
Hi Leon,
Have you searched the InfoPath SDK? Should be some JS samples in there that call Web services.