Wednesday, July 20, 2011

How to Automatically Generate a FileName of InfoPaht Form in InfoPath 2010

when you design a form or report in InfoPaht 2010. then you publish it the Form Library.

it runs good since you can submit it to the Form Library via Data Connection File.

However you can perform the second test, it always popup an error windows complaining that the file Name

already exists in the library.

you can fix this issue by modifying the Data Connections



then click on Fx button to Open the Expression Edit Windows


Type this file Name concat("MyCustomForm","_",now()) in Expression Editor












click on to close the Expression Editor and click through the next button to update the Data

Connections.

finally click on the publish Button to update the form in the Sharepoint site.

then you can test the form without out  Same File Name Existing Error.

No comments:

Post a Comment