How to display a screen as Popup Dialog box in Module Pool

Hi All,
I have a requirement to display a popup dialoge box into module pool.
i need to display a screen as a popup on the current screen on a button click.I have developed a screen and in atribute tab i have defined the screen type as modal dialog box but  it is displaying previous screen screen is hide i want to display on the same screen as a popup.
Thanks
Narendra

Hi Narendra,
Try to trigger the popup once it is done with the previous action might be anything.
i have shown one sample code where after i click on save button when the data is saved successfully
after that it has to trigger me a popup asking for conformation for the next action.
A small piece of code
INSERT INTO ZORMD1 VALUES WA_ZORMD1.
    IF SY-SUBRC = 0.
      G_LOCAL1 = 0.
      MESSAGE S000.  " Data saved successfully and immediately call the popup
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
        EXPORTING
  DEFAULTOPTION  = 'Y'
TEXTLINE1 = 'SUCCESSFULLY SAVED'
          TITEL = 'POPUP FOR conformation'
         START_COLUMN         = 25
         START_ROW            = 10
        CANCEL_DISPLAY       = 'X'
       IMPORTING
ANSWER  = G_PRINT
IF G_PRINT = 'J'.
PERFORM PRINT_OUT.
ENDIF.
Do the modification according to your requirement.
Cheers!!
VEnk@

Similar Messages

  • How to display image using from open dialog box?

    I've developed a program that can display image by named the file that I want to display in my program.
    But how can I display an image from an Open Dialog Box?
    I attch here with my program.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    public class SuDisplayTool6 extends JFrame implements InternalFrameListener,ActionListener
    JTextArea display1;
    JDesktopPane desktop;
    JInternalFrame displayWindow;
    JInternalFrame listenedToWindow;
    static final String SHOW = "Show Image";
    static final int desktopWidth = 800;
    static final int desktopHeight = 600;
    private static final int kControlX = 88 ;
    private DrawingPanel panel;
    public SuDisplayTool6(String title)
    super("Internal Frame");
    desktop = new JDesktopPane();
    desktop.putClientProperty("JDesktopPane.dragMode","outline");
    desktop.setPreferredSize(new Dimension(desktopWidth, desktopHeight));
    setContentPane(desktop);
    addMenu();
    createDisplayWindow();
    desktop.add(displayWindow);
    Dimension displaySize = displayWindow.getSize();
    displayWindow.setSize(desktopWidth, displaySize.height);
    protected void createDisplayWindow()
    JButton b1 = new JButton("Show Image");
    b1.setActionCommand(SHOW);
    b1.addActionListener(this);
    display1 = new JTextArea(3,30);
    display1.setEditable(false);
    JScrollPane textScroller = new JScrollPane(display1);
    textScroller.setPreferredSize(new Dimension(200,75));
    textScroller.setMinimumSize(new Dimension(10,10));
    displayWindow = new JInternalFrame("Header Graph",true,false,true,true);
    JPanel contentPane = new JPanel();
    contentPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
    contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
    contentPane.add(Box.createRigidArea(new Dimension(0,5)));
    contentPane.add(textScroller);
    b1.setAlignmentX(CENTER_ALIGNMENT);
    contentPane.add(b1);
    displayWindow.setContentPane(contentPane);
    displayWindow.pack();
    displayWindow.show();
    protected void createListenedToWindow()
    listenedToWindow = new JInternalFrame("Image",true,true,true,true);
    listenedToWindow.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    listenedToWindow.setSize(800,450);
    panel = new DrawingPanel();
    listenedToWindow.setContentPane(panel);
    public void internalFrameClosing(InternalFrameEvent e)
    public void internalFrameClosed(InternalFrameEvent e)
    listenedToWindow = null;
    public void internalFrameOpened(InternalFrameEvent e)
    public void internalFrameIconified(InternalFrameEvent e)
    public void internalFrameDeiconified(InternalFrameEvent e)
    public void internalFrameActivated(InternalFrameEvent e)
    public void internalFrameDeactivated(InternalFrameEvent e)
    public void actionPerformed(ActionEvent e)
    if (e.getActionCommand().equals(SHOW))
    if (listenedToWindow == null)
    createListenedToWindow();
    listenedToWindow.addInternalFrameListener(this);
    desktop.add(listenedToWindow);
    listenedToWindow.setLocation(desktopWidth/2 - listenedToWindow.getWidth()/2,
    desktopHeight - listenedToWindow.getHeight());
    listenedToWindow.show();
    else
    public static void main(String[] args)
    JFrame frame = new SuDisplayTool6("Su Display Tool");
    frame.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    frame.pack();
    frame.setVisible(true);
    private void addMenu()
    JMenuBar menuBar;
    JMenu menu, submenu;
    JMenuItem menuItem;
    final JFileChooser fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    menuBar = new JMenuBar();
    setJMenuBar(menuBar);
    menu = new JMenu("File");
    menuBar.add(menu);
    menuItem = new JMenuItem("Open...");
    menu.add(menuItem).addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    int returnVal = fc.showOpenDialog(SuDisplayTool6.this);
    menuItem = new JMenuItem("Save");
    menu.add(menuItem);
    menuItem = new JMenuItem("Save As...");
    menu.add(menuItem).addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    int returnVal = fc.showSaveDialog(SuDisplayTool6.this);
    menuItem = new JMenuItem("Close");
    menu.add(menuItem);
    menu.addSeparator();
    menuItem = new JMenuItem("Exit");
    menu.add(menuItem).addActionListener(new WindowHandler());
    menu = new JMenu("Edit");
    menuBar.add(menu);
    menu = new JMenu("View");
    menuBar.add(menu);
    menuItem = new JMenuItem("Zoom In");
    menu.add(menuItem);
    menuItem = new JMenuItem("Zoom Out");
    menu.add(menuItem);
    menu.addSeparator();
    submenu = new JMenu("Header");
    menuItem = new JMenuItem("CDPX");
    submenu.add(menuItem);
    menuItem = new JMenuItem("SX");
    submenu.add(menuItem);
    menuItem = new JMenuItem("CX");
    submenu.add(menuItem);
    menu.add(submenu);
    menu = new JMenu("Help");
    menuBar.add(menu);
    menuItem = new JMenuItem("About");
    menu.add(menuItem).addActionListener(new WindowHandler());
    private class WindowHandler extends WindowAdapter implements ActionListener
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    if(e.getActionCommand().equalsIgnoreCase("exit"))
    System.exit(0);
    else if(e.getActionCommand().equalsIgnoreCase("About"))
    JOptionPane.showMessageDialog(null,"This program is written by Nenny Ruthfalydia.","About",JOptionPane.PLAIN_MESSAGE);
    class DrawingPanel extends Panel
    final ImageIcon imageIcon = new ImageIcon("image8.jpg");
    Image image = imageIcon.getImage();
    public void paint (Graphics g)
    g.drawImage(image, 10, 10, this);

    so much wrong with this post...
    a) use the code tags to format the code. Now it is an unreadable mess
    b) scriptlets in your JSP. I don't even want to look at that mess. Learn how to combine servlets and JSPs to create clean, readable and maintainable code in which view logic and business logic are separated. The rule: no java code in your JSP, only tags and EL expressions (learn about JSTL).
    So you get a blank screen. When you do "view source" in your browser, do you see anything there? If nothing, check if you are behind a proxy server. The solution to a post of not too long ago was that the blank screen was being caused by faulty proxy server settings (the user figured it out himself, I don't know what was done to solve it).
    If all this fails you will have to do some debugging magic using your favorite IDE. It will probably be something stupid you are overlooking in the code. It is annoying, but debugging code that does not work is a big part of your job. Better get good at it.

  • How to displays the standard open file dialog box in Oracle Apps Server

    Hi,
    I am having a form, where i am opening a file and putting that file content in a text box.
    This is my code written in WHEN-BUTTON-PRESSED trigger:
    declare
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(8000);
    filename VARCHAR2(30);
    BEGIN
    filename:=GET_FILE_NAME('d:\Rajesh\Practice', File_Filter=>'Text Files (*.txt)|*.txt|',select_file=>false);
    in_file := Text_IO.Fopen(filename, 'r');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    :text_item5:=substr(:text_item5||linebuf||chr(10),1,5000);
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Put_Line('Closing the file...');
    Text_IO.Fclose(in_file);
    END;
    I have posted this in ORacle Apps Server.Where i was not able to get the Open Dialoq Box.It is giving an error as
    "FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000.".
    I think the GET_FILE_NAME function is not supported in the Apps Server.
    Is there any alternative solution for getting the OPEN DIALOG WINDOW in Oracle Apps Server?
    Pls let me know.

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • Printing checkbox multiple time on dialog box of module pool.

    hey guys,
    i want to put checkboxes on my dialog box (popup) With each entry in my ITAB. So i will be dynamic.
    Example;- i have 5 names of mentor in my ITAB-NAMES. now i want to put their names on popup screen with a CHECKBOX so that i can select multiple and store the selected names of mentor in another table.
    i have created the Popup but not able to create dynamic checkboxes.
    thanks in advance.

    Hi.,
    Check this links: http://wiki.sdn.sap.com/wiki/display/ABAP/OBJECTORIENTEDALV+Guide
    Example of an OO ALV that reflects changes from an editable column...
    which helps for your purpose.,
    also http://wiki.sdn.sap.com/wiki/display/profile/2007/07/23/OOPSALVin+ABAP
    For further info., search in SND or google., you will get so many links.,
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Need help regarding Modal dialog box in module pool programming

    Hi experts,
    my program need a dialo box to popup and take some data and on pressing save button in the dialog box, the popup should close and the values in the previous screen should be updated.
    my problem is, when i execute the program, i am unable to close the dialog box. i tried use sy-ucomm but found it of no use.
    please tell me the way to access the close button in the dialog box.

    Hi,
    Use the function module :-
    Call function ‘LC_POPUP_TO_CONFIRM_STEP’
    Exporting
    TEXTLINE1 = ‘YES’
    TEXTLINE2 = ‘NO’
    TITEL = ‘R U WANT TO SAVE’
    Exporting
    ANSWER = ‘Y’.
    IF SY-SUBRC = ‘Y’.
    LOGIC TO SAVE DATA….
    ENDIF.
    REGARDS,
    Mekala vijay

  • How to 'Exit' OO ALV screen type 'Model Dialog Box' using 'X' on the top?

    HI Experts,
    I have the below issue in my OO ALV screen type 'Model Dialog Box'...
    The main screen is OO ALV and displays rows of data,
    When select a line(row) and push any buttons
    ( u201CAdd Materialu201D, u201CAdd Binu201D, u201CModify Binu201D, u201CMove Materialu201D, u201CDisplay Batchesu201D)
    the program will take you to next screen and it is a u201CModal dialog boxu201D type.
    That screen has two buttons to exit ( u201CSAVEu201D and u201CCancelu201D ) on the bottom of the screen.
    User would like to exit the screen using u201CXu201D on the top line right corner.
    That u201CXu201D is not on for the u201CModal dialog boxu201D type screen.
    How do I add event to close that screen using u201CXu201D?
    Thanks in advance,
    John.

    data :GR_EVENT_HANDLER    TYPE REF TO LCL_EVENT_HANDLER,
           GR_DIALOG_CONTAINER TYPE REF TO CL_GUI_DIALOGBOX_CONTAINER,
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS :
        HANDLE_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
        IMPORTING E_UCOMM,
        HANDLE_ON_DIALOGBOX_CLOSE FOR EVENT CLOSE OF CL_GUI_DIALOGBOX_CONTAINER
        IMPORTING SENDER,
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    METHOD HANDLE_USER_COMMAND.
      CASE E_UCOMM.
         WHEN 'DBCON'.
            PERFORM DIALOG_DISPLAY.
      ENDCASE.
      ENDMETHOD.                    "HANDLE_USER_COMMAND
      METHOD HANDLE_ON_DIALOGBOX_CLOSE.
        IF NOT SENDER IS INITIAL.
          CALL METHOD SENDER->FREE
            EXCEPTIONS
              OTHERS = 1.
          FREE GR_DIALOG_CONTAINER.
          CLEAR GR_DIALOG_CONTAINER.
        ENDIF.
      ENDMETHOD.                    "handle_on_dialogbox_close
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    FORM DIALOG_DISPLAY .
      DATA : L_TEXT(255),
                  L_LIN TYPE I.
      IF GR_DIALOG_CONTAINER IS INITIAL.
        CREATE OBJECT GR_DIALOG_CONTAINER
          EXPORTING
          PARENT                      =
            WIDTH                       = 400
            HEIGHT                      = 150
            STYLE                       = CL_GUI_CONTROL=>WS_SYSMENU
          REPID                       =
          dynnr                       = '100'
          LIFETIME                    = lifetime_default
            TOP                         = 100
            LEFT                        = 350
            CAPTION                     = 'Error Dialog Box'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
            EVENT_ALREADY_REGISTERED    = 6
            ERROR_REGIST_EVENT          = 7
            OTHERS                      = 8.
      ENDIF.
      SET HANDLER GR_EVENT_HANDLER->HANDLE_ON_DIALOGBOX_CLOSE FOR GR_DIALOG_CONTAINER.
      REFRESH IG_INDEX_ROWS.
      CLEAR   WG_SELECTED_ROW.
      CALL METHOD GR_ALVGRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = IG_INDEX_ROWS.
      DESCRIBE TABLE IG_INDEX_ROWS LINES L_LIN.
      IF L_LIN GT 0.
        READ TABLE IG_INDEX_ROWS INTO WG_SELECTED_ROW INDEX 1.
        READ TABLE IG_SAL INTO WG_SAL INDEX WG_SELECTED_ROW-INDEX.
        CONCATENATE 'Item' WG_SAL-POSNR 'of Sales Order' WG_SAL-VBELN 'has been selected' INTO L_TEXT
                  SEPARATED BY SPACE.
      ELSE.
        L_TEXT = 'Enter Netvalue greater than 500'.
      ENDIF.
      CALL METHOD GR_HTMLD->ADD_GAP
        EXPORTING
          WIDTH = 1.
      CALL METHOD GR_HTMLD->ADD_TEXT
        EXPORTING
          TEXT = L_TEXT.
      CALL METHOD GR_HTMLD->NEW_LINE.
    Display the data
      CALL METHOD GR_HTMLD->DISPLAY_DOCUMENT
        EXPORTING
          PARENT = GR_DIALOG_CONTAINER.
    ENDFORM.                    " DIALOG_DISPLAY

  • How do I upgrade Adobe reader - currentlyevery time I try to download a PDf file on my macpro I get a grey screen  and a dialog box that says adobe reader is blocked for this website...

    Help - a couple of weeks ago I tried up upgrade adobe reader but it never completed loading as far as I can find / that night would never finish
    ( how would I know , where would I check?)
    now every time I need to download a PDF file ( dental claim forms tonight) I get a grey screen with a dialog box that says Adobe reader blocked for this site
    and that happens on any site where I am trying to download a PDF…?

    What is your operating system?  Reader version?  Downloading from what browser?

  • How to create application toolbar in modal dialog box in selection-screen

    Hi Experts,
    how to create application toolbar in modal dialog box in selection-screen?
    Regards,
    Swapnika

    Hi,
    Check the following link regarding Model dialog box and appication toolbar
    http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
    It helps in solving your problem.
    Thanks.
    Ramya.

  • How do I get rid of the dialog box and audio that is in the bottom left of the screen that keeps telling me what I'm doing or need to do?

    How do I get rid of the dialog box and audio that is in the bottom left corner of the screen running script and audio of  what I'm doing or need to do?

    Go into System Preferences, select Universal Access, turn off Voiceover.

  • How to simply display resulting text in a dialog Box

    Is there a way to simply display resulting text in a dialog Box - not a text edit document?
    Doug_

    Thanks that's very helpful
    What I am trying to to is to create a workflow that opens mail and displays iCal TO DO's that I have created throughout the day tagged with the word MAIL so they can be filtered.
    At the moment the ACTIONS are:
    Launch Mail
    Get New Mail
    Find TO DOs in iCal (Who's SUMMERY includes MAIL)
    I get iCal To Do's as a result
    But then...I can find no options to display the iCal Events that result.
    Putting in the Applescript you posted displays a blank dialog box. This tells me that there is no text in the result.
    Yet if I put a SPEAK TEXT in after find TO DOs it dutifully speaks my filtered TO DO's
    I thought I might just try a NEW MAIL MESSAGE action.
    This works great in the workflow. The content of the new mail is the filtered TO DOs.
    But if I save it as an application (the form I need it in), mail simply opens blank when it reached that part of the work flow.
    What would you recommend?
    Thank again for your help,
    Doug_
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter

  • How do I call browser Save As dialog box before downloading pdf files?

    How do I call browser Save As dialog box before downloading pdf files?
    Here's my favorite scenario:
    1. User clicks button
    2. Save As dialog displays
    3. User chooses location
    4. A set of PDF files download to that location OR a single zip file downloads
    Background:
    I want to ensure the user sees that files are being downloaded. I'm delivering content to users who may not be Web savvy.
    Concern:
    1. User has no clue how to find downloaded files or that files have even downloaded.
    2. I'd like to deliver the set as zip files. Not sure if self-opening zip files still exist.
    FYI:
    I'm using jQuery UI buttons. Not sure if that factors into response.

    Just for clarity, I'm not forcing a download. The user will click a button.
    Click a button or click a link, either way you're technically executing a script to force a download.
    I'm assuming that's the php file resident on the server.
    Yes but that's only part of it.  Once the contact form executes, another script is called up which opens the browser's download dialogue.
    Is there a php script for simply calling the Open/Save dialog box?
    Yes. 
    <?php
    /* This short script forces a file download.
       For simplicity, it's intended to be used for a single file.
       You can use multiple copies of this file (with unique names)
       with different variable values to use it with multiple files.
       Use of this script has a side-effect of hiding the location of the
       file on your server.
    // full server path to file to be downloaded (including filename)
    $Path2File = "path/to-file-on-server.zip";
    // the filename
    $theFileName = "name-of-file.zip";
    //the work gets done here
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($Path2File));
    header ("Content-Disposition: attachment; filename=$theFileName");
    readfile($Path2File);
    ?>
    Name this file zip2download.php.
    Add a link to your HTML page:
    <a href="zip2download.php">Download Zip</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Message Popup dialog box - "Value invalid or out of range"

    Hi
    From time to time I get an error when trying to display Message Popup dialog boxes. The error appears sporadically and always disappears when I restart TestStand. This happens for all Message Popup dialog boxex (TS standard box).
    The error is "Value invalid or out of range". I get no clues as to why this occurs.
    Any ideas?
    TestStand 2010 SP1 running on Windows 7 64bit.
    Attachments:
    Untitled.png ‏29 KB

    Can you provide the sequence containing that step?
    Without seeing the parameters, its quite hard to give you some hints where to look....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Help with JOptionPane -- Popup Dialog Boxes

    I need to create a popup dialog box that looks like this:
    http://img88.imageshack.us/img88/6900/jbuttonpm2.jpg
    red = JTextField (Where the user will input a number that I need to store)
    green = Drop Down List with 1,2,3 as choices
    blue = JButtons for OK and Cancel
    So yeah, I need an easy way to collect a bunch of information from the user, and this was the best way I could think to do it. The user has to enter a number for all of the fields, but is there any way for the field to have a value of 0 there by default?
    I read some of the Java tutorials for using the JOptionPane's showXXXDialog but I wasn't sure if that can't of method could create such a complex dialog box. Any help would be really appreciated. How can I make that dialog box and get all the input I need from it?

    Create a panel containing red and green and pass it as message to JoptionPane.showConfirmDialog with OK_CANCEL_OPTIONS to have blue. If it returns OK_OPTION read and use values from panel. That's it.

  • How to display another window by using Check box

    Hi Friends,
    I have one doubt in Webdynpro with java. How to display another window by using Check box?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in Second View. So in Second View I will taken Table that data will displayed in rows. each and every row first check box is available.
    Here Select Check Box of particular row then click Edit button. That row data will be displayed in one popup window.
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    Suppose I have to select check box in First Row Click on EDIT button That row data will be displayed in another popup window here customer will change details depending up requirement click on SAVE Button that update data will saved in ECC System.
    How to display another window by using Check box?
    Regards
    Vijay

    Hi Vijay
    Your question is not clear enough to give an answer. Do you have some difficulties with the code for opening a popup-window? There are many-many examples in the forum how to open/close a popup.
    Or you do not know how to bind the popup opening with clicking a check box? Just put the code in the onSelect event handler of the check box.
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Mar 11, 2010 10:55 AM

  • Popup Dialog boxes in Extensions

    I am building an extension that allows our company to insert a CFINVOKE tag for a ColdFusion component with all of the proper arguments. One of the arguments for the component is an array of address information that looks like so in CF:
    <cfset AddressArray = ArrayNew(2)>
    <cfset AddressArray [1][1] = "XYZ Widget">
    <cfset AddressArray [1][2] = "123 Somewhere St">
    <cfset AddressArray [1][3] = "Nowherevilleton">
    <cfset AddressArray [1][4] = "AA">
    <cfset AddressArray [1][5] = "55555">
    <cfset AddressArray [1][6] = "555-555-5555">
    <cfset AddressArray [1][7] = "http ://goo.gl/rTyhf45">
    This array can include multiple addresses. Too add a second address simply increment the first array index number from one to 2 and repeat the structure.
    My extension needs to be able to create a multidimensional array in JS that is based off a form.
    The primary form for the extension holds form fields for the other component arguments which consits of checkboxes and text fields and one textarea.
    The textarea needs to be populated via a second form that appears when the user clicks on the "Add Address" button which should create a second dialog box with a simple form of text fields for the name, adddres, city, state, zip, phone, and url that are need by the CF array.
    What I cannot figure out how to do is create this second dialog box. I have the following JS in place but it throws an error (openDialog() is not a function)
    function addAddress() {
        var retVals = {name: null, address: null, city: null, state: null, zip: null, phone: null, url: null};
        window.openDialog("MapAddress.htm","", "all=no", retVals);
    I tried window.open() but that just opens my browser. MapAddress.htm is the file that contains the second form.
    All I need to know is how do I create a second dialog box from inside an extension, or is this even possible?

    Hi,
    You can open another form, but you have to pass parameters between windows (that is, your .htm files with your forms). Look at native extensions like C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\configuration\Commands\ServerObject-MastDetailPHP.htm for instance, and the dwscripts.callCommand() function in C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\configuration\Shared\Common\Scripts\dwscripts.js for an undocumented way of doing it.
    But the simpliest way is to have two layers in your form and hide and display them according to your needs with some JavaScript like this:
    var layer = dwscripts.findDOMObject('mylayername');
    layer.style.visibility = "hidden";
    or
    layer.style.visibility = "visible";
    Regards,
    Xavier
    MyDreamweaverExtensions.com

Maybe you are looking for

  • Siri doesn't seem to work with Find My Friends

    Siri doesn't seem to work with Find My Friends completely accurately. If I ask it where once of my friends is, it tells me it doesn't know, but shows that person in the response, twice, with their location. Anyone experiencing this? Also - I found a

  • AIR Runtime exe as well as my App exe into one exe

      How to Bundle AIR Runtime exe as well as my App exe into one exe in Windows XP so that user can have only one exe and on clicking of that it will automatically install AIR Runtime if it is not installed or a lower version of it is there.?

  • Do i need internet to set this up??

    Hi folks. I could really do with some clarity here. I just got a new 2nd gen Apple TV I want to use to stream content from my laptop to my plasma home theatre - mainly the music in my iTunes I want to access. (Im not very interested in purchasing vid

  • Function Module to change employee's entry date

    Is there a function module to change the employee's entry/hire date? I just know in the menu of transactio PA30, there are a 'Utilities' and I can change there, but since I need to implement into an ABAP program, so I need a function module to handle

  • Business System of type Integration Server In SLD .

    Hi Can anybody tell what is the criteria on which we decide whether a business system to be created in the sld should be of type Integration Server or Application System . And also can we have only one  Business system of the type integration server