Several alerts in a dialog box?

OK just recently had my dialog box to display the amount of corrections. Thanks to a few people here.  And its great.  I wonder how I can get it to say that everything is changed in a dialog box.  Ex...

I saw that here before on this subject.  However its been some time ago and may not be on this forum.

Highlights change: 3.

The double spaces: 32

and so on.

It would be that less crowded than if it was listed vertically and not horizontally.  Easier to read I mean.

can it be added to the bottom?

alert("Results:"+",   "+numberOfChanges +" ,  "+"Changes have been made")

Thank you

Maybe something like

var errors = ["error 1","error 2","error 3"];
alert("So many errors\r"+errors.join("\r") );

Loïc

Tags: InDesign

Similar Questions

  • to select several files in the dialog box open, but it is impossible, isn't it?

    Hi forum,

    File and folder objects have a openDlg() method. The first also has the multiSelect parameter, it is not.

    I wish I could have also for the folder so that I can ctrl/shift select several folders instead of picking up a folder and all its subfolders processing.

    Maybe I'm missing something obvious or there is a solution to such a dialogue box.

    Kind regards

    Kasyan

    As suggested, an approach as possible:

    Folder.prototype.selectMultipleDialog = function (prompt,multiselect){
      var w = new Window('dialog','MultipleSelectDialog'),
      st,
      ls,
      btnGp,
        koBtn,
        okBtn,
        folderFilter = function(f){
            return (f instanceof Folder)
        },
        u,
        folders = this.getFiles(folderFilter),
        getFolderNames = function(foldersObjectArray){
            var n = foldersObjectArray.length,
            namesArray = [];
            while ( n--){
                namesArray[n] = decodeURI(foldersObjectArray[n].name);
            }
            return namesArray;
        },
        folderListItems = getFolderNames(folders),
        n = 0;
    
        st = w.add('statictext',u,prompt);
        ls = w.add('listbox',undefined, folderListItems, {multiselect:multiselect} );
    
        btnGp = w.add('group');
    
        koBtn = btnGp.add('button',u,'Cancel');
        okBtn = btnGp.add('button',u,'Select');
    
        koBtn.onClick = function(){
      w.close(0);
      }
    
      okBtn.onClick = function(){
      w.close(1);
      }
    
        ls.onChange = function() {
            okBtn.enabled = ls.selection!==null;
        }
    
        w.preferredSize.width = 450;
        w.alignChildren = ["fill","top"];
        ls.preferredSize.height = 200;
        btnGp.alignChildren = ["right","top"];
    
      okBtn.enabled = false;
    
        if ( w.show()==1 ){
      if ( ls.selection instanceof Array ) {
      n = ls.selection.length;
                while ( n-- ) folders[ls.selection[n].index].execute();
      }
      else {
      folders[ls.selection.index].execute();
      }
      }
    }
    
    var fo = Folder.desktop;
    fo.selectMultipleDialog("test", true)
    

    HTH

    Loïc

    www.ozalto.com

  • After upgrading from firefox (on MAC), whenever I start Firefox it is an installation open - dialog box that I can't understand how to remove.

    I used Firefox without problem, on my Mac, for several years. I've recently updated to v22.0. Now everytime I open Firefox, there is a dialog box (marked "Firefox, 2 parts in stock") that appears with the Firefox icon and arrow pointing to the right and a folder icon. Looks like I wonder again to install Firefox. I've done several times, but the dialog box never goes away. I clicked and press "eject only firefox." The dialog box disappears, but reappears the next time I open Firefox. Firefox seems to work normally, but this installation glitch is annoying. How can I solve this?

    How do you open Firefox... leave an icon on the desktop or in the dock?

    What happens when you open Firefox from the Applications folder?

  • I can't find 'save to desktop' in the Save as dialog box to an Excel on Win7

    In fact I do not see how to save any kind of file on my desktop with Win 7 and MS Office 2007 Pro.

    The game, February 3, 2011 15:44:39 + 0000, Maryriver wrote:

    I have not posted in forum excel because this problem occurs in all my MS Office 2007 Pro programs.  When I follow your suggested steps:

    "Open Excel > click on the Office button > Save As > close from the top left, click MORE > see icon on the desktop now? ' > click on the desktop.

    There is that no more save it as only includes orders for the economy in several formats, but the dialog box that opens shows not the desktop as the destination to save in.  The only affected destinations are;  models, Favorites, libraies, residential, computer group, WIN7C and network.  I explored all the and can not find any "desktop."

    Desktop is not listed under Favorites on the left side of the Save as
    dialog box? Simply click on it.

    But note that I strongly recommend against save data files in the
    desktop computer. My recommendation is that you put nothing else that shortcuts on
    the desktop computer. There are two things wrong to put the real files it:

    1. one day probably will remove you a real file, thinking that you were
    just remove a shortcut.

    2. you you cluttering up the desktop with too many files, making it difficult
    to find what you are looking for.

    You have to put your files Excel (and other real data files) in the
    Documents folder. If you have some of these files you want
    access often, put shortcuts to these files on the desktop.

    Ken Blake (MS-MVP)

  • Dialog box with multiline entry?

    I work on the automation of one of our most tedious chart types, a typed statement upward and ran into an obstacle. I have a pop up dialog box that the user fills out. They put in the name of the applicant, position, and then I have a large space to paste them into the text, they would like to insert into the chart. Unfortunately, it only sticks the first line of the text. Is it possible to enter several lines in a dialog box? Initial searches lead me to believe that entered fast can only be a single line, but I have to imagine that there is a way. Any ideas? Not having not any problems making the text in the box, the question is stick it in the dialog box.

    Thank you!

    Here is a cut down version of the part of the dialog box with the fact that I have problems:

    The GRP is the area that I intended to use for multi-line text blocks.

    // Export dialog
        this.dlg = new Window('dialog', 'Create new depo layer'); 
    
        // PANEL to hold options
        var msgPnl = this.dlg.add('panel', undefined, 'Create new deposition layer'); 
    
        // content GRP
        var contentGrp = msgPnl.add('group', undefined, '')
        contentGrp.oreintation = 'row';
        contentGrp.alignment = [ScriptUI.Alignment.LEFT, ScriptUI.Alignment.TOP]
        
        var contentSt = contentGrp.add('statictext', undefined, 'Content:'); 
        contentSt.size = [100,20]
    
        var contentEt = contentGrp.add('edittext', undefined, ''); 
        contentEt.size = [ 300,500 ];
        
        var btnPnl = this.dlg.add('group', undefined, ''); 
        btnPnl.orientation = 'row'
    
        btnPnl.cancelBtn = btnPnl.add('button', undefined, 'Cancel', {name:'cancel'});
        btnPnl.cancelBtn.onClick = function() {this.dlg.close() };
    
        // OK button
        btnPnl.okBtn = btnPnl.add('button', undefined, 'Create Single Depo Layer', {name:'ok'});
        btnPnl.okBtn.onClick = function() { 
                //add the textPull content in
                var textPullBox = docRef.textFrames.getByName("textPull");
                if(contentEt.text != ''){
                   textPullBox.contents = contentEt.text;
                }
                var paraStyle;
                if (contentEt.text.match(/Q./) || contentEt.text.match(/A./)){
                    paraStyle = docRef.paragraphStyles.getByName("DepoPull");
                    }
                else{
                    paraStyle = docRef.paragraphStyles.getByName("TextPull");
                    }
                //apply the paragraph style
                for(tp=0; tp<textPullBox.paragraphs.length-1; tp++) {
                    paraStyle.applyTo(textPullBox.paragraphs[tp], true);
                }
                
                //close dialog box
                this.dlg.close();
        };    
    
        this.dlg.show();
    
    // change to this:
    var contentEt = contentGrp.add('edittext', undefined, '', {multiline: true, scrolling: true});
    

    Hope this helps your efforts.

  • Create a Listbox control in the dialog box

    I want to create a simple list box in a dialog box and fill it with some dynamic ropes. I placed a Treeview in the dialog box by using this code in the file en:

    TreeViewWidget

    (

    myListID, / / fWidgetId

    kSysStaticTextPMRsrcId, / / fRsrcId, fRsrcPlugin

    kBindNone,

    Frame (10, 10, 280, 200),

    kTrue, / / fVisible

    kTrue, / / fEnabled

    kTrue, / / fEraseBeforeDraw

    kInterfacePaletteFill, / / InterfaceColor wipe

    "", / / control label

    kFalse, / / display root node

    kFalse, / / use scroll bar:

    kTrue, / / use scroll bar V

    20, / / button vertical scrolling increment

    20, / / inch vertical scrolling increment

    0, / / scroll button horizontal increment

    0, / / inch horizontal scrolling increment

    1, / / selectable items, 0 = no selection, 1 = single selection, 2 = Multiple selection

    kTrue, / / of many parents to choose a toy

    kTrue, / / allow the discontinuous selection

    {

    }

    )

    In my box, I see the list box with entries 0-9. How can I remove these entries and add my own strings? In PanelTreeView and other samples, I can not find a solution.

    In DialogController::InitializeDialogFields I tried to init the list like this without effect:

    TreeView IControlView * = pPanelData-> FindWidget (myListID);

    ITreeMgr InterfacePtr < ITreeViewMgr > (treeView, UseDefaultIID();

    iTreeMgr-> ClearTree (kTrue);


    TreeView in cs6 is the only possibility for the creation of a ListBox with selectable inputs a Dropdownlist control is no option because the user should see several entries after the dialog box.

    Node NodeID = treeviewHierarchyAdapter-> GetNthChild(rootNode,0)

    treeviewController-> Select (node, kTrue, kTrue);

  • How to set the focus to a button in a dialog box alert several button?

    Hello

    I have a dialog box alert two basic button... "Are you sure you want to do this?  YES or NO."

    Everything works very good about it but take button YES that focus so if you accidentally press the RETURN key, YES is what is pressed. I want to have the button NOT to be investigated, there is no accidental confirmation Yes unless the user clicks on specifically on YES. I put emphasis on a variety of different components, but I can't find information on how to do this, or if this is possible. Any ideas?

    Thank you

    defaultButtonFlag property or the last parameter to Alert.show () method is what you are looking for.

  • file with several custom templates dialog box

    I need to be able to user multple select models of file (* .bin, *.exe...) in a dialosg file similar to the VI of file dialog express where he enumerates the directory and allows the user to select multiple files in a list from windows dir.  The express VI has an entry of bosses who takes several criteria separated by a semimcolon, but it seems not to be a way to provide control of the ring for the type of file and let the user choose the model he wants to filter the directory listing.  That is, > if the user wants to load files that are only * .bin, he wants only to display in the list.  How can I do this without multiple dialog boxes?


  • "Several times I am receving the dialog box with" visual basic command-line compiler.

    "Several times I am receving the dialog box with" visual basic command-line compiler.

    Hello

    1. This occurs when you use a specific application or all applications?

    2 did you a recent software or changes to the material on the computer?

    3. have you installed all versions of Visual studio?

    4. What is the finished message, that you have found?

    You can try to perform a clean boot and see if it helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

    Hope this information is useful.

  • Alert dialog box that prevented an application

    Hello

    I have a problem: I need to add a "ask dialog" to my request:

    Dialog.ask (Dialog.D_YES_NO, "Do You want to trust administrator?");

    but I can use it in the constructor. When I try to put the dialog box asking you in other parts of the program (I need to have one in the run() method in the other thread) - it blocks! and an alert shows nor the application runs...

    do you know if there are alerts of dialogue that do not block the program?

    concerning

    Use EventLock or UiApplication.getUiApplication .invokeLater)

  • Problem of dialog box alert from QNX

    Hey guys,.

    I have here an application that I use the qnx alert dialog box in my program and I have everything works as it should.  The problem I have now is I want to add an image in the alert box.  Even after I created the code to add a picture to the alert, the alert displays always very well, and when I need it, except the image is not there.  Anyone know why this is happening?  even if I don't explicitly declare the variable image function and jusst call from the mxml that still does not work.  Here is my code.  Thank you guys!

    <>cript >

    Hi Brian,.

    the classes in the library dialogue QNX is not extensible, nor can they be treated as normal sprites or objects also. they are related to the underlying system. so adding an image will not actually add the image. the system is very precise as to what he wants and wants to display. so adding objects such as images does not work unfortunately. your best bet is to roll or use the library of jtegen, it has displayed a little back and forth with customizable dialog boxes:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-AIR/community-library-released-for-CL...

    hope that sheds some light. Good luck!

  • Cannot process the request because a modal dialog box or the alert is active

    I can't work for the life of me why I get this message when "cannot process the request because a modal dialog box or the alert is active. I simplified my code to reproduce the problem.

    All I want to do is have a dialog box that allows me to edit items on the page... But it does not seem to allow it. I must be missing something simple.

    var selection = app.activeDocument.selection[0];
    
    dialog = new Window('dialog');
    
    var button = dialog.add('button', undefined, 'Resize');
    
      button.onClick = function() {
    
      selection.geometricBounds = [0, 0, 10, 10];
    
    };
    
    dialog.show();
    

    If you use 'dialogue', then you must leave the modal state to interact with the app was done by closing the dialog box.

    var w = new Window('dialog');
    var v = w.add ('edittext');
    var b = w.add('button');
    b.onClick = function(){
        w.close(1);
    }
    if (w.show()==1) alert (v.text);
    

    Or switch to modal MOM like brother suggested dialog boxes...

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • How to remove "modal dialog box or alert" when the script is underway?

    Hi all

    I've created a script that will set the text of the rtf files from a folder to a document on a different page based on the correspondence. But if a font which was in doc file but absent on my mac, showed an error when running the script.

    This means that Indesign has opened a missing alert police box and script stop to this line and the error shows "cannot process the request because a modal dialog box or the alert is active.

    Is possible to remove this error and the script is continue to place all RTF files? I have little knowledge of try/catch.

    indesign #target

    myDoc var = app.documents.item (0);

    sourceFolder var = Folder("/Users/admin4/Desktop/ec_txt");

    myFiles = sourceFolder.getFiles ("*.rtf");

    var myFrame1 = myDoc.pageItems.itemByID (111076);  Switzerland

    var myDoc.pageItems.itemByID = myFrame2 (111114);  euro area

    var myFrame3 = myDoc.pageItems.itemByID (111146);  Germany

    for (var i = 0; i < myFiles.length; i ++)

    {

    switch (myFiles [i].name.slice (6, myFiles [i].name.lastIndexOf ("_")))

    {

    case 'Switzerland_en ':

    myFrame1.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Eurozone_en ':

    myFrame2.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Germany_en ':

    myFrame3.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    }

    }

    To remove alerts, you can use different levels of user interaction.

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    

    Not forgotten to reset after the end of the script with the following:

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    

    Hope it resolve your request.

    --------

    Green4ever

  • Save dialog and save dialog boxes under appear empty in several programs. I can't save my work

    Title explains it all.   I click on 'Save' or ' Save as ' DBDesigner4, SrcEdit, and other programs of the dialog box is EMPTY.  The "Favorites", "FTP", and "File Format" options appear and the buttons save and cancel at the bottom, but nothing else.

    I can't choose a destination directory, the name of the file to save, choose the type of file, and when I click on save, nothing happens.

    Hello

    How old are these programs and have you checked the updates or for compatibility with Windows 7 for these programs?

    It seems that these programs can use the older common dialog box has been updated.

    Go to the following site: Windows 7 Compatibility Center

    You will see a tab hardware and software that you can use to locate the product that you want to check for compatibility.

    Select the Compatibility FAQ which will explain how to use the compatibility Web site.

    If you find a piece of software/hardware installed that is not on the compatibility list, go to the website of the manufacturer of this product and check for updates.

    If you find that the program is not compatible with Windows 7 and the manufacturer of software will not support the product on Windows 7, try the following.
    HOW to: Install software using Compatibility Mode

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • to open page dialoge box comes several times

    I have a problem with a pop up dialoge box.  I created the script that, at the opening of the page, you will be asked if this is the first letter or 2nd letter.  A field will display or hide the base on this answer

    This occurs after the other page dialog box open code that checks if there are blank fields and mask models if these fields are empty

    The issue I'm having is that the box pop up asking the user to choose the first or second box - tick the box staff and click OK

    But then the box appears the 2nd time

    While they scroll to the bottom of the page to check one another - the first dialog occurs again

    And Yes, is the code to the open page only once

    It does not stop the form of work, it's just frustrating

    Yes. When you create a script of the doc level, it automatically generates a

    Statement of function with the specified name. You must remove that

    before you paste your code into the window.

