Button to Save As <Field Entry>

P

PlehDeen

<Below> was submitted by Martin back in '04 but he didn't get any
information. I am trying to do the same thing...can anyone help? I am
very novice when it come to the coding part of the button. Thanks guys
(and gals)!

"Hi guys,
I have an Infopath Form linking to a Sharepoint Library. Everything
works
out fine.

What I would like to add is:
Currently, Users have to click on Save and then type in the name of the

document. Is it possible to fill this field automatically with the
Value of
a field on the Infopath Form? Meaning, if I type in "Example" into the
relevant Text Bos and hit save I will get the the Save as Dialog and as
Name
the value "Example".

Thanks for your help,
Martin"
 
S

samir.mistry

thisXDocument.UI.SetSaveAsDialogLocation(dirPath);
thisXDocument.UI.SetSaveAsDialogFileName(fileName);
e.IsCancelled = e.PerformSaveOperation();
e.ReturnStatus = true;

Regards
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top