Quantcast
Channel: InfoPath Dev
Viewing all 10989 articles
Browse latest View live

last Modified User Name and Date/Time

$
0
0

Having issues with the code below as I am trying to identify and SAVE the last user who modified the form.  It would work, however when ever I open to VIEW the form, it will show current date and time; however, it is not saved. So make a long story short, I need to it to not populate when viewed and only update when it's saved.

 

 

 concat("Last Modified By : ", substring-after(DisplayName, " "), " ", substring-before(DisplayName, ","), " on ", substring(now(), 6, 2), "/", substring(now(), 9, 2), "/", substring(now(), 1, 4), " ", substring(now(), 12, 2) mod 12 + 12 * ((substring(now(), 12, 2) mod 12) = 0), ":", substring(now(), 15, 2), " ", substring("AMPM", 1 + 2 * (substring(now(), 12, 2) >= 12), 2))

 


MS InfoPath: The Simpliest Way To Print or Export A Single Form From A Multi-Form List

$
0
0

Currently I have a Multi-Form list with 16 different views and I want to print and send a single view to a forms library where it will start a workflow process.  Each time I print the is send "ALL" 16 views to the forms library. 

If I send the view directly to a printer or print as PDF, the document prints only the view desired.

What is the simpliest way to direct the print output to the forms library using a button with rules?

Question on troubleshooting browser forms

$
0
0

Hello everyone,

I just wanted to see if anyone could help me out by telling me where to start when troubleshooting browser form weird errors like the one below.

 

Sorry, something went wrong

An unexpected error has occurred.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 7458bb9c-0ac9-30b1-e90c-d633fd6d18d5

Date and Time: 9/23/2014 11:31:27 AM

 

I searched ULS logs on the sharepoint front ends and found these two entries, but they don't really help me much

 

Microsoft.Office.Server.Administration.StateServiceLocalizedException: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.  

 at Microsoft.Office.Server.Administration.StateManager.PeekState(StateKey key)   

 at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.HasStateInternal(HttpContext context, String editingSessionId)   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.IsDocumentAbandoned(EventLogStart eventLogStart)   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.LoadStateFromPostback()   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnInit(EventArgs e)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Office.Server.Administration.StateServiceLocalizedException: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.   

 at Microsoft.Office.Server.Administration.StateManager.PeekState(StateKey key)   

 at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.HasStateInternal(HttpContext context, String editingSessionId)   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.IsDocumentAbandoned(EventLogStart eventLogStart)   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.LoadStateFromPostback()   

 at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnInit(EventArgs e)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Control.InitRecursive(Control namingContainer)   

 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

 at System.Web.UI.Page.HandleError(Exception e)   

 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

 at System.Web.UI.Page.ProcessRequest()   

 at System.Web.UI.Page.ProcessRequest(HttpContext context)   

 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   

 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Blank Data Fields When Form Opens

$
0
0
I have an IP 2010 form that queries a SP 2010 list. I'm using a secondary data source, one query field and a button to query the list. When the form opens, all the list items appear. How do I get the list items to not be seen when the form opens? Jef

Dynamic Submission to Subfolders in Document Library

$
0
0
I'm trying to use a browser-enabled InfoPath form to dynamically submit to a subfolder in a document library based on a field within the form. Essentially, I want the form to submit to a subfolder by matching the "Name" field in the form with a subfolder in the document library. Is there a way to do this?

how do I take common findings from my inspection checklist and export it to either sharepoint or another form?

$
0
0

I have created an inspection checklist where I would like to take the findings found on each inspection and exported them to another form or shareport list to track the common findings of each month. How do I do that?

 Any help is very much appreciated

Sonia

Infopath 2010_Multichoice box_store hyperlinks_limit 4??

