Icon in dialog programmin sreen field

hi all,
I have a field valflg type char1 and it has values either X or space if it is X i want an OK ICON to be displayed on screen and if space want not ok code there what to do.
ITS URGENT .
Thanks & Regards,
swaroop

Hi,
  Write the code in PBO,
     LOOP AT SCREEN.
      IF VALFLAG = 'X'.
        IF SCREEN-NAME EQ 'OK_ICON'.
           SCREEN-ACTIVE = 1.
           MODIFY SCREEN.
        ENDIF.
       ELSE.
           SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
      ENDIF.
     ENDLOOP.
Thanks,
Phani Diwakar.

Similar Messages

  • How to lock a drive and/or folder if there is no lock icon in the get info field?, how to lock a drive and/or folder if there is no lock icon in the get info field?

    how to lock a drive and/or folder if there is no lock icon in the get info field?, how to lock a drive and/or folder if there is no lock icon in the get info field?

    You can create an encrypted disk image.
    http://www.macworld.com/article/1154559/password_protect_folders.html

  • Mission impossible:  changing icons in dialogs?

    Hi, Is it really impossible to change icons in dialogs in a straightforward manner? I am new to Java Swing but have used most GUI:s and really never encountered any problems changing icons in the caption part of a window frame (upper left corner). If such common practice is as hard as it seems in Java, it must be considered a major flaw! Please take a look at the problem and enlighten me.
    It is easy to replace the default �coffee cup� icon in the main application window (a JFrame) with a new icon in file "main.gif",
    Toolkit kit = Toolkit.getDefaultToolkit();
    Image icon = kit.getImage(�main.gif");
    setIconImage(icon);
    The following creates a non-modal dialog window (one the user mustn't close before doing something else),
    Dialog status = new JDialog(this,"Status",false);
    The dialog will have the main JFrame as its parent and inherit its icon. Fine, but I want some other icon in this dialog, for example a toolbar icon in file "status16.gif". The only way to do it seems to be to introduce a �dummy� Jframe like this,
    JFrame frame = new JFrame();
    Image icon = kit.getImage("status16.gif");
    frame.setIconImage(icon);
    Dialog status = new JDialog(frame,"Status",false);
    The dialog now sports the status icon, but there is a dire side-effect of this fix. The main JFrame will no longer be the parent of the dialog (the 'dummy' JFrame will) and this has consequences. For example when the user activates the application main window by clicking on it, the dialog window will no longer automatically place itself on top. A work-around would involve explicitly writing dialog window management code.
    It shouldn�t be this complicated to accomplish something as simple as an icons change. I must have missed something important here.
    Best Regards, Ulf Johansson

    DOMO, I too can't get the bug links to work. I suspect many have encountered my "icon in dialog"-problem but given up. It's a frustrating flaw. If nobody comes up with a soulution I'll file a bug report for what it's worth. Sun should take these 'minor' issues seriously. In C# it's a breeze.
    /Ulf Johansson

  • Icon (URL)  in the URL field

    Does anyone know how to ad a icon (logo) in the URL field right before the URL? I know a lot of sites have this and it would be a great thing for me to add.

    Click here for information.
    (24546)

  • Screen-Painter: Icon in a I/O Field?

    Hi Gyus,
    I'm writing a dialogue program (module pool). Not a report. Is it possible to have an icon in an I/O field? If yes, what needs to be done?
    I'm working with the NW2004s, SP11
    Thanks for your help,
    Thomas
    Edited by: Thomas Mueller on Oct 11, 2009 8:11 PM

    Hello Thomas,
    i dont think we can added icons to input fields.
    regards
    Prabhu

  • How to Put two icons together in a result field in ABAP

    Hi All,
    I have a results column in a report which basically show if the delievery was made on time/late/early. I also have a another column which shows icons as below.
    On Time: ICON_LED_GREEN.
    Late:     : ICON_LED_RED.
    Now what I am trying to do is in the same column I want to have 2 Icons. example i want to merge the following icons together,
    ICON_LED_RED & ICON_LESS_RED in the field.
    Is this possible? if so how
    Thanks

    why you need to merge both the lights in a column when there is no need to have  thse lights in ur column you just have to use them in your write statement.
    loop at i_final.
    if i_final-filed1 = 'early' or
       i_final-filed1 = 'timely' .
    write:/10 icons_led_green, 20 i_final-filed1.
    else.
    write:/10 icons_led_red, 20 i_final-filed1.
    endif.
    endloop.

  • JFileChooser as save dialog clears text field on change directory

    I am trying to implement a basic save dialog using JFileChooser, which initiates with an initial file name, "untitled.txt". However, as soon as the directory is changed by the user, the text field is cleared. I want to ensure that whatever is in the text field when the user changes directories (i.e., untitled.txt may have been changed to something else by the user) stays visible throughout any kind of user navigation. I've tried all sorts of things, but nothing seems to work.
    Thanks for your help.

    Yes, it very well could be an OS/JDK issue. I'm using jdk 1.5 on Mac OS X (Tiger). Apparently, FileNameExtensionFilter is a jdk 1.6 implementation, because it doesn't work for me.
    Here's my code:
    JFileChooser fc = new JFileChooser();
    String output = outputTextArea.getText();
            String selectedFile = "untitled.txt";
            File file = new File(selectedFile);
            fc.setDialogTitle("Save");
            fc.setMultiSelectionEnabled(false);
            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            fc.setSelectedFile(file);
            setFileName(file.getName());
            int result = fc.showSaveDialog(this);
            if (result == JFileChooser.CANCEL_OPTION) {
                return;
            } else if (result == JFileChooser.APPROVE_OPTION) {
                file = fc.getSelectedFile();
                if (file.exists()) {
                    int response = JOptionPane.showConfirmDialog(null,
                            "Overwrite existing file?","Confirm Overwrite",
                            JOptionPane.OK_CANCEL_OPTION,
                            JOptionPane.QUESTION_MESSAGE);
                    if (response == JOptionPane.CANCEL_OPTION) return;
                if (!writeFile(file, output)) {
                    setErrorMessage(ERROR5_1); //Just a custom error message and display.
                    showErrorMessage();
                    return;
            }Is there a workaround if this is an OS or JDK issue?
    Thanks again for your help.

  • Dialog Screen - Invalid field format (screen error)

    Dear all,
      I have developed a modal dialog screen and succesfully invoked it with CALL SCREEN command in the main screen.  Unfortunately, it always returns "Invalid field format (screen error)" when clicking on the dialog's GUI control such as button or radio button.  Anyone encountered this before??
    Regards,
    KK

    Hi KK,
    Just make sure that the fields take on the screen are also declared in the top module of your program.
    And also match their data-types and size i.e., declared in top module and on the screen in their respective attributes.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • CALCULATOR DIALOG: Converting Result Field (beginner, help requested)

    Hi,
    I am a beginner in ABAP/4 programming.
    I have been trying to create a calculator dialog.
    However, one of the problems that i've run into is that my result field (shows the output numbers) is defined as type p decimals 5. Thus, if you enter 2, then 5, you get the following result --> 2.000005, with the the five not being shown,
    Instead, i'd like the result to be 25.00000  and so on if adding any numbers(for example, if 4 was then added, the result would be 254.00000)
    How would i change the code to make this possible?
    You can view the source code below:
    PROGRAM zdcal .
    DATA: ok_code(4) TYPE c,
          result TYPE P DECIMALS 5,        " SCREEN OUTPUT
          result_but(15) TYPE c,
          result_temp(15) TYPE c,
          result1(15) TYPE c,
          operator LIKE sy-ucomm,
          result_conc(15) TYPE c.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'CALCULATOR'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'B1'.
          result_but = 1.
        WHEN 'B2'.
          result_but = 2.
        WHEN 'B3'.
          result_but = 3.
        WHEN 'B4'.
          result_but = 4.
        WHEN 'B5'.
          result_but = 5.
        WHEN 'B6'.
          result_but = 6.
        WHEN 'B7'.
          result_but = 7.
        WHEN 'B8'.
          result_but = 8.
        WHEN 'B9'.
          result_but = 9.
        WHEN 'B0'.
          result_but = 0.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'BCL'.
          CLEAR: result,
                 result_temp,
                 result_but,
                 result1,
                 result_conc.
        WHEN 'OE'.
        WHEN OTHERS.
      ENDCASE.
      IF ok_code(1) = 'B'.
        IF result_temp <> 0.
          result_temp = result.
         if operator <> space and result1 = space.
         endif.
          SHIFT result_temp LEFT DELETING LEADING space.
          SHIFT result_but LEFT DELETING LEADING space.
          CONCATENATE result_temp result_but INTO result_temp.
          CONDENSE result_temp.
    Condense: Shifts the content of the field c to the left, so that
    sequences of blanks are reduced to exactly one blank. Leading blanks
    are removed, as are trailing blanks in string type fields.
        ELSE.
          result_temp = result_but.
        ENDIF.
    Retain value of first entry
        IF result_temp > 0.
          result = result_temp.
        ENDIF.
      ELSEIF ok_code(1) = 'O'.
        operator = ok_code.
        result1 = result.
        CLEAR:
        result_temp,
        result_but.
      ELSEIF ok_code(2) = 'EQ'.
        IF operator <> space.
          CASE operator.
            WHEN 'OA'.
              result = result1 + result.
            WHEN 'OS'.
              result = result1 - result.
            WHEN 'OD'.
              result = result1 / result.
            WHEN 'OM'.
              result = result1 * result.
          ENDCASE.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Any help will be greatly appreciated. Source code examples are welcome as well.
    Thank You,
    John
    Message was edited by:
            John Damion

    Assuming that result = 2 when you do this:
    result_temp = result.
    you get result_temp = '2.00000', not '2' as you might expect. Hence if you convert 2 and 5 from type P with 5 decimals to type C and then concatenate you get '2.000005.00000', not '25'. If you want to get '25' try converting type P into type I and then into C.
    Also not sure what you are trying to achieve exactly but if you want to accept only integer numbers (such as 2 or 5) and to provide the result with decimals, simply define input variables as type I and only the result as type P.
    Hope this helps.

  • Suppress "Select Image" Dialog in Image Field

    Hi everybody,
    does anybody know how to suppress the "Select Image" dialog when clicking an image field? I want to use an image as a button, but everytime I click it this dialog appears first before executing the script of the click event.
    Or do you have other ideas how to use an image as a button?
    Thanks & best regards,
    Matthias

    Images as buttons are not supported in Adobe.
    For a workaround check Juergen's reply here --> Adding Image in Button.
    Chintan

  • How to hide close icon in Dialog framework

    JDev 10g.
    Any idea how to hide/disable close icon in a dialog launched by using:
    <af:commandButton     action="dialog:editEmpAngDetails"
                                       partialSubmit="true"
                                       useWindow="true"
                                       windowHeight="..."
                                       windowWidth="..."/>
    Dialog appears as a new browser window, and I want to force user to use one of the Save/Cancel button, in order to perform Commit/Rollback.
    So, I need a way to hide browser close 'X' icon.
    Any idea ?

    Hi...
    I got a further lead in this problem... In the class ADMDialog.h, in the comments described for Create & Modal functions for creating ADM Dialogs, there are some options described for the last parameter of these functions:
    ADMInt32 ADMAPI (*Modal)(SPPluginRef inPluginRef, const char* inName,
                                            ADMInt32 inDialogID, ADMDialogStyle inDialogStyle,
                                            ADMDialogInitProc inInitProc, ADMUserData inUserData, ADMInt32 inOptions);
    Now, there are some values that can be given in that last parameter which define our creation options for the dialog. One of them is  kADMModalDialogHasPaletteSystemControlsOption, which too is defined in the same class (ADMDialog.h) & which, as the comments say, shows a close box at the top right corner of modal dialogs.
    So, I implemented this as,
    sADMDialog->Modal(fPluginRef, "My Dialog", kMyDialog, kADMModalDialogStyle, NULL, NULL, kADMModalDialogHasPaletteSystemControlsOption);
    This compiled just fine, but the dialog appeared without any close icon. Now, what to do?
    Please guide me on this...
    Thanks!

  • Mail freezes when attach using icon and dialog box, but OK with drag attach

    Everthing else on my mail is working fine, but when I try to use the "Attach" icon on a new or reply message, the finder dialog box comes up, and then mail freezes with the spinning ball. Alternatively, if I drag and drop a file to the new mail window, it works fine. Also, if I right click (CTRL-click) on a file, and select "Open With -> Mail" That also works fine.
    My suspicion of the problem is that the attach file dialog box keeps defaulting to open files in a folder that was in a link that's no longer available (deleted link), and it freezes things up. Because it always opens up to the same folder, and that's where it freezes, without showing any files in that folder.
    Thank you for your help!

    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list. Leave checked (enabled) only the port configuration needed to connect to Internet and Built-in Ethernet (in that order if not the same). Uncheck (disable) the rest. Parallels in particular, if you have that installed, is known to cause this problem in Mail.

  • Setting icon to dialog

    Hi all,
    Can we able to set icon in the title bar of the JDialog?
    Waiting for replies...........

    http://www.google.com/search?hl=en&q=Java+%2B+JDialog+%2B+setIcon
    Follow the bouncing link.
    PS.

  • Status Icon in Dialog Programming

    hi all,
    Can any one tell me how to use status icons in dialogprogram??
    never used it before.
    thanks

    Hi,
    Pseudocode is you can use for understanding
    REPORT demo_dynpro_status_icons.
    DATA value TYPE i VALUE 1.
    DATA: status_icon TYPE icons-text,
          icon_name(20) TYPE c,
          icon_text(10) TYPE c.
    CALL SCREEN 100.
    MODULE set_icon OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
      CASE value.
        WHEN 1.
          icon_name = 'ICON_GREEN_LIGHT'.
          icon_text =  text-003.
        WHEN 2.
          icon_name = 'ICON_YELLOW_LIGHT'.
          icon_text =  text-002.
        WHEN 3.
          icon_name = 'ICON_RED_LIGHT'.
          icon_text =  text-001.
      ENDCASE.
      CALL FUNCTION 'ICON_CREATE'
           EXPORTING
                name                  = icon_name
                text                  = icon_text
                info                  = 'Status'
                add_stdinf            = 'X'
           IMPORTING
                result                = status_icon
           EXCEPTIONS
                icon_not_found        = 1
                outputfield_too_short = 2
                OTHERS                = 3.
      CASE sy-subrc.
        WHEN 1.
          MESSAGE e888(sabapdocu) WITH text-004.
        WHEN 2.
          MESSAGE e888(sabapdocu) WITH text-005.
        WHEN 3.
          MESSAGE e888(sabapdocu) WITH text-006.
      ENDCASE.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE change.
      CASE value.
        WHEN 1.
          value = 2.
        WHEN 2.
          value = 3.
        WHEN 3.
          value = 1.
      ENDCASE.
    ENDMODULE.
    This link may be help ful
    [http://help.sap.com/saphelp_nw04s/helpdata/en/59/348efa61c611d295750000e8353423/frameset.htm]
    Regards,
    Dhruv Shah

  • Sreen field label change

    hi,
    In enterprise portal in partner registration form i want to change scrren name.
    in arress there is 'zipcode'. i want to make it as postal code ?please tell me how can i make it.
    swathi

    See screen field change

Maybe you are looking for

  • To import photos from Iphone to mac is a strange thing.

    There are different ways to import the Iphone pictures to the mac but the result is a strange thing. 1. way over the osx tool digital pictures. result with osx Lion 1.1 GB (with the osx Lion it is 3.8 GB with the same Iphone and pictures) 2. way with

  • HT4623 ipad is disabled connect to itunes ..... what do i do next?

    ipad is disabled connect to itunes ..... what do i do next?

  • Insert multiple rows into dB from one dynamic HTML form problem

    Hi, - I have form which has dynamically generated text fields so I don't want to hard code the field names into the servlet - A user will fill in one or more of the text boxes with a number and submit to the servlet (the name of the field represents

  • Real app business logic, access serialization

    Hi, in our real application we have some business logic. The bc4j examples show for example how to limit the value of a colum between two values. But our business logic is not limited to a so simple case. For us is very common that business logic inv

  • Canon USB support and Adobe CS2

    I have a 17" 2.16 MacBook Pro. It came preinstalled with 10.4.6 I think the laptop is great, but the OS has broken some of my software applications. For example, I can no longer shoot tethered with my Canon 5D to the application Capture One. Nor can