Function that is called in indesign is to terminate?

Hello.

I want to disconnect DB at the end of InDesign.

This function exists in the InDesign SDK?

For example, OnClose() or OnDestroy() of MFC.

I guess that's the answer in a previous post. Please see the following link

Function that is called in indesign is to terminate?

Tags: InDesign

Similar Questions

  • How to add a progress bar in a function that is called recursively

    How to add a progress bar in a function that is called recursively

    Hello

    You can use ScriptUI to create progressbar in your script. Here is an example on how the progress bar can be created:

    var progressRes = "dialogue."

    {\

    text: "Auto Collection,"------

    preferredSize: [450, -1],

    View1: Group\

    {\

    alignment: 'fill', orientation: 'column ', \

    _label: StaticText {alignment: 'left', text: 'reviewing the images...} »}, \

    _Progress: Progressbar {alignment: 'fill', properties: {name: 'progress'}}, \

    _startAndCancel: button {text: 'Start',------}

    started: false, cancelled: false,

    Properties: {name: 'Cancel'} \

    },\

    }\

    }";

    var progressWindow is new window (progressRes);.

    progressWindow.progressBar = progressWindow.findElement ("course").

    progressWindow.cancelButton = progressWindow.findElement ('Cancel');

    progressWindow.cancelButton.onClick = function()

    {

    If (this.started)

    This.Cancelled = true;

    else {}

    This.Started = true;

    This.Text = "Cancel";

    this.window.startWork ();

    }

    }

    Start the 'work' when you click the Start button

    progressWindow.startWork = function()

    {

    While (this.progressBar.value< this.progressbar.maxvalue="">

    ! this.cancelButton.cancelled)

    {

    this.progressBar.value = this.progressBar.value + 1;

    This.Update();

    this.workFunction ();

    }

    progressWindow.close (this.cancelButton.cancelled? 1: 2);

    }

    progressWindow.workFunction = function()

    {

    $.sleep (500);

    }

    progressWindow.setMax = function (maxval)

    {

    progressWindow.progressBar.maxvalue = maxval;

    progressWindow.progressBar.value = 0;

    }

    progressWindow.setText = function (label)

    {

    progressWindow.children [0] ['_label'] .text = label;

    }

    -test code

    function progressTest()

    {

    progressWindow.setMax (8);

    var result = progressWindow.show ();

    Do something with result...

    }

    progressTest();

    Thank you

    -Anshul

  • (Bug)  Function that is called on the authenticationSuccess parameter is called several times

    < rtc:AdobeHSAuthenticator id = "auth" authenticationKey = '{authToken}' protocol = "rtmfp" authenticationSuccess = "onAuthSuccess (); "authenticationFailure ="onAuthFailure (event); "/ >

    The onAuthSuccess() function that is called at all times

    Hi Ashish,

    Can you give us the smallest possible complete app that reproduces it

    question? I just built a simple and it worked.

    Thank you

    Nigel

  • What is the JS/jQuery function should I call to sort a column in an IR?

    Hi guys,.

    Given that this no longer works in APEX 5.0: how you trigger sort column of the item page APEX interactive report?

    I'm looking for the function that is called when you press the button to sort on a column to place the call in a dynamic Action.

    What function is called and how when you press the button in the image below?

    Thank you

    Digital

    I don't know why you (or someone else) so go out of your way to disassemble the main features of the IR. Literally everything you have (or had) to do was to tell users how to use the controls that is given to them. What is the punishment by clicking on a column header to sort something out or use the format > dialogue sort? I don't understand. Here are the easy commands that work in singles. What you (or they) win by this control in duplicate?  Why is it important if he doesn't "Executive"? Does this mean that if something is or was bad, you should keep just bad? They shouldn't have to learn to work well with their tools?

    Look, I'm all in favour of offering more control over widgets (API and) such as IR and I have provided my share of hackery. I don't see much justification here.

    Then gReport using was quite clear and the markup was simpler, at apex 5, is more complex. The principle is much the same, a lastcolumnid is defined and a direction, then the sortorder is called in the _columnOrder. You cannot use _columnOrder unless you set lastColumnId on the widget and I wouldn't do that as I do not change the internal state. So I just use the call syntax used in turn. Your selection list will select the columns of ir apex for this (since you need the id)

    var irw = apex.jQuery("#myReport_ir").data("apex-interactiveReport"); -- retrieve widget instance
    -- trigger the action
    -- f01: column id. In apex 5 these are by default generated ids, f02: desc/asc
    irw._action("COLUMN_ORDER", {f01: irw.lastColumnId, f02: "DESC" });
    

    Do with what you want and use at your own risk. It is not supported and could very well break flat-out more down the line. Not to mention that you (or someone else) have to maintain it and still understand it later.

  • Can a loaded SWF call a function that lives in the parent?

    I'm building a pretty simple site in AS3 Flash. There is a main movie (main.swf) that loads just different SWFs via buttons on a main navigation bar. The user clicks on a MC in "main.swf" and a function is called, loadMyContent ("section1.swf"), is called and it drives well. Other buttons use the same function, section2.swf, section3.swf, etc. of loading.

    I set the operation of the "loadMyContent()" in the document of the main sequence class file. It's that everything works fine when I just need to load the content of the user action from the buttons who live in "main.swf". I want to call that same "loadContent" function in the "section1.swf" and have "main.swf" run its fuction "loadContent", but I can't seem to figure out how to make a child to call a function that lives in the parent.

    Is there a way to have my child do this?

    I have a suspicion that I may have to define this "loadContent" elsewhere, but I am a little confused now. I'm not really familiar with design patterns, even if I want to get a understanding of them very soon. Can anyone offer help with my immediate need or suggest a path to a solution? Thank you.

    kglad,

    Thank you very much! It worked perfectly. My FLA section1 compiles now it's SWF without complaining.

    In case anyone else is following this, is the exact code I ended up using to cast 'this.parent.parent' as a MovieClip:

    MovieClip (this.parent.parent) .loadMyContent ("section2.swf");

    The discussion, I think that kglad is referencing is this discussion. If this is not it, let me know. Once again, kglad, thank you!

  • How to call a function that returns a SYS_REFCURSOR?

    Here's the situation.
    If I use ODP. NET to get a REF_CURSOR of a procedure in a package that it works without a hitch.

    If I use ODP .NET to run an Oracle function that returns a REF CURSOR, all sorts of things fool you.
    I use .NET 3.5 and ODP .NET version 2.112.1.2 (11 G). My Oracle database is 9.2.0.7.0

    There is this function returns a REF CURSOR.
    The code looks something like this.
    CREATE OR REPLACE FUNCTION SENDMEAREFCURSOR RETURN SYS_REFCURSOR IS
      X_REF genPkg.genericcursor;
    BEGIN
      OPEN X_REF for
        SELECT customer_id, name FROM CUSTOMERS;
      Return X_REF;
    END;
    .NET code looks like this. It's after a few adjustments.
            private static OracleDataReader FireMyFunc(OracleConnection oc)
            {
                try
                {
                    OracleCommand cmd = new OracleCommand();
                    cmd.Connection = oc;
                    //cmd.CommandText = "SELECT sendmearefcursor FROM DUAL";
                    //cmd.CommandType = System.Data.CommandType.Text;
                    cmd.CommandText = "sendmearefcursor";
                    cmd.CommandType = CommandType.StoredProcedure;
                    OracleParameter prm = cmd.CreateParameter();
                    prm.OracleDbType = OracleDbType.RefCursor;
                    prm.ParameterName = "returncurse";
                    prm.Direction = ParameterDirection.ReturnValue;
                    cmd.Parameters.Add(prm);
                    cmd.ExecuteNonQuery();
                    return (OracleDataReader) prm.Value; //Throws an UnableToCast exception.
                }
                catch (System.Exception ex)
                {
                   Console.WriteLine(String.Format("FireMyFunc: {0}",ex.ToString()));
                    throw;
                }
            }
    What should I do to get the refCursor?

    Hello

    You can use the GetDataReader of the OracleRefCursor object to return the datareader object.

    OracleRefCursor rc is prm (OracleRefCursor). Value;
    return of rc. GetDataReader();

    HTH
    Jenny

  • Recently I have not been able to forward my iPhone 5S for message store.  I've never had this problem before. When I looked to what to do, I realize that The Call Forwarding icon does NOT appear in the status bar when I try to transfer calls.  How c

    Recently I have not been able to forward my iPhone 5S for message store.  I've never had this problem before.

    When I looked to what to do, I realize that The Call Forwarding icon does NOT appear in the status bar when I try to transfer calls. How can I fix this please?

    It does not work using * 21 * + 6 * 41412 * 2 #.

    < personal information under the direction of the host >

    Call forwarding is a function of carrier. Contact your operator.

  • Go to a function that returns a Boolean

    Short version of the question: Boolean values can be returned by a pl/sql function?

    I've implemented a short function which returns a Boolean value; When I compile it I get an error:

    Error report:

    ORA-06550: line 5, column 32:

    PLS-00382: expression is of the wrong type

    ORA-06550: line 6, column 4:

    PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.

    ORA-06550: line 6, column 4:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    The closest, I appealed


    RETURN sys.diutil.bool_to_int (< foo >);


    and then a caller script can call


    sys.diutil .int_to_bool (< bar >);

    at least this way there is no verification of the Boolean value of 'manual '.  Is it really the only way to return / call a Boolean?


    Thank you

    Chris


    EDIT


    I was aware of the fact I had not provided examples of code - and was just one question fairly open. I hope that this example will show what does not work!


    I have a function that returns a Boolean value:


    create or replace

    FUNCTION myFunc (s_in IN VARCHAR2) RETURN a Boolean value

    IS

    s_out BOOLEAN: = TRUE;

    BEGIN

    RETURN s_out;

    END FUNCTION3;

    I try and call the function in the following script:

    DECLARE

    s_in varchar2 (20): = "Hello";

    s_out boolean;

    BEGIN

    SELECT myfunction (s_in) INTO s_out FROM DUAL;

    END;

    That's when I get the error. But sorry, I was looking for too many error messages! I have worked that the one I posted above is because put_line can accept only strings and numbers not Boolean, the mistake that this function returns is:

    ORA-06550: line 5, column 32:

    PLS-00382: expression is of the wrong type

    ORA-06550: line 5, column 11:

    PLS-00382: expression is of the wrong type

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    However, I suppose that the comment of Frank Kulash is perhaps the reason why I see this?


    Post edited by: 2922851

    Hi, Chris,.

    2922851 wrote:

    Short version of the question: Boolean values can be returned by a pl/sql function?

    Sure.  If you are having problems, post your code (both the function and some PL/SQL that calls it).

    The BOOLEAN data type exists only in PL/SQL, not in SQL, so if the function returns a BOOLEAN value, then you can't call it in a SQL statement, even if this SQL statement is used within PL/SQL.  For this reason, a lot of guys write functions that return a NUMBER (1 or 0) or a string (' t ' or 'F') rather than return a BOOLEAN value.

    I've implemented a short function which returns a Boolean value; When I compile it I get an error:

    Error report:

    ORA-06550: line 5, column 32:

    PLS-00382: expression is of the wrong type

    ORA-06550: line 6, column 4:

    PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.

    ORA-06550: line 6, column 4:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    This error indicates a problem calling put_line; It has nothing to do with what returns the function.

  • Message box in function that returns a list deletes the created list... (Dialog box)

    Hello

    I work with a complex dialogue, its purpose is to manage a section in the PDF file.

    I use a "mclv" object in the dialog box to represent data entries in the PDF file in order to manage the result in another section.

    I created a function that creates the list based on a previous section in the PDF object, the function works perfectly well.

    But I have a small question, the function used to create the list of the dialog box object performs a check with the former front list created, as appropriate,

    and if in any case it is different from the old list, I need to warn the user that the list has changed and if there were any changes applied to the result it will be returned to zero and must be recreated.

    But when the poping that message box, all lists are deleted and nothing is displayed in the objects 'mclv.

    If I remove the message box, the lists are all very well...

    Is there anyone who have come across something like this before? If so, any solution to this problem?

    I asked my question a bit too quickly, I already found a work around

    But I still don't understand why he behaves like that tho...

    I just thought how to work around this problem.

    If anyone has encountered this problem can use this solution:

    Instead of having the message inside the function to return box, I declared a global Boolean variable to the Script object

    If the message box must be displayed, the Boolean value is set to True

    Once in the initialize event of the dialog box, if the value Boolean true I call the message box and reset the value Boolean false

  • Error #1009 when sound inside game, a movie clip that is called to the scene with child add method

    What is supposed to happen

    I have a clip that is called when the user clicks a button. When moving clip appears music is expected to play. When the user clicks the close button the music stops and the clip is removed from the scene.

    But then I get an error

    When I test the movie I get the following error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to mc_playSong / frame2 () [mc_playSong::frame2:6]

    This is the code that calls the clip on the stage (no problem here):

    Call the video clip with the song played on stage

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is song_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlaySong);

    myPlaySong.x = 558;

    myPlaySong.y = 384;

    Event.stopImmediatePropagation;

    }

    The following code inside the clip is called to the scene. The music is meant to play:

    Stop();

    Variables for listening to music

    var RJPlaySong:RJSong = new RJSong();

    var RJPlaySongChannel:SoundChannel;

    Music for plays

    stage.addEventListener (Event.ENTER_FRAME, startRJSong); (I think that the error in the code is in this function. When I comment on him I don't get error.)

    function startRJSong(event:Event):void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    Stop all sounds, sets variables to null and calls a send event that removes the clip of the scene.

    bnt_closeSong.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditSongScreen);

    function closeCreditSongScreen(event:MouseEvent):void

    {

    SoundMixer.stopAll ();

    RJPlaySong = null;

    RJPlaySongChannel = null;

    dispatchEvent (new Event ("RemoveMCsong"));

    }

    Someone at - it ideas? This seems to be a pretty simple question, but I can't understand it.

    I meant that you have quoted just to be taken literally.  If it's still not clear what I say or what did your code, try the following in order to demonstrate the IT change... This code to be...

    stage.addEventListener (Event.ENTER_FRAME, startRJSong);

    function startRJSong(event:Event):void {}

    trace ("I can do this all day");

    }

    After doing this, you can see why you want to only call the function once, and you could eliminate most of it and just put...

    RJPlaySongChannel = RJPlaySong.play ();

    Instead, or as I said originally, you can change it to be...

    function startRJSong (): void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    startRJSong();

  • Pass parameters with a function that is a parameter to another function.  Is this possible?

    Hello

    I have some difficulty to pass parameters to a function that is passed as a parameter.  In the code for my application I am instantiating this class five times: they are buttons in a menu.  In this category, I had an onRelease handler that does a number of things when a button is released, which is to call a function defined in the level of enforcement of the code.  My problem is that I don't know how to send parameters to the functions.

    In my StandardButton class I:

    class StandardButton extends MovieClip
    {
         
         /* define properties */
         private var selected:Boolean = false;
         public  var btnMenu:MovieClip = null;
         public  var execFunc:Function;
         
         /* define constructor */
         public function StandardButton()
         {
              trace("Standard UI button created: " + this);
              this.onRelease = releaseHandler;
         }
         
         /* define methods */
         public function releaseHandler()
         {
              if (selected) {
                   
                   //this["bg"].gotoAndStop("normal");
                   //selected = false;
                   
              } else {
                   
                   //show the normal state of all other buttons in the menu set
                   for (var i:Number = 0; i < btnMenu.btnList.length; i++)
                   {
                        this._parent[btnMenu.btnList[i]].bg.gotoAndStop("normal");
                        this._parent[btnMenu.btnList[i]].selected = false;
                   }
                   
                   //show the select state of the button
                   this["bg"].gotoAndStop("select");
                   
                   //execute the function attached to this button
                   execFunc();
                   
                   //set the selected boolean for the current button
                   selected = true;
                   
              }
         }
         
         
         /* define accessors */
         public function set execFunction(instructions:Function)
         {
              execFunc = instructions;
         }
         
         public function set buttonMenu(menu:MovieClip)
         {
              btnMenu = menu;
         }
         
    }
    

    In my application .fla file, I have this

    //This is the function that will be executed when the user presses the button
    function autoModeHandler (param:String) {
         
              trace("You pressed the " + param + " button");
              
                                  
    }
    
    init();
    
    masterContainer.menuContainer.Auto.execFunction = Delegate.create(this, autoModeHandler);
    

    The function is successfully "sent" to the class of StandardButton, but without any parameters.  How can I send parameters for the instance of the class with the way I had it built.  Any help is greatly appreciated!

    Thank you for your time and help!

    You can pass parameters as you're passing that work.  you just need an instance of StandardBtn.

  • Function in class call

    How to call a function in classes?

    I have a primary class ("ChordLib.as") that contains a function that manages the options for the TileList component, which includes the prescription of a custom cell renderer class, "MyRenderer".  I want to be able to call a function in the primary "ChordLib.as" class of the class 'MyRenderer.as '.  Here's the function "ChordLib" that refers to the class "MyRenderer". There may be a way here to pass the reference of the primary class in "MyRenderer"?

    // SET CHORD LIST  //////////////////////////////////////////

    public void setChordList(song:int):void {}

    var dpChords:DataProvider = new DataProvider();

    var i: uint;

    determine the set of rope

    If (song ==-1) {}

    activeChords = allChords;

    } else {}

    activeChords = songChordSets [song];

    }

    fill with dataProvider

    for (i = 0; i < activeChords.length; i ++) {}

    var TT = activeChords [i];

    dpChords.addItem ({label: tt, source: ChordBar, data:, scaleContent:true});})

    }

    chordList.dataProvider = dpChords;

    chordList.columnWidth = 70;

    chordList.rowHeight = 30;

    chordList.direction = ScrollBarDirection.VERTICAL;

    chordList.setStyle ("contentPadding", 5);

    chordList.setRendererStyle ("imagePadding", 0);

    chordList.scrollPolicy = ScrollPolicy.ON;

    Set style for labels

    chordList.setRendererStyle ("textFormat", textFormat1);

    set the background skin

    chordList.setStyle ("skin", lightBackground);

    define cell converter

    chordList.setStyle ("cellRenderer", MyRenderer);

    }

    This last line ("chordList.setStyle ("cellRenderer", MyRenderer)'); refers to this custom class, which includes event listeners:

    package {}

    Import fl.controls.listClasses.ICellRenderer;

    Import fl.controls.listClasses.ImageCell;

    import flash.events. *;

    public class that extends myrenderer ImageCell implements ICellRenderer {}

         

    public void MyRenderer() {}

              

    this.buttonMode = true;

              

    Drop skin condition skin even static background

    setStyle ("upSkin", lightBackground);

    setStyle ("downSkin", lightBackground);

    setStyle ("overSkin", lightBackground);

              

    setStyle ("selectedUpSkin", lightBackground);

    setStyle ("selectedDownSkin", lightBackground);

    setStyle ("selectedOverSkin", lightBackground);

    turn off background of text by setting to 0

    setStyle ("textOverlayAlpha", 0);

    setStyle ("textPadding", 7);

              

    / / event listeners

    this.addEventListener (MouseEvent.CLICK, clickHandler);

    this.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);

    this.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);

         }

         

    / / EVENTS

    private void clickHandler(event:MouseEvent):void {}

         }

    private void mouseOverHandler(event:MouseEvent):void {}

         }

    private void mouseOutHandler(event:MouseEvent):void {}

         }

    }

    }

    I want to insert calls to functions that are in the main class (which contains the first feature listed here), "ChordLib.as".

    How can I do this?

    For classified call a function from another ClassB (or instance of it) he should be aware of two facts: 1) that ClassB exists and 2) that ClassB has a special function.

    Another approach might be to establish a communication between classes by the events.

    You explanation, it is not clear what you want to accomplish. Do you need to call a function on the class itself or by an instance of this class?

    So old - you must create a static function and just call it:

    inside ClassB:

    public static void classBFunction()

    ClassA can call it:

    ClassB.classBFunction)

    If you call the function on an instance - you, of course, need to instantiate the class and then call the function.

    Say you have inside ClassB

    public void classBAnotherFunction() - Note that there is no static Word

    There is an other fork here: either you instantiate the ClassB inside the ClassA or you pass a reference to the instance of ClassB in ClassA

  • Function that is supposed to change the label of a button

    I have a function that is supposed to change the label of a button component.

    "< mx:Button ="190"x ="266"id ="payoffType"labelPlacement = 'left' icon="@Embed (source ='... Toggle.png') "label ="-call ' width = '78' >
    < mx:click >
    <! [CDATA]
    updateLabels();

    []] >
    < / mx:click >
    < / mx:Button >

    public function updateLabels (): void
    {
    If (payoffType.label.slice (4, 5) is 'P')
    {

    payoffType.label = currencyPair.selectedLabel.slice (0, 3) + "Call";
    }
    on the other
    {
    payoffType.label = currencyPair.selectedLabel.slice (0, 3) + "Put";
    }
    }

    However once this is called it will update the datatip buttons (for example ' GBP Put ' that you see when you hover over the button) and the label of the button is set to "GBP" -

    Please please advise

    I think there can be question of width of button, do slightly increased it in & see what it shows as the label.

  • I want to move a large number of photos but don't want to unique, click each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions?

    I want to spend a lot of photos (they are in order) but and do not want to have to click to move each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions? I know it's apple 101, but I don't remember what order to press the button command, or shift, or other. Thank you

    Select the first file, then hold down the SHIFT key, and then click the last file. Or, select any file in the folder and then press command + A

  • Is it CVI API functions that search fo a path given of him exist file? as "DirectoryExists.

    Is it CVI API functions that search fo a path given of him exist file? like C ++ Builder 'DirectoryExists', I tried 'FileExists', but unnecessary


Maybe you are looking for

  • How to get boot .exe to make a bootable usb key

    How to get boot .exe to make a USB bootable for windows install Windows 7 USB DVD Download Tool

  • R

    Hello I'm still trying to decide between R61 and R400, mainly because of the usability of ubuntu, and I would like to know how much time I have left before the R61 (new) completely disappear from the market. Thank you

  • Can't remove program in Win7

    I can't remove the SpeedFixTool program from System.

  • BBM BBM setting on new Blackberry 9720

    Hi all I've updated my old Blackberry "BOLD" to a 9720 a couple of days and experiencing problems get BBM to work.  Initially, I had problems with email and BBM surveys and found that Vodafone had not added Blackberry Internet Services to my new plan

  • Contacts from blackBerry Smartphones do not work

    When I want to open my contacts I get the following message: Eception exception: Application net_rim_bb_addressbook_app (643) ist does not; process ends? What does that mean? What could I do to make my contacts work?