$
0
0
hello, I have a sharepoint list with a customized infopath 2010 form that contains a multichoice selection control. This control is fed from another sharepoint list containing hyperlinks and a displayname which displays in the control. the user chooses from the list and a rule runs: condition: value is present set a field's value:(storelinks, a text field) = substring-after(eval(eval(., 'concat(., xdXDocument:GetDOM("characters")/characters/@crlf)'), ".."), ";") the part xdXDocument:GetDOM("characters")/characters/@crlf) adds a carriage return in the stored field so the hyperlinks will show up correctly. this storelinks field is displayed via a calculated field on a form that appears after submission of the first form, and is the basis for the body of an email that is sent when a send email button on this second form is clicked. it all works terrific! EXCEPT, if I try to pick more than 4 selections in the multichoice control, I get an error when I try to submit the form after choosing more than 4: "The form cannot be submitted. One or more fields have invalid values and cannot be submitted to the list. Invalid URL value. A URL field contains invalid data. Please check the value and try again. Correlation ID:d853783c-b012-458b-abe0-832eda3db788" I have verified that all the links work, and as long as I only pick 4 it doesn't matter which 4, they work and display. is there a limit?

Code based INFOPATH 2013 getting deployed to 14 hive

$
0
0

Hi,

I am new to INFOPATH development

We are trying to deploy code based infopath 2013 thourgh central admin.

It is getting deployed perfectly, but its getting deployed to 14 Hive folder.

 How can we deploy it to 15 Hive folder structure ?

I have tried to deploy a sample/plane infopath form. Even that is getting deployed to 14 Hive


Schema validation found non-datatype errors.

$
0
0

After publishing an updated template, I now cannot access 3 infopath forms and getting the error in subject.  Does anyone have a suggestion on how to open these forms?  I have tried to open in browser, publish an older template, and using INFOPATH with no luck.  The error is associated with Digital Signatures; however, I have the option "Not to update existing forms" selected.  Any help would be greatly appreciated.  Thank you.

OnAfterChange event rules causing infinite loop error.

$
0
0
An error occurred in the form's rules or code. The number of rule actions or the number of calls to the OnAfterChange event for a single update in the data exceeded the maximum limit. The rules or code may be causing an infinite loop. To prevent this, ensure that the rule action or event handler does not update the data which causes the same rule action or event handler to execute. I'm trying to use the Batch update method and a math problem to ensure that I have sequential & non-duplicated values as steps. Should I split rules out into other fields or should the three they're attached to be sufficient. The issue is ONLY with the "Add container" section, and is related to the renumberGroup and its contents. Everything else is submitting (New or Update batch methods) but I keep getting that rule when it needs to renumber... (Form loosely based on http://www.infopathdev.com/forums/t/26246.aspx for the loop triggers, which I clearly don't understand.) This will be a browser form. Thanks in advance!

The form cannot be submitted because of an error

$
0
0

I receive the following error when a list form is submitted (InfoPath 2010):

 The form cannot be submitted because of an error

Click OK to resume filling out the form.  You may want to check your form data for errors.

Error Details:

The form cannot be submitted.
Invalid file name.

The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file.

A
n entry has been added to the Windows event log of the server.

Log ID:5567

Correlation ID:b7612727-1706-462b-a60a-b50982e6c262

 

I've verified all the data is correct.   When I reverted back to the Sharepoint default form there are no issues and the submission is successful.  As soon as I customize any part of the form in InfoPath it seems to become corrupted. 

 

Any assistance in pointing me in the right direction is appreciated.

 

 

Can I requery SharePoint List when email xml form opens?

$
0
0

I am hoping that there is an easy solution to my challenge. I have a Change Request form.

At a certain point of completting an InfoPath Form, a number of checkboxes are selected to send the form via email for approval.

Not all checkboxes need be selected and there is no hierarchical order - General Manager, Quality Asurance, Vice Present etc.

Not all Changes have to go through the General Manger, so there is no way the form knows who to send it for approval first, save the fact that as  rules as it steps down, it looks for each checkbox is true and then from the Data Connections sends out that unique email to that approver. Email contains the form data, and would show all elected approvers.

 Approver OK's the change and submits to server by selecting another checkbox, which date stamps and uses the User() as the signature.

Next Approver, gets same email and original attachement and OK's, and because the form can over write, does so, and deletes the check of the previous approver and susequent information.

Can I - on load of the attachment, get the email xml data of the form, requery the Sharpoint list to fill in any previous fields so that when submitted doesn't over right these as being empty and fill sonly those for that approver?

Got to be a way to allow 8 Mangers/Approvers if necessary to approve an Engineering Change without the need to step by step email, when it is hard to decide who goes first and then who follows.

Ta.

Conditional format based on mutiple conditions on repeating table

$
0
0

I am going crazy here, I am newbie,

