Cluster in a dialog box

Hi,
I am creating an application for a user to enter configuration data for running a test. I would like to have the user click on items on tree, and a dialog will pops up with a cluster control. Once they change settings in the cluster control and press an ok button, the dialog will close. Can this be done in labview, and if so how.
The effect I would like to have is similar like in the windows device manager, where you have items on a tree, and you double click them to display a dialog, where you change settings. After you change the settings, and close the dialog, the settings are configured.
Thank you,
-Tim

As attachement the VI for testing. By doubleclicking on the items of the listbox the underlaying VI should open.
Before running you have to create a few "DialogX.vi", where X is 1,2,3,...
Message Edited by Christian_M on 08-08-2007 08:03 AM
Attachments:
Listbox_dialog_test.vi ‏23 KB

Similar Messages

  • Display document data in dialog box

    I am using a folder level script to do the following:
    Get a specific XMP field value from an open PDF file:
    this.info.InDesignFileName
    Define a dialog box
    Create a menu item that calls the dialog box
    But for the life of me, I cannot get the dialog creation function to populate the XMP value into a static text item.
    The function below is modified from the example right out of the Acrobat Javascript API Reference.
    var inDesignNameDialog = {
    initialize: function (dialog) {
    // store InDesignFileName XMP
    //var indfn = this.info.InDesignFileName
    // Create a static text containing the current date.
    /*var todayDate = dialog.store()["date"];
    todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
    dialog.load({ "date": todayDate });
    var todayDate = dialog.store()["indfn"];
    currFN = "Date: " + this.info.InDesignFileName;
    dialog.load({ "indfn": currFN });
    commit:function (dialog) { // called when OK pressed
    var results = dialog.store();
    // Now do something with the data collected, for example,
    console.println("Your name is " + results["fnam"]
    + " " + results["lnam"] );
    description:
    name: "Personal Data", // Dialog box title
    align_children: "align_left",
    width: 350,
    height: 200,
    elements:
    type: "cluster",
    name: "Your Name",
    align_children: "align_left",
    elements:
    type: "view",
    align_children: "align_row",
    elements:
    type: "static_text",
    name: "First Name: "
    item_id: "fnam",
    type: "edit_text",
    alignment: "align_fill",
    width: 300,
    height: 20
    type: "view",
    align_children: "align_row",
    elements:
    type: "static_text",
    name: "Last Name: "
    item_id: "lnam",
    type: "edit_text",
    alignment: "align_fill",
    width: 300,
    height: 20
    type: "static_text",
    name: "InDesign File Name: ",
    char_width: 50,
    item_id: "indfn"
    alignment: "align_right",
    type: "ok_cancel",
    ok_name: "Ok",
    cancel_name: "Cancel"

    By gosh, you are right. Thanks for the tip.
    However, it still does not seem to be working:
    The static text field is just empty.
    The debugger shows error:
    parentDoc is not defined
    11:Menu:ExecReferenceError: parentDoc is not defined([object ADMDialog])@Menu:Exec:11
    execDialog([object Object])@:0
    @Menu:Exec:1
    Your name is 
    Code as it stands right now:
    var inDesignNameDialog = {
    initialize: function (dialog) {
    var currFN = dialog.store()["idfn"];
    currFN = parentDoc.info.InDesignFileName;
    dialog.load({ "idfn": currFN });
    commit:function (dialog) { // called when OK pressed
    var results = dialog.store();
    // Now do something with the data collected, for example,
    console.println("Your name is " + results["fnam"]
    + " " + results["lnam"] );
    description:
    name: "Personal Data", // Dialog box title
    align_children: "align_left",
    width: 350,
    height: 200,
    elements:
    type: "cluster",
    name: "Your Name",
    align_children: "align_left",
    elements:
    type: "view",
    align_children: "align_row",
    elements:
    type: "static_text",
    name: "First Name: "
    item_id: "fnam",
    type: "edit_text",
    alignment: "align_fill",
    width: 300,
    height: 20
    type: "view",
    align_children: "align_row",
    elements:
    type: "static_text",
    name: "Last Name: "
    item_id: "lnam",
    type: "edit_text",
    alignment: "align_fill",
    width: 300,
    height: 20
    type: "static_text",
    name: "InDesign File Name: ",
    char_width: 50,
    item_id: "idfn",
    alignment: "align_right",
    type: "ok_cancel",
    ok_name: "Ok",
    cancel_name: "Cancel"

  • New to Dialog Boxes and I'm stuck

    Seems there is no way to format a field in a Dialog Box. How can a field be checked to determine if the correct type of data was entered in it, when the user moves to the next field, before data is committed?
    I am stuck on how to limit the number of characters entered into the postal code and phone fields. I want to limit the number of numeric characters that can be entered in each phonenumber field ie  3 numbers, 3numbers and 4 numbers (999 999 9999)  And postal code field ie 3 characters and 3 characters (A9A 9A9)
    Also, once the user enters the required number of characters in the phone and postal code fields, the code should tab to the next field. And yes, I read about tab_first and next_tab, but don't understand how it works. The way I see it working is that once a phone or postal code field is filled with the required number of characters, control automatically tabs to the next field.
    I am using Adobe Acrobat Professional 8
    This code was written by trail and error using examples from various sources ie Acrobat JavaScript Scripting reference - version 7.0.5, Acrobat JavaScript Scripting Guide - version 7.0, and I have very little experience in creating a dialog box and its code - forgive the mess.
    //============================================================================
    var goon=true;
    var result;
    var address;
    var city;
    var province;
    var sign;
    var postalcodea;
    var postalcodeb;
    var homephone;
    var homephoneareacode;
    var homephoneprefix;
    var homephonenumber;
    var businessphone;
    var businessphoneareacode;
    var businessphoneprefix;
    var businessphonenumber;
    address = this.getField("Text1-2-Address").value;
    city = this.getField("Text1-2-City").value;
    var provincelist = new Array();
    provincelist[1] = " ";
    provincelist[2] = "Alberta";
    provincelist[3] = "British Columbia";
    provincelist[4] = "Manitoba";
    provincelist[5] = "New Brunswick";
    provincelist[6] = "Newfoundland & Labrador";
    provincelist[7] = "Northwest Territories";
    provincelist[8] = "Nova Scotia";
    provincelist[9] = "Nunavut";
    provincelist[10] = "Ontario";
    provincelist[11] = "Prince Edward Island";
    provincelist[12] = "Québec";
    provincelist[13] = "Saskatchewan";
    provincelist[14] = "Yukon";
    var sign = new Array();
    for (var i=0; i<15; i++)
                sign[i] = "-";
                if(provincelist[i] == this.getField("Client's Full Province Name").value)
                            sign[i] = "+";
    postalcodea = "";
    postalcodeb = "";
    if(this.getField("Text1-2-Postal-Code").value != "")
                postalcodea = this.getField("Text1-2-Postal-Code").value;
                postalcodea = util.printx("A9A", postalcodea);
                postalcodeb = this.getField("Text1-2-Postal-Code").value;
                postalcodeb = postalcodeb[4]  + postalcodeb[5] + postalcodeb[6];
    homephoneareacode = "";
    homephoneprefix = "";
    homephonenumber = "";
    if(this.getField("Text1-2-Home-Phone-Number").value != "")
                homephone = util.printx("9999999999", this.getField("Text1-2-Home-Phone-Number").value);
                homephoneareacode = homephone[0] + homephone[1] + homephone[2];
                homephoneprefix = homephone[3] + homephone[4] + homephone[5];
                homephonenumber = homephone[6] + homephone[7] + homephone[8] + homephone[9];
    businessphoneareacode = "";
    businessphoneprefix = "";
    businessphonenumber = "";
    if(this.getField("Text1-2-Business-Phone-Number").value != "")
                businessphone = util.printx("9999999999", this.getField("Text1-2-Business-Phone-Number").value);
                businessphoneareacode = businessphone[0] + businessphone[1] + businessphone[2];
                businessphoneprefix = businessphone[3] + businessphone[4] + businessphone[5];
                businessphonenumber = businessphone[6] + businessphone[7] + businessphone[8] + businessphone[9];
    var dialog2 =
                initialize: function(dialog)
                             dialog.load(
                                                     stat:     "Client Address and Phone Information is required in forms you are about to link to. To save time, enter Address and Phone Information before linking to these documents.",
                                                    str1: address,
                                                    str2: city,
                                                    stra: postalcodea,
                                                    strb: postalcodeb,
                                                    str5: homephoneareacode,
                                                    str6: homephoneprefix,
                                                    str7: homephonenumber,
                                                    str8: businessphoneareacode,
                                                    str9: businessphoneprefix,
                                                    sts1: businessphonenumber,
                                                    str3:
                                                                "  ": (sign[1] + "1"),
                                                                "Alberta": (sign[2] + "2"),
                                                                "British Columbia": (sign[3] + "3"),
                                                                "Manitoba": (sign[4] + "4"),
                                                                "New Brunswick": (sign[5] + "5"),
                                                                "Newfoundland & Labrador": (sign[6] + "6"),
                                                                "Northwest Territories": (sign[7] + "7"),
                                                                "Nova Scotia": (sign[8] + "8"),
                                                                "Nunavut": (sign[9] + "9"),
                                                                "Ontario": (sign[10] + "10"),
                                                                "Prince Edward Island": (sign[11] + "11"),
                                                                "Québec": (sign[12] + "12"),
                                                                "Saskatchewan": (sign[13] + "13"),
                                                                "Yukon": (sign[14] + "14"),
                cancel: function(dialog)
                            return;
                destroy: function(dialog)
                            return;
                commit:function (dialog)
                            results = dialog.store();
                            var elements = dialog.store() ["str3"]
                            province = "";
                            for(var i in elements)
                                        if(elements[i]  > 0)
                                                    province = i;
                            return;
                            description:
                            name: "Address and Phone Information",
                            //align_children: "align_left",
                            //type: "static_text",
                            //char_height: 9,
                            //width: 350,
                            //height: 75,
                            elements:
                                                    type: "cluster",
                                                    name: "",
                                                    align_children: "align_left",
                                                    elements:
                                                                            align_children: "align_top",
                                                                            alignment: "align_fill",
                                                                            type: "view",
                                                                            width: 254,
                                                                            elements:
                                                                                                     alignment: "align_fill",
                                                                                                     bold: true,
                                                                                                     font: "default",
                                                                                                     char_height: 9,
                                                                                                     italic: true,
                                                                                                     item_id: "stat",
                                                                                                     multiline: false,
                                                                                                     type: "static_text",
                                                                                                     width: 150,
                                                                                                     height: 50,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "Address: "
                                                                                                     item_id: "str1",                         
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 60,
                                                                                                     height: 20,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "       City: "
                                                                                                     item_id: "str2",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 16,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "Province: "
                                                                                                     item_id: "str3",
                                                                                                     type: "popup",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 16,
                                                                                                     type: "static_text",
                                                                                                     name: "Postal Code: "
                                                                                                     item_id: "stra",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "strb",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "Home Phone Number: ("
                                                                                                     item_id: "str5",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     next_tab: 3,
                                                                                                     type: "static_text",
                                                                                                     name: ")"
                                                                                                     item_id: "str6",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "str7",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 4,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "Business Phone Number: ("
                                                                                                     item_id: "str8",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: ")"
                                                                                                     item_id: "str9",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "sts1",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 4,
                                                                                                     height: 20,
                                                    alignment: "align_center",
                                                    type: "ok_cancel",
                                                    ok_name: "Continue",
                                                    cancel_name: "Cancel"
    var dialog3 =
                initialize: function (dialog)
                cancel: function(dialog)
                            goon=false;
                            return;
                destroy: function(dialog)
                            return;
    while (goon)
                result = app.execDialog(dialog2);
                if (result=="cancel")
                            goon=false;                  
                if (result=="ok")
                            this.getField("Text1-2-Address").value = results["str1"];
                            this.getField("Text1-2-City").value = results["str2"];
                            this.getField("Client's Full Province Name").value = province;
                            this.getField("Text1-2-Postal-Code").value = results["stra"] + " " + results["strb"];
                            this.getField("Text1-2-Home-Phone-Number").value = results["str5"] + results["str6"] + results["str7"];
                            this.getField("Text1-2-Business-Phone-Number").value = results["str8"] + results["str9"] + results["sts1"];
                            goon=false;

    If you know a link that has what he wants, wouldn't it be prudent just to provide that?
    I got overwhelmed trying to understand all of the different related elements of the Flash family when I was starting, so I know what that's like. Roughly (and Ned might want to correct or clarify some of this), Actionscript 3 is the programming language Flash/Flex/AIR content is based upon. Flash is a blanket term encompassing the developing environment (Flash Pro), code libraries, and runtime (Flash Player). AIR is a runtime environment built upon Flash Player, but with added functionality and cross-platform support. Flex is an extension of Flash, offering MXML components in addition to the libraries available in Flash Pro. Adobe intends for you to use Flex with Flash Builder, a separate IDE built upon Eclipse.
    I haven't used MXML yet, but my impression is that (at least in Flash Builder) it is functionally similar to WYSIWYG editing in Microsoft's Visual Studio.
    If you are developing games, you can edit entirely in Flash Pro, entirely in Flash Builder, or combine both of them. Flash Pro lets you put code on the timeline, which can make some coding much easier, but also makes it very, very easy to write messy and disorganized code. Flash Builder doesn't provide access to the timeline and is intended for class-based development. Personally, I like to combine the two, writing some timeline code in Pro and doing my class files in Builder, but I'm not the greatest developer.
    As a heads-up, the code editor in Flash Pro is absolutely terrible, and is full of bugs that have existed for many generations, because Adobe wants you to buy Flash Builder for the additional $600, but if you are a student or "unemployed", you can get FB for free from Adobe.

  • Validating Emails fields in my Dialog Box

    Hi all, I want to validate emails in my dialog box. My field are automatically fill by an XML and I want to validate them. I am able to validate them when the user enter a new email but if the user do not enter a new email and hit "OK", there is no validation. Any idea? Thanks!
    var submitEmailTo = "[email protected]\rclient@somewherecom"
    var submitEmailFrom = "[email protected]"
    var patt = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/g;
    var dialog1 = {
        submitEmailTo: "",
        submitEmailFrom: "",
        submitEmailMessage: "",
        initialize: function (dialog)
            dialog.load(
                "emto": submitEmailTo
            dialog.load(
                "emfr": submitEmailFrom
        commit: function (dialog)
            var results = dialog.store();
            this.submitEmailTo = results["emto"];
            this.submitEmailFrom = results["emfr"];
            this.submitEmailMessage = results["mess"];
        emto: function (dialog)
        var data = dialog.store(["emto"])
        emtoString = data["emto"]
        emtoArray = emtoString.split("\r")
        for (var i=0;i<emtoArray.length;i++)
            if (emtoArray[i].match(patt) == null)
                    app.alert("Le courriel \"" + emtoArray[i] + "\"ne semble pas valide.", 1, 0, "Validating");
        description:
            name: "Job Information", // Dialog box title
            align_children: "align_row",
            width: 400,
            height: 200,
            elements: [
                type: "cluster",
                name: "Email Information",
                align_children: "align_right",
                elements: [
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "From (CVSC): "
                        item_id: "emfr",
                        type: "edit_text",
                        alignment: "align_left",
                        width: 400,
                        height: 20
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "To: "
                        item_id: "emto",
                        type: "edit_text",
                        multiline: true,
                        alignment: "align_left",
                        width: 400,
                        height: 30
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "mess: "
                        item_id: "emto",
                        type: "edit_text",
                        multiline: true,
                        alignment: "align_left",
                        width: 400,
                        height: 70
                    alignment: "align_right",
                    type: "ok_cancel",
                    ok_name: "Ok",
                    cancel_name: "Cancel"
    app.execDialog(dialog1)
    this.info.submitEmailTo = dialog1.submitEmailTo
    this.info.submitEmailCC = dialog1.submitEmailCC
    this.info.submitEmailMessage = dialog1.submitEmailMessage

    Actually this code is  attached to a button action. When my form is opened at first, my fields are populated and all the extra information are send to custom metadata.
    The opearator here, will hit a button  and a big dialog box appear with all the job information. You see actually only the email cluster. The idea is to help the operator to  easily build an email with copy and paste. Sometime the emails fields will be filled automatically and sometime the operator will fill them.
    The reason I go through a dialog box is I don't want the client to see to much information and the email is sent by a another application.
    My first idea was to put a validation script on the "OK" button but it seems not possible to "cancel" this action.

  • How to create Information Dialog boxes in web Dynpro

    Hi,
    'm new to webdynpro.
    Can any body help me to create a dialog box.
    I would like to know how to create dialog boxes of type information, confirmation and warning
    expects reply
    thanks
    smitha

    to create confirmation dialog I tried the code
         IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
        String dialogText = "The email was successfully sent!";
        IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText, controllerInfo.findInEventHandlers("ok"), "ok");
        dialog.addChoice(controllerInfo.findInEventHandlers("newEmail"), "new email");
        dialog.open();
    and I got error like:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:58)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:926)
         at com.enteg.systallocpkg.LoginView.onActionLogin(LoginView.java:157)
         at com.enteg.systallocpkg.wdp.InternalLoginView.wdInvokeEventHandler(InternalLoginView.java:137)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    I don't know how to solve this
    can any body help me
    Smitha

  • Sms send message VI Dialog box

    Whenever I get an error using the SMS Send Message.vi I get a dialog box that disables my program unless I manually answer the prompt.  Can NI (or anybody else) please
    1. Have an option to disable the dialog box
    2. Unpassword protect the VI so I can do it myself
    3. Give me some other option I missing.
    Thank you
    Robert

    Hi Robert,
    Since the Clear Errors VI is not available with a PDA application, you can use a case structure to clear errors instead.  Wire the error out of SMS Send Message to the case selector.  In the Error case place an error cluster constant (right click on error out and Create >> Constant) to pass through the remainder of your program.  For the No Error case, pass the error wire straight through. 
    Message Edited by Jennifer_R on 02-04-2008 06:54 AM
    Jennifer R.
    National Instruments
    Applications Engineer
    Attachments:
    Clear Error.JPG ‏5 KB

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Open dialog box....

    Hi Everyone,
    I have designed a form in which user has to input the path where he wants to save his report.
    Like c:\test.PDF
    what i want to do is that when user click a button againts this field a dialog box should appear in which he can select the location, like in Notepad File > Open or File Save.
    and after selecting the path and closing the box the path should be display in the text field which i have provid to my user. Is it possible to attach the default file extension automatically in the text box?
    like if user have written c:\test it should be automatically converted into c:\test.PDF? Any Idea?
    How is this posible in Developer 6i. I will be very thankful if someone can help me solving this problem.
    Regards,
    Imran

    use GET_FILE_NAME - it's documented in the help - client server only

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

  • When I try to open photoshop I get a "help adobe improve it's produts" dialog box every time and it freezes

    When I try to open photoshop I get a "help adobe improve it's produts" dialog box. No matter what I do, I get this box when I try to open a file in photosop never opens although it appears to be

    Hi Steadyalberta,
    Something might be preventing Photoshop from being able to save your selection on the dialog window properly. You might try right clicking and choose Run as Administrator on the Photoshop icon when launching (Windows) or test if the behavior persists when using a newly created admin user account.
    Hope that helps,
    - Dave

  • Why doesn't firefox close out when I'm done with it and close it; when next I try to open firefox again I get a dialog box telling me firefox is open and to close it or restart my computer? I'm tired of doing that one of more times a day.

    1. This happens at least once a day, and sometimes multiple times. Today it's happened twice, thus far. My home page is FoxNews.com and if I leave it up overnight or for longer periods during the day firefox doesn't allow the refresh of the home page it just goes to yahoo 404--error can't find the webpage. Then when I enter FoxNews.com it adds a /error to the url and doesn't allow me to go to MY homepage. So I close firefox and then if I try to reopen it and then I get the dialog box saying firefox is open and to close it or restart my computer. Very aggravating. 2. Also the Adobe flash drive update always fails. 3. Webpages get in loops and fail to load to the point I have to stop and refresh or close out and reopen.

    One situation in which Command+w or Ctrl+w might not work is if the "focus" is in a plugin such as the Flash player used on Youtube after you interact with the player controls. Firefox will continue to send the keyboard input to the plugin until you move the focus back to the page. Does that account for any of the problem?

  • In javascript how to invoke save as dialog box ,which saves .pdf files only

    Through javascript i generated a save as dialog box. the main problem is , it is only saving .html and .doc files by default. how to restrict it to save only .pdf files.
    the code i used is
    function SaveFile(fname)
    document.execCommand('SaveAs', null, fname)
    <input type="button" value ="save" onclick="SaveFile('');">
    /**********************************************************************/

    this is actually a Java forum its slightly different from javascript
    but try this not sure if it helps
    <input type="button" value ="save" onclick="SaveFile('.pdf');">

  • File Format options not appearing in the Save As dialog box - InDesign CC

    So i was working with a legacy file (an .eps from illustrator4) that i placed into InDesign CC, and when i went to export as a jpg, the option to choose a different file format from the bottom of the dialog box was gone. Did i hit some crazy shortcut to remove the options, or is this a bug that occurs when working with certain legacy files? I've restarted InDesign, rebooted my laptop, deleted my Adobe preferences, reset my adobe warning dialogs, and I still cant export or save as any other file format because the option doesnt appear. And it doesnt matter if i create a new file or open an existing one. Please help. See the pic below. No option for file format on the bottom of the dialog box.

    Thank you very much!
    Reinstalling worked, but i'd still kinda like to know what caused this problem & if this will continue to happen. To me, reinstalling is pretty much like having to reboot anytime you go to IT -- they dont know what the problem is, they just know how to fix/stop it.

  • Copy/paste in save as dialog box

    I am using your pdf plugin with Safari but when I click the save icon I cannot paste text into the file name box.  I have to manually type it in.  Can I copy & paste in the save dialog box?

    Safari 6.0.1 OS X 10.8.2 Reader 10.1.4
    The plugin works for me I just need copy/paste ability when saving the file.

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

Maybe you are looking for

  • Error Starting Database Control when upgrading 10.2.0.1 - 10.2.0.4

    Ran the upgrade on Monday. Not a grid. Single instance. It failed and we were forced to roll back using an OS backup... The database upgrade assistant failed with an error that it 'could not complete the Enterprise Manager configuration with the foll

  • Iweb photo page won't work in IE6?

    When my site is published to a folder, photo page and album page work brilliantly in Safari on a Mac but will not display in IE6 on a PC. Any idea why or how to cure this? The latest version of java script is loaded on the pc's. Any idea why or how t

  • Standard key

    Hi all,     how can i assign standard text key  for BOM in cs02. Regards, P.

  • GuiXT  valid throughout the entire system

    <b>GuiXT</b> I need to customize my VA01 transaction using GuiXT. But I dont want it to be user-specific on user's PC but throughout the entire system. The document that i have seen says that put the GuiXT script file on application server for the sa

  • Should i install RAID

    should i install my raid ? does it really help if so in which way and if i were to buy an 80gb sata hard drive could i hook that one up and use my old 120gig for storage at the same time??????