Save the Document to the network drive by using the button action

I try to save a document to a network drive by using a button action. I'm using Acrobat 8 Pro. I have a script that records on the C: drive and it works fine.

Script folder level

var mySaveAs = app.trustedFunction (function (oDoc, cPath) {}

app.beginPriv ();

try {}

oDoc.saveAs (cPath);

} catch (e) {}

App.Alert ("error during save it");

}

app.endPriv ();

});

Document-level sCript

var this.path.replace = filePath (this.documentFileName, "");

var NouveauNomFichier = this.getField("Mlastname").valueAsString + "" + this.getField("Mfirstname").valueAsString + "PcDec.pdf";

mySaveAs (this, filePath + newFileName);

The IT Department would like to go to the H: drive. Can I make adjustments to this set of scripts, or should I start from the beginning.

I have limited experience with JavaScript.

You can use the following command instead of what you have:

filePath var = ' / h ';

var NouveauNomFichier = this.getField("Mlastname").valueAsString + "" + this.getField("Mfirstname").valueAsString + "PcDec.pdf";

mySaveAs (this, filePath + newFileName);

Tags: Acrobat

Similar Questions

  • I can't save my document in my external drive "my passport".

    I can't save my document in my external drive "my passport". This gives read-only access.

    You must change the privilege to write to the external drive.

  • Can I save a document to a flash drive and bring it into a store and print?

    Can I save a document to a flash drive and bring it into a store and print?  or my document still has to connect to the internet to print?

    Well Yes, the flash player works for me.  Just make sure that the images are in a format that store recognizes, such as jpg. Many shops (most?) don't recognize the psd format.

  • Add an Extension field to save the last Action of the agent and display this on email

    I am trying to add an extension field to a call to save the last Action Officer tapped on a call.  I do what we want to display (on e-mail alerts, for example) the last 'real' action taken a call, and we don't want to display the text of the generated system which is often recorded in the SOLUTION_DESC column.
    for example, e-mail sent displays like this:
    snip2.png
    I created the extension field and have obtained this update when the call is handled (details of the changes I made are below).


    The problem I have is that the email that is sent to the receiving a transferred call is the latest version of the data from the field to this topic.  It's as if the system did not write data in the database until the logic 'send e-mail' runs.  If I have question registration in SQL immediately after the postponement or the transfer of the call I can see the update is written to the field of the extension of the database, but there after send it an email.

    for example, I change a call and type something in the field of Actions and Solutions.  I transfer the call to a group.  The email that is sent to the groups has the extension defined field to display on this, but it does not display the last typed Action in, it displays the previous Action (there's a).

    Any suggestions on how to make sure that e-mail displays the last Action?

    The changes I've done so far:
    In Custom_InCallDetails.js
    Added the custom function:
    function setLastUserActionText() {}
    var da = document.all;
    var sd = da. SOLUTION_DESC_HTML_EDITOR. Area;
    If ((da. TEMPLATE_IND. Value! = 1) & & (sd! = ") & &! (TF (da. TakeOver.value)))
    {
    var DB = FindNavWindow (). document.all.DB;
    var localRS;
    var OfficerName;
    var CurrentDate = new Date();
    DB. ClearParam();
    DB. AddParam ("REF", da.) OFFICER_REF.value);
    localRS = DB. GetRecordSet ("Get agent Name");
    If (localRS == null | localRS.recordCount == 0)
    OfficerName = '(unknown) ';
    on the other
    OfficerName = (localRS("FULL_NAME").value);
    DB. ClearParam();
    DB. AddParam ("CALL_NUMBER", da.) CALL_NUMBER.value);
    DB. AddParam ("SOLUTION_DESC", (sd + "\r\n (in" + OfficerName + "on" + CurrentDate.toLocaleString () + "" ")" ""));
    localRS = DB. GetRecordSet ("CustomGetLastUserActionText");
    If (localRS == null | localRS.recordCount == 0)
    {
    localRS = DB. GetRecordSet ("CustomAddLastUserActionText");
    localRS = DB. GetRecordSet ("CustomUpdateExtensionDataAllocation");
    }
    on the other
    localRS = DB. GetRecordSet ("CustomSetLastUserActionText");
    }
    }

    Update OnSubmit function call:
    function OnSubmit (s)
    {

    p.Submitted = false;
    Returns false;
    }
    Start personalization
    setLastUserActionText();
    Customization of the end

    SetSubmitValues();

    }

    In infra_custom.sql
    ! CustomUpdateExtensionDataAllocation
    CustomUpdateExtensionDataAllocation
    UPDATE SU_NUMBER_ALLOC SET NUMBER_ALLOC = (SELECT MAX (REF) + 1 SU_EXTENSION_DATA) WHERE TABLE_ALLOC = 'SU_EXTENSION_DATA. '

    ! CustomGetLastUserActionText
    ! 500219 is the Ref of the field "last user action text.
    CustomGetLastUserActionText
    SELECT REF FROM SU_EXTENSION_DATA WHERE REF_NO =: nCALL_NUMBER AND EXTENSION_FIELD_REF = 500219

    ! CustomAddLastUserActionText
    CustomAddLastUserActionText
    INSERT INTO SU_EXTENSION_DATA
    (REF,
    REF_NO,
    EXTENSION_FIELD_REF,
    VALUE_STRING,
    CORE_ENTITY)
    SELECT
    (SELECT MAX (REF) + 1 OF SU_EXTENSION_DATA) + ROW_NUMBER () OVER (ORDER BY: nCALL_NUMBER).
    : nCALL_NUMBER,.
    500219,
    : sSOLUTION_DESC,.
    1

    ! CustomSetLastUserActionText
    CustomSetLastUserActionText
    UPDATE SU_EXTENSION_DATA SET = VALUE_STRING: sSOLUTION_DESC WHERE REF_NO =: nCALL_NUMBER AND EXTENSION_FIELD_REF = 500219

    Why not add the extension field in the call screen. Then update the field on the screen in onsubmit. In this way, it will update the value and be available to the e-mail address.

  • I can't find the button 'action' to have my photos deleted from my iphone after import is complete.

    I can't find the button 'action' to have my photos deleted from my iphone after import is complete.

    When you import the and with what application?

    If you use the new pictures check box in the import window, as shown in this screenshot:

    If you're still using iPhoto then is that you say not to remove from the iPhone until you start the import process.  This window will open so you can choose whether or not to remove it from the iPhone:

    Finally, if you use Capture picture to import your photos the box will be in the lower left corner of the window:

  • OAF Page expand to change the button action

    Hello

    We have a standard page of the OPS in iProcurement, where there are a standard change request button, which redirects to another standard page. We want to change the button action to call another custom OAF page. Please let me know how to do the same.

    Attached screenshot for reference

    Follow the steps below to create a button through customization.

    1. click on customize page where you want to create an element.

    2. find the area where you want to create

    3. click on Create icon, which opens a new window.

    4. Select the style of the item as button and give the values for the element.

    Browse link below

    Oracle concepts for you: Add a button to a Page of the OFA

    Also paste the error if you get none after following steps above.

    BR, FLS

  • invoke the button action or a java script page

    Hello

    I wanted to call a java script button action. I created a button associated with a request. The button action should redirect to an existing page. I did the hidden button. I would like to call a java script function button. Can someone point me to a thread with the syntax which handles this.

    Or is it possible to directly call a function of java script to a page?

    Thank you

    -vkant

    Vkant

    In a javascript function, you can set the property from 'rental' of the window object to point to the APEX page as in the example below. How you call this function from the Applet javascript I don't know.

    function goToPage(pageno) {
    var str="f?p=101:" + pageno + ":&SESSION."  // 101 is the APEX application id
    window.location=str;
    }
    

    See here for APEX URL syntax http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref185

    CITY

  • The button action to open PDF attachments

    Hello

    I have an interactive form and want to create a button that will open a PDF file that has been added as an attachment. I know I could host this attached PDF somewhere and then use a link or something but I want the user to be able to use this PDF file locally. So I'm NOT looking for a way to add attachments, I'm looking for a way to OPEN attachments existing PDF without the user to open the attachments Panel.

    I can't find a way to do this and I think I have to use a Javascript action to do this.

    any help would be much appreciated

    Thank you

    In fact, no script is needed. There is a built-in way to do.

    Add your button object or a link and then add an action "go to a page view". When the floating window with the 'Set' button will appear, just to double-click the attached file and navigate to the location you want to link to, and then press the Set"" button. Done everything!

  • How to designate the table bean in the button action

    Hello

    I'm new to adf, but having good knowledge in the OPS.

    In OAF I used to refer to a component using
    Tbl OATableBean = (OATableBean) webBean.findChildRecursive ('< element id >');

    now I can manage my table object tbl using.

    As above how to manage a table in the ADF.

    Thank you very much in advance,
    Sundar

    >
    public CommandButton cb1; is essential to give only the id of the component here

    now the cb1's referring my button on the right?
    >
    If I understand you, not the bean name not necessarily be equal to the button Id.

    the button can be something like this

    
    

    and bind you to a property of the bean like this.

    public class MyClass {
        private RichCommandButton myFirstCommandButton;
    
        public MyClass() {
        }
    
        public void setMyFirstCommandButton(RichCommandButton myFirstCommandButton) {
            this.myFirstCommandButton = myFirstCommandButton;
        }
    
        public RichCommandButton getMyFirstCommandButton() {
            return myFirstCommandButton;
        }
    }
    

    Note that the command button that has id = cb1 is bound to the myFirstCommandButton instance variable in the bean.

  • Drag the conflict of action dated the button action in Captivate 5.5

    My project involves a loop. After viewing some content on a slide with audio the user returns automatically, via on exit jump to slide (#5) that contains a table of widget buttons.  Slide #5, they can select a button widget and travel to another slide of their choice.

    No problem.

    I also want to put a classic transparent ('Return') button on the page that allows them to click and jump to the slide #5 if they want to get out of the jam on the content before everything has played and they are automatically skipped to slide #5.

    Problem is that the action of the button seems to be usurping the Jump out to the action of the kind #5 slide when slide reading over it crashes just instead of jump to the slide #5 - he's waiting for a click of the button. I tried to use a button widget instead of conventional, but the widget does not load #5 the top slide, so table of buttons (that display correctly when the slide is first played) recharge.

    I hope that someone here can help me with a workaround. All your ideas are welcome. You can see the project to http://goo.gl/ATx2c , this version does not contain the buttons of interruption I add.

    Thank you

    Lilybiri, you gave me the answer - indirectly.

    Use click box instead of the transparent button. Click on give box you a command "pause project until user clicks on. If you disable this function, the button is not incompatible with the action on the exit of the slide.

    Cool!

    As far as the widget on the slide table 5 buttons are concerned, I think the fact that they don't reload when you return, there is probably an artifact of the code of the key. Or something. 'Undocumented feature' ;-)

    Thanks Lilybiri.

  • load or unload the button action

    Hello

    I wrote this code that charge and discharge object to the screen. But having a thin case. When I press on the CityButton, it loads the object... I don't want anything to be selected until the CityButton is pressed again or the villageButton that causes the responsible city object to remove.

    Look at the code below to better understand.

    Thank you

    / * //this is the events of button for each name * /.
    cityButton.addEventListener (MouseEvent.CLICK, clickHandler);
    villageButton.addEventListener (MouseEvent.CLICK, clickHandler2);

    / * This is the Boolean value that determines if all is true or false if obj responsible
    also class creat of the object.
    var isThere:Boolean = false;
    var isThere2:Boolean = false;
    var mcHandle:MovieClip = new dahelpbox();
    var mcHandle2:MovieClip = new dahelpbox2();

    Place the eli text box
    mcHandle.x = 100;
    mcHandle.y = 100;
    mcHandle2.x = 100;
    mcHandle2.y = 100;

    / * //this are the requirements to load or unload the object depending on whether it
    meet the requirements for charge.*.
    function clickHandler(e:MouseEvent):void {}
    If (! isThere) {}
    addChild (mcHandle);
    isThere =! isThere;
    } else {}
    removeChild (mcHandle);
    isThere =! isThere;
    }
    }
    function clickHandler2(e:MouseEvent):void {}
    If (! isThere2) {}
    addChild (mcHandle2);
    isThere2 =! isThere2;
    } else {}
    removeChild (mcHandle2);
    isThere2 =! isThere2;
    }
    }

    If all locations are on the corresponding buttons, try:

    var dobj: *;
    var i: uint;
    var btnA:Array = [cityButton, villageButton, townButton, hamletButton, etc.];
    create the classes dahelpbox0, dahelpbox1, dahelpbox2 etc., corresponding to the buttons above

    -nothing below should be changed-

    for (i = 0; i<>
    btnA [i] .ivar = i.toString ();
    btnA [i] .addedBool = false;
    btnA [i] .addEventListener (MouseEvent.CLICK, clickHandler);
    btnA [i] .buttonMode = true;
    }

    function clickHandler(e:MouseEvent) {}
    {if(!e.currentTarget.addedBool)}
    var classRef: Class = Class (getDefinitionByName ("dahelpbox" + e.currentTarget.ivar));
    dobj = new classRef();
    dobj.x is dobj.y = 100;.
    e.currentTarget.addChild (dobj);
    removeListenersF (Number (e.currentTarget.ivar), true);
    } else {}
    e.currentTarget.removeChild (dobj);
    removeListenersF (Number (e.currentTarget.ivar), false);
    }
    e.currentTarget.addedBool =! e.currentTarget.addedBool;
    }

    function removeListenersF (ivar:Number, bool:Boolean) {}
    for (i = 0; i<>
    {if(i!=Ivar)}
    {if (bool)}
    btnA [i] .removeEventListener (MouseEvent.CLICK, clickHandler);
    } else {}
    btnA [i] .addEventListener (MouseEvent.CLICK, clickHandler);
    }
    }
    }
    }

  • How can I test the Boolean State of the button action?

    Hello
    in as2.0, how can I test the Boolean value if a key has been pressed or not?

    I have a function simple im trying to work with like that...

    button_btn.onRelease = function (success: Boolean) {}
    If (success) {}
    trace ("we pressed the button value is true");
    }
    else {}
    trace ("value is false");
    }
    };

    working with Boolean values in this way is new to me - pointers will do - thanks!

    I got it! Here's a quick run down in a table format, hehe

    cry [0]...
    [1] create a Boolean variable
    [2] create your switch case statements correctly //which I have...
    [3] condition your Boolean in case statements
    [4] and then create your button managers
    [5] if the Boolean value is true, then say stream_ns.seek (0)
    [6] happy!

    Thanks again K - have a nice day.

  • I can map a network drive by using the appropriate credentials, but access is denied (by default local account for navigation)

    I have a laptop running XP SP3.  If I connect locally to the laptop and you try to map a network from a server drive on my network, it invites me for a username and password that I offer and the player must then be mapped.  The problem is that when I click on the new player, I get an access denied message.  It tries to connect to the share with my local account that has no access privileges.  Previously it tempt me a username and password, but apparently, I changed some security settings and it doesn't do this more.

    The same thing happens if I use the command net use.  I can map the drive by providing an appropriate user name and password, but I can't browse it in windows Explorer.  I really want to understand the context that controls if you get a prompt when you access a resource on the network.  I think that it is related to the setting of security strategy for network access: sharing and security for local accounts.  I played a bit with it, but in vain.

    I realize that I could probably add an account with the same username / password for my local account on the server and give access to my file shared.  I don't want to do that.  I have several users who share the laptop and access the local account access (I realize this is not ideal, but it is inevitable at the present time).  I don't want to have access to this network share.

    Can someone help me get my login prompt?  I searched on google for the last 2 days trying all kinds of suggested solutions, but I couldn't find one that works.

    Too bad... I was hoping that was the problem.  But at least it now asks you a name of user and password :-)

    Apart from that, you could look to make sure that NetBios over TCP (NetBT) is enabled on the client.  Deactivation of this force a direct hosting of SMB which sometimes has problems.

    "Hosting of SMB over TCP/IP direct".
    <>http://support.Microsoft.com/kb/204279 >

    Your latest comments seem to point to a followed initial connection or bad connect more or maybe you is not authenticated as expected.  A few quick tests, I did showed that if you connect using TCP/IP address instead of the computer name and specify everything, including the scope of user name online net "use", it reduces the network traffic needed to establish a connection.  As a test on a client, from a command prompt, try a syntax such as:

    NET use * \\192.168.1.10\share /user:192.168.1.10\username password

    Where "192.168.1.10" is the IP address of the server, 'share' is the name of the action that you want to connect to and "username" is the local user on the server to which you authenticate you.  If you use domain identification information, substutite for "192.168.1.10" domain name in the "/ user:" part.  If you log to a local account server from a name of user and password graphic prompt, try to including the name of the computer and the user name in the user name as in Nom_ordinateur\Nom_utilisateur area.  If it does not, unless there is really something wrong with the access permissions, I'm out of ideas.

    Good luck
    JW

  • Save the button Image file

    I have a Captivate 7 file that contains the custom button images.  How to save a copy of any of these images?  I can't find it in the library or on my local hard drive.  Thank you

    Just thought of this.

    Generate a HTML 5 output and you should be able to find the images in the output.

    See you soon... Rick

  • Save the button Question

    Hi guys

    I have a form with text for a person fields first name and last name.

    I would like to add a button "save under" for the form, in which the default document to the savings under the formula:

    "Last_Name, First_Name".


    I have attached the form.

    Thank you

    The only way to have the file saved under a different name must have the user to enter in a file dialog box.

    You are not allowed to replace the name of a file saved with your own without knowledge of th... eusers, it appears a security risk.

    Paul

Maybe you are looking for