I am using the condition below: 

not((:Heart_Rate = 60 and (Stage= 1)) and ((Heart_Rate= 100 and (Stage= 2))))

I am trying to show a text box  based on a value of  heart rate when person is resting(Stage=1) and Exercising (Stage=2)

However this expression shows works vice versa i.e. when

(Heart_Rate=100 and Stage=1) and (Heart_Rate=60 when stage=2)

Also

(Heart_Rate=60 and Stage=1) and (Heart_Rate=100 when stage=2)

How do I stop the second condition from happening, and tmake sure the first two conditions are first applied combined then AND the combined 2 conditions?

I hope I am making sense.

Infopath sorting A - Z

$
0
0

Dear all

I am having a problem with a form that populates names from a SQL data source. The problem is the names in the list are sorted totally randomly, this would not be a problem if they were also not jumbled up every time the form is reloaded.

 Please see the pictures below for clarity 

 

 The names do match up with the surnames so I have that going for me. But the trouble is the drop down choices on the right are supposed to align with the names. They do remain in place but again the names change place.

 What I have tried so far.

1. Sorting A-Z via surname in the Data connection

 

2. Changing the way InfoPath sends confirmation as an attachment rather than a live view.

 

Any suggestions would be greatly appreciated.

Thanks 

How do I dynamically construct a batch statement and submit it to updatelistitem without using managed code?

$
0
0

I have a browser-enabled form written with Infopath 2007.  I am unable to use managed code.

I would like to create a new Sharepoint 2007 list item using the updatelistitems() webservice. I can do this if I create a CAML template and use the template to create a "receive" secondary data connection.  The newly created data connection is then used as the update parameter when accessing the updatelistitems() webservice in the "submit" data connection.

However, I would like the user to be able to provide some of the new data using a drop-down list box.  Unfortunately, I can't figure out how to include the selected item in the dropdown box in the update submission.  I tried dynamically constructing a batch statement, putting it in a text box, and using this as the update CAML XML, but I get a message indicating that there was an error in the update.


How do I dynamically construct a batch statement and submit it to updatelistitem without using managed code?


Thanks!


Form won't submit to SharePoint 2010 library through browser

$
0
0

Hi,

I have made an infopath form which has several approval steps and with each step it updates in a SharePoint library.

The form will function from start to finish fine when I allow it to be opened in infopath.

If I force the form to only open via the browser in SharePoint, it will submit fine on initial creation, after this whenever you hit submit, it will give the standard success message, but no fields would be updated. if I hit save and and then submit it seems to update them though.

To form uses no custom code but lots of rules.

There are 3 data connections
a Main submit connection for initial creation of form
a request ID connection to get the current document ID
a second submit connection to use the current documentID to update the current form after the initial submission, I have rules set to only use this connection if the document is an existing form. Its set to allow overwrite of existing documents.

Can anyone give any advice on why it will work fine if opened in Infopath but not the browser?

Thanks

 

Missing Programmability Components

$
0
0
I get the attached message when attempting to launch the code editor.
I have installed VS Express 2012 for Desktop
I did not see a separate installation for Visual Studio C# support
I have installed VSTA 2012
How can I get this feature to work? Thanks for reading.

Options for extracting repeating section data out of a Microsoft SharePoint Form Library

$
0
0

What are the options for extracing repeating section data out of a Microsoft SharePoint Form Library and then displaying that line item data neatly (exportable to Access/Excel) for analysis?

SaveToSharepoint command to save multiple attachments in one form.

$
0
0

 Hey Everyone,

   I have a form with an attachment on it utilizing the SaveToSharepoint command. Works great, but I now need to load multiple attachments to the same directory at one time.

I have researched some programmatic ways to do so but I would prefer to use qRules when possible. Is there a way to do exactly that?  Any suggestions are welcome.  

 

Sharepoint list columns don't appear in Infopath

$
0
0

I'm new to Infopath forms creation...

I have a form I created to display list columns in a better, more user friendly format than the out of the box form provided in SharePoint 2010.  It works fine except when I recently went to add a field to the form in InfoPath, it doesn't appear in the Fields list.  The field is a Choice field called "group".  There are choice fields in the form that appear in the list.  How can I make "group" show up in the list?  Thanks

 

Viewing all 10989 articles
Browse latest View live