Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically saving and uploading forms to Sharepoint 1

Status
Not open for further replies.

BajanPOET

Programmer
Jul 12, 2002
194
BB
This is not exactly a Sharepoint question, but here goes....

I have created a couple Infopath forms and would like when the user enters information to have the forms saved and uploaded to the Sharepoint server automatically. I thought the best way would be to put a Save button at the bottom of the forms that would automatically save a copy of the xml file to a shared location as well as upload it to a document library.

I am fairly new to JScript and I would like some help in developing the algorithm to do this.

RG

GOD is in charge, though men may say, "Not so!
 
Your best method would be to use the built in submit button.

Tools--Submitting Forms

Choose Submit to Document library, click add, follow the promts.

Also if you want to you can create a command button and place it were you want it and bind it to you submit rule

GL

When frustrated remember, in the computer world there is almost always a backdoor.
 
That works, but I want to have the filename automatically generated with two things 1. a number that increments so that the filename will always be unique and 2. The current date and username, all appended onto a suffix (eg a filename could be OTC.rgibson1 or OTC_rg_2006.03.01).

This will allow for unique filenames, because Infopath produces an error if two filenames are created with the same name and overwrites are not permitted.

GOD is in charge, though men may say, "Not so!
 
When using the submit button you can make the file name be a number of different fileds thus making it different.
When you click the add button to create the list to the sharepoint libary the second filed with be the files name use the fx button to put in a forumla like

concat(Field1, Filed2, now())



When frustrated remember, in the computer world there is almost always a backdoor.
 
<b><lightbulb just went on!> Oooooooh,I get it!</b>

I was trying the concat() function, but I placed it as the filename and not as a function.

Thanks a million!


One more quick question. How do I get the logged in user's name, department and job function to appear automatically in their required places in a new form so that they won't have to be filled in?

GOD is in charge, though men may say, "Not so!
 
For that you would have to use Digital Signatures.

Helpfull links

I find it easier just to have them fill it in.

When frustrated remember, in the computer world there is almost always a backdoor.
 
So there is no way to harness the fact that a user's logged in to display information about them?

GOD is in charge, though men may say, "Not so!
 
Yes if you use Digital Signatures.

When frustrated remember, in the computer world there is almost always a backdoor.
 
ok, thanks!


GOD is in charge, though men may say, "Not so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top