Maybe you are looking for

  • Tecra A10 - change of resolution with Docking Station problem

    Hello I own a Tecra A10 - 14Q and I like it a lot - it is a very beautiful piece of hardware, including the functionality of UMTS. When the Tecra is moored to the dock Express, and the external monitor (Samsung SyncMaster 22 "with resolution 1600 * 1

  • Problems opening of session for the Administrators account.

    I have administrators account on my girls, my laptop. For some reason any I can no longer connect on the Administrators account, and when my daughter tries to add programs, etc., we can do because it will not be the password for the Administrators ac

  • Computer backup button does not appear in the "backup and Restore Center window.

    Hello! I've seen some computers that are running Windows Vista Edition home premium 32 y 64 Bits I can't do a "computer backup" in case I have to restore the computer from an Image made by this process because the "Computer backup" button is not in t

  • The remote VPN Clients and Internet access

    I apologize in advance if this question has already been addressed. I am currently using a PIX Firewall Version 6.1 520 (2) running. I have several remote users that VPN for the PIX. Once the VPN tunnel is started, they are more able to connect to in

  • JO 6500 e709n email address?

    I have a wireless Office Jet 6500 e709n, and it is on the list of compatible printers for iprint, but doesn't seem to be on the list for eprint. According to the information at the top of this forum, iprint is gradually released and is no longer avai