Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Auto name form and save to network

Avatar

Avatar
Validate 25
Level 2
sparrowce
Level 2

Like

1 like

Total Posts

142 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 1
View profile

Avatar
Validate 25
Level 2
sparrowce
Level 2

Like

1 like

Total Posts

142 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 1
View profile
sparrowce
Level 2

17-07-2013

Any way to add custom file name to app.execMenuItem("SaveAs");?  When it saves, it does exactly what I'm needing - open windows explorer so users can drill down to the proper destination, which will be varied.  However, am having trouble finding how to name the file based on 3 pieces of form data. 

Example:

ContractNo_ProjectNo_ChangeNo.pdf

Any assistance appreciated, thank you!

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
chrisb29762052
Level 1

Likes

0 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
chrisb29762052
Level 1

Likes

0 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile
chrisb29762052
Level 1

26-06-2015

I am using ES4 version 11

I read your article and entered the following script statement it in a button :

DSCRReport.Page_1_DSCReport.Button3::click - (JavaScript, client)

var LCB_SaveAs = app.trustedFunction(function(doc)

{

app.beginPriv();

var LCB_SaveAsTarget = SaveAsTarget;

doc.saveAs(LCB_SaveAsTarget);

app.endPriv();

});

Nothing happen when I attempt to activate the process and the console give me the following error message"

NotAllowedError: Security settings prevent access to this property or method.

App.trustedFunction:2:XFA:DSCRReport[0]:Page_1_DSCReport[0]:Button3[0]:click

I understood that this script was the work around to the security restriction. Is there something else that I should be doing. Or has it been made impossible to do.

I was hoping to use your recommended script to automate the format of the file name upon saving.

Thanks