debugging automatically when you call a script of a menu item

Hi all

I just came across a question I was wondering if anyone can help me or point me in the right direction.

I have two startup scripts.

Some custom menu items and actions that call a few other custom scripts running in the 'session' and ups configurations target engine.

The other runs in my own custom session and is used to initialize and share common constants and functions between my custom scripts.

This all seems to work as expected and by clicking on the new menu item calls, the correct script however, even without the ExtendedScript Toolkit running as soon as I click on the menu item, it will load the ESTK and break on the first line of the script. If I press F5 to continue the treatment, it will end and works very well.

I use currently the package has excellent (http://extendables.org/) to make some HTTP and simplify the creation of the user interface that does not specify a session.

Nobody knows what causes the scripts to debug automatically or is there a setting that can be defined to cause this?

This is caused by the 'session' calling 'customSession' using the code that runs in the 'main' session by default?

This really is irritating me at the moment so if anyone can help it would be much appreciated.

All this is done using JavaScript in InDesign CS 5.5

Thanks in advance

followed a line in the package has:

level of $ = 2;

I then went on the extensible site on github to raise what a problem only to find out someone had already pointed out, I didn't see the question before. DOH!

Anyway thought i better update incase someone else on the forums try to use the package and meet this Issus.

Tags: InDesign

Similar Questions

  • ExtendToolscript opens when I call the script from photoshop

    Hey,.

    I asked this question on in general discussions by mistake if I though I would ask new here.

    I have a Javascript that I wrote which generates an interface of buttons in groups organized according to the contents of some folders. Everything works fine, but when you call it from photoshop and extendtoolscript it is not always executed it opens. I wrote many scripts with interfaces and I've never had this problem. This isn't a huge problem for me, as I usually have this program open anyway, but I intend to have a team of people using this script, so if I could stop, somehow, it would be much better.

    If anyone has experienced this before? Or maybe functions extendscript causes to open?

    I don't see anything unusual in the script...

    Any help would be appreciated!

    Thank you

    Mark

    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    
    
    
    
    var templatepath = "~/Desktop/BANNERS/";
    
    
    var bannerfile = ""
    var docRef = app.activeDocument;
    
    
    
    
    var fileArray = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "MAIN/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray.push(doc);
                                                    }
                                    }
                    }
                
                
                var w = new Window ("dialog", "Choose a Banner");
                w.preferredSize = [400, 100];
                w.orientation = 'row';
                w.alignChildren = "left"
                w.alignChildren = [ "fill", "fill"];
                
                w.btnPnl = w.add('panel', undefined, 'MAIN');
                
                w.btnPnl.btn = w.add ("group");
                w.btnPnl.btn.alignChildren = "left"
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArray.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArray[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                if (fileArray.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArray[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "MAIN/" + buttonname + '.png');
                    
                     }
                 }
             
     ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    var fileArrayneon = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "NEON/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArrayneon.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, 'NEON');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArrayneon.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArrayneon[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                
                if (fileArrayneon.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArrayneon[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "NEON/" + buttonname + '.png');
                    
                     }
                 } 
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
    var fileArray180 = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "180/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray180.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, '180');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArray180.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArray180[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                        
                   if (fileArray180.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    
                    
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArray180[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "180/" + buttonname + '.png');
                    
                     }
                 }   
      
    
    
    
     ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    
    var fileArraymisc = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "MISC/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArraymisc.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, 'MISC');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArraymisc.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArraymisc[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                    if (fileArraymisc.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArraymisc[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "MISC/" + buttonname + '.png');
                    
                     }
                 }  
    
    
    
    
    
       
                     
     w.show();
    
    
    
    
    
    
    
    
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
     if (bannerfile == ""){}
     else{
    
    var targetDocumentName =  docRef.name;
    var tempfile = app.open (bannerfile);
    var sourceDocumentName = app.activeDocument.name;
    
    
    
    
    var thewidth = tempfile.width;
    var theheight  = tempfile.height;
    
    
    
    
    app.activeDocument = docRef;
    docRef.resizeImage (null, theheight, null, ResampleMethod.BICUBIC);
    
    
    if ((String(thewidth)) == (String(docRef.width))){
    var thelayer = docRef.activeLayer;
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
    }
    else {
    alert ("Document width Incorrect")   
    
    
    docRef.activeLayer.name = "main";
    var thelayer = docRef.activeLayer;
    docRef.resizeCanvas (thewidth, null, AnchorPosition.BOTTOMCENTER);
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
     }
      imageView ("FtOn");
     }
    
    
    
    
    
    
    
    
    
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    
    
    
     function copyLayers(sourceDocumentName, targetDocumentName) {
      var sourceDoc = app.documents[sourceDocumentName];
      var targetDoc = app.documents[targetDocumentName];
      var sourceLayer, targetLayer, sourceGroup;
    
    
      if (app.activeDocument != sourceDoc) {
        app.activeDocument = sourceDoc;
      }
    
    
    var thelayer = tempfile.layers[0];
    var layersToCopy = thelayer.name;
    
    
      if ( typeof layersToCopy === 'string' ) {
        sourceGroup = tempfile.layers[0];
        targetLayer = sourceGroup.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING )
      }
      else if ( Object.prototype.toString.call( layersToCopy ) === '[object Array]' ) {
        for (var i = 0; i < layersToCopy.length; i++) {
          sourceLayer = sourceDoc.artLayers.getByName( layersToCopy[i] );
          targetLayer = sourceLayer.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING );
        }
      } 
    tempfile.close(SaveOptions.DONOTSAVECHANGES);
    }
    
    
    
    
    
    
    function imageView (view) {
        desc= new ActionDescriptor();
            ref = new ActionReference();
          if (view.length < 5){
             var viewID = charIDToTypeID( view );
          }else{
             var viewID = stringIDToTypeID( view );
          }
          ref.putEnumerated( charIDToTypeID( "Mn  " ), charIDToTypeID( "MnIt" ), viewID );
        desc.putReference( charIDToTypeID( "null" ), ref );
       executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
    };
    
    

    $.writeln (written) the text specified in the JavaScript Console to ExtendScript Toolkit.

    You will probably need to 4 occurrences of the following line, apparently used for purposes of debugging in comment:

    $.writeln (e.target.text + " from panel " + e.target.parent.text);

  • Pass a function when you call onClick for a button (UI)

    Hello

    I m now studying and I adventure in the creation of the user interface of the Script. I m enjoy!

    I m having the following problem: I have added a button in a dialog box and want to tell script to execute some commands when users click the button. It is therefore a simple (bad example):

    var DLG = new window ('dialogue', 'My dialogue box', [0,0,0,0])

    DLG. Size = [500 500]

    DLG. Location = [300 300]

    var b = dlg.add ("button", [0,0,0,0], "Run")

    b.Location = [20, 180]

    b = [80, 30]

    DLG. Show()

    b.onClick = test () //the problem is here

    function test() {}

    Alert ("test")

    }

    -------

    All is fair. But the onClick event fails the test of the function I m passing! What Miss me?

    I know if I'm using

    b.onClick = function () {}

    ...

    }

    It works... but I´d as the function to call when you call the onClick instead of directly created. Do not know if I m able to explain it better.

    Thank you for the help

    Best regards

    Gustavo.

    The standard would be...

    var dlg = new Window ("dialog", "My dialog", [0,0,0,0])
    dlg.size = [500,500]
    dlg.location = [300,300]
    var b = dlg.add("button", [0,0,0,0], "Run")
    b.location = [20, 180]
    b.size = [80, 30]
    b.onClick = function(){ //the problem is here
    test();
    }
    dlg.show()
    function test(){
      alert("teste")
    }
    
  • Synchronize data when you call another VI

    Saying: I A.i and B.vi called B. I want to display a waveform to A and B collects data in a while loop.

    The question is how the waveform is updated in real time, then B is running? I tried global variables, but looks A.i isn't in the thread when you call B, so the data may not switch to A real-time.

    Any suggestions?

    You want to search for ' Producer/consumer' of info on this design pattern. It consists of a producer who share data using a Motor of Action or a queue to pass data between threads.

    Another approach might be to use a control reference for waveform display (table or graph) and use 'the 'Value' property to write to the display in a manner SIMILAR to the writing comes to the Terminal.

    Ben

  • can I delete login page so that windows starts automatically when you first start?

    can I delete login page so that windows starts automatically when you first start?

    Yes, you can.

    See http://windowsxp.mvps.org/Autologon.htm

  • Libraries open automatically when you open the file HAVE?

    Whenever I open HAVE, I need to restore the libraries in which I want to work with.  Is it possible to get them to connect/open automatically when you open the file?  Thank you!

    Use the new Document profiles in HD > Users > (yourname) (Mac) > library > Application Support > Adobe > Adobe Illustrator CS3 > new Document profiles. For CS4 add en_US before new Document profiles. Open the one you use the most. Open libraries that you want to appear and each Panel dialog box persist. Save the file and restart HAVE. Choose file > new and the new document should have these libraries available.

  • FRM-40735 / ORA-06508 when you call procedure of a fastened package

    Hi all
    I have a problem when you call a procedure in one of my attached libraries. the code is:

    When upper (trim (NOT_MSG_NAME)) = "REN_MSG_REQ_REG_PERMENANT" then SERV. CLFRM_PBL_NRQP_F(:Parameter.NOTIFICATION_ID);

    and it gives me FRM-40735 indicating that an ORA-06508 has occurred during the call to the procedure.
    Important and funny thing is when I add the path to the library, it works very well!
    When I join, remove the path, it won't as I said...

    the location of the library is: D:\DevSuiteHome\cgenf61\ADMIN, the path is added in the FORMS_PATH and all others
    libraries attached to the form in the same way are working well!

    I use the Forms 10.1.2.0.2 generator and the platform is windows and I migrated forms 9.0.4.0.19
    anyone with any ideas what may be the problem?

    Hello

    Please check the path again and also to create working directory by modifying formsweb.cfg.

    hope this helps you.

    Sarah

  • Call a "invokeAction' of the Menu item button

    Hello

    If I have a button and you wrote the code for the invokeAction method is, it is possible to call this button to a menu item invokeAction method?

    I guess I could just copy the code from this button and add it to the menu. I'm really wondering if there is an easier way.

    (Sorry if this has already been achieved in this forum, I'm not sure what kind of search terms I would use to find a solution to my question.)

    Thank you!

    invokeAction is protected, so you can not call it directly. You can play games such as deriving from a subclass with invokeAction made public. But it is usually easier to have just the listening port of the button and the listener of the element menu to call a common method. It's simple and obvious if the listeners are in the same module of code and a little more complicated if they are not, of course.  In general the code duplication is a bad idea, but it's even worse if duplicates are in different modules.

  • script is run automatically when you install the reader extensions

    Hello dear forum users...

    I generated a dynamic form with LiveCyle. I used a script to add instances.

    It works very well with Adobe Acrobat Pro.

    But if I want to prolong funtions in Adobe reader (so that Adobe Reader users can complete and save the form) something happens to my form automatically.

    Pages that must be dublicated by clicking a button, are multiplied in the form when you open the form with the reader.

    then the form went from 37 pages initially of 20 pages.

    I use this code for javascript:

    xfa.resolveNode("topmostSubform.Page13.matrixx").instanceManager.addInstance (true);

    the same problem with

    xfa.resolveNode("topmostSubform.Page13.matrixx").instanceManager.addInstance (1);

    Thank you for your advice...

    I just saw something similar to this last week when the form had 4 tables that had unique table names, but the structure and names under the table where exactly the same. This cause problems when the form is Reader Extended. He ended up creating a new instance for wach table that has been added. The solution was to appoint repeating subforms with unique names.

    Paul

  • OfficeJet pro 8620: how to set up printer to turn on automatically when you receive an incoming fax on a dedicated line

    I want to configure my printer to turn on automatically when receiving incoming fax. Do I have to leave power or can I change the setting to turn on automatically with each incoming call. He is a dedicated fax line that is not connected to my computer. Also there is a sleep mode, the power led remains on when you use the sleep mode?

    Hi @mcqwats,

    Welcome to the Forums of HP Support! I see you want for your printer HP switch automatically when an incoming fax arrives. You have not the possibility to activate the automatic answer - on, but the printer must be turned on so that this function executes.

    There is however no way to set the preferences to activate the printer when it is off.

    I hope that answers your questions.

    Thank you

  • Apex question 5.0 when you call the modal page

    Hello world

    I started work with apex 5.0 and I had a problem when I call a modal page; I have an interactive relationship with this query:

    WITH expert LIKE)

    Select user_id usr, LISTAGG(expert_designation,':') WITHIN GROUP (ORDER BY user_id) wording

    of t_utilisateur, t_expertise, table (xmlsequence (xmltype ('< a > < b >' | replace (user_expert_id, ':', '< /b > < b >') |.extract('/*/*') "< /b > < / a >"))) x

    where extractvalue (value (x), ' / b') = expert_id

    Group of user_id

    )

    Select USER_ID,

    USER_PASSWORD,

    USER_TUSER_ID,

    USER_NOM,

    USER_PRENOM,

    USER_DATE_NAISS,

    USER_DATE_RECRUT,

    USER_DATE_DEPART,

    USER_FONCT_ID,

    Libelle,

    USER_MGR_ID,

    USER_DEPT_ID,

    sys. DBMS_LOB. GetLength (USER_CV_FILE) CV,

    sys. DBMS_LOB. GetLength (USER_CV_CNFCPP_FILE) as CV_CNFCPP,

    ' < a class = "T-t-button - hot" href = "javascript:ajoutCertification('||)". USER_ID |') ; ' > Add < /a > '

    T_UTILISATEUR, expert of t

    where T_UTILISATEUR.user_id = t.usr;


    ajoutCertification() is a javascript function that calls the modal page and pass as a parameter the user id, the body of this function is:


    function ajoutCertification (user_id) {}

    document. Location.href ='f? p = & APP_ID.:19: & SESSION. : & DEBUG. : 19:P19_USCER_USER_ID: "+ user_id +":'

    }

    When I click on the button in the interactive report to call the modal page, I got this error message:

    102 page 19 application dialog box cannot be made successfully. Make sure that the page model used on page 19 is of type template

    'Page of dialogue', with appropriate initialization dialog JavaScript, the dialog box is closed and the dialog cancels code defined.

    any ideas on this problem and I thank you for your answers

    Hello

    See the Notes button which I created declaratively and it works very well.

    I would like to know if you have any questions now

    -Sunil Bhatia

  • CS5 - Action starts automatically when you open the program

    I have CS5 and it was working properly until recently, now when you open the program first, it starts automatically perform an action, then I have to stop the action and continue with what I was doing.  Does anyone have an idea how to stop this action without deleting?  Thank you.

    I guess you've planned somehow a script to run at startup. I have no more CS5, but in more recent versions of Photoshop, you can find Scripts under file and would go to the Scripts event Manager dialog box. You can see that I set this up to run the sticker to the startup action. To stop running just uncheck the events allow to run box. It's probably a little bit different in CS5, but you can probably get by on your own now.

    Terri

  • No model output module custom when you run the script from another process

    Hello

    I have a following problem:

    Try to automate the video rendering. When I run extend script of the program that is launched at windows startup, there is no custom output module template. If the script is started manually, it works perfectly.

    Trying to applyTemplate output module in the results of item renderer error queue.

    I use AE 2014 (13.1.1.3) and windows server 2012 standard r2.

    Thanks for help.

    Sounds like a permissions problem, you will need to set your user contexts and escalate privileges before running the script.

    Mylenium

  • In OS 10.7.5, after resigning during the shutdown, how can I stop 23 Firefox opens automatically when you restart?

    Before I turned off my computer, I stopped all my open applications. This makes startup cleaner. But now, at the start, Firefox 23 automatically... not open Safari, no email, just new Firefox 23. This seems to be the new default. I can't stop this behavior?

    See:

    ' Reopen the windows when you log in.

    • http://www.apple.com/findouthow/mac/#tutorial=startup - Applications open automatically at startup
    • Control-click on the Firefox Dock icon and uncheck 'open the connection '.
    • Click accounts (in the line of the System Preferences window system)
      • Click the login items tab
      • Click on Firefox in the list
      • Click the minus (-) button
  • When you visit a particular site my user name is entered automatically when you click in the required area. I want to avoid this, how?

    This site requires a username to be filled in a specific area and in another box, you enter a series of numbers generated by a generator of numbers (so not a password - different series each time that you open a session).
    However I do not want my user name appears automatically in the first box. Trying to change that in the security settings (extra-options-security), there is a password section where you can choose any exceptions to the rule of the memory (if the box remember is marked). When clicking the exceptions button, the url of the site I'm talking about is not displayed, and it cannot be entered either, since you can't delete here.
    When you click on the option "saved passwords", nor the site, nor the username is listed. I think I've read all the help sections regarding usernames and passwords, but found no solution.
    How can I avoid this username (so only a user name - not the usename/password combination), appear in the box?

    Click on the box, hover over the drop-down menu with your mouse, if you select the word you want to delete, and then press the delete key. If Firefox fills automatically in forms of control

Maybe you are looking for

  • IPhone 6 s ID

    I can't change my ID on my phone

  • printer 5530: scan does not connect to the server

    Can not scan documents. On my printer screen appears "there was a problem connecting to the serverI. The cords are properly pluged. Router is working as wel as internet connection. Please help me solve the problem

  • HP Officejet 6500 a: compatibility printer Windows 10

    Dear Forum Because I downloaded Windows 10 on my laptop, I can't use my HP Officejet 6500 has everything in a printer more.  I tried to download the drivers but it keep saying it is not compatible with Windows 10? I am very satisfied with the situati

  • Wireless network problems

    All my WAN Miniports (IPv6), (L2TP), (PPPOE), (PPTP), (SSTP). Device Manager displays a yellow triangle Panel and I can not connect to any wireless connection. Wireless adapter appears disabled. When I update the computer, I get this message "Windows

  • BSOD netbt.sys

    Could someone let me know what is this BSOD? Here's the minidump file: http://sdrv.ms/18jx5ss