Dialog programming: making standard input field sensitive to double-click

Hello,
I'd like make standard input field sensitive to double-click. I know that I should register double-click event to input field class and write handler. But I can't find out from what class I should derive. What is class of standard input field? Can I derive from that class? Or is there another way to accomplish my requirements?
Best regards,
Josef Motl

I agree with Kinshuk,  Not sure why you need this functionality.   Please implement this sample program do F4 help on the BURKS field and select a company code.  Notice that is populates all the rest of the fields.  Is this the functionality that you require?
report zrich_0002 .
parameters: p_bukrs type t001-bukrs,
            p_butxt type t001-butxt,
            p_ort01 type t001-ort01,
            p_land1 type t001-land1.
data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.
at selection-screen on value-request for p_bukrs.
  call function 'F4IF_FIELD_VALUE_REQUEST'
       exporting
            tabname           = 'T001'
            fieldname         = 'BUKRS'
            dynpprog          = sy-cprog
            dynpnr            = sy-dynnr
            dynprofield       = 'P_BUKRS'
       tables
            return_tab        = return
       exceptions
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            others            = 5.
  read table return with key fieldname = 'P_BUKRS'.
* Add it back to the dynpro.
  dynfields-fieldname = return-retfield.
  dynfields-fieldvalue =  return-fieldval.
  append dynfields.
* Get the company code from db and add to dynpro
  data: xt001 type t001.
  clear xt001.
  select single * into xt001
         from t001
        where bukrs = return-fieldval.
  dynfields-fieldname = 'P_BUTXT'.
  dynfields-fieldvalue = xt001-butxt.
  append dynfields.
  dynfields-fieldname = 'P_ORT01'.
  dynfields-fieldvalue = xt001-ort01.
  append dynfields.
  dynfields-fieldname = 'P_LAND1'.
  dynfields-fieldvalue = xt001-land1.
  append dynfields.
* Update the dynpro values.
  call function 'DYNP_VALUES_UPDATE'
       exporting
            dyname     = sy-cprog
            dynumb     = sy-dynnr
       tables
            dynpfields = dynfields
       exceptions
            others     = 8.
start-of-selection.
Regards,
Rich Heilman

Similar Messages

  • Making the input fields readonly

    hi
       iam  calling  a RFC  and it is a Custom  and not
    a pre-defined 
           and  now i need to show some data  of the  table 
         in the pop-up window   in the input fields  and all this
            fields should be readonly .  there are about  30 
           input fields and it difficult to make each and every input
    field  as readonly  ,  is there any alternative  that allows
      me too make the all the input fields readonly.

    Hi, Kishore,
    Even I tried the same but not successful. Because your container will not have Readonly propert so only way is to do it is doing for each and every element. for this also two ways are there.
    1. directly set the readonly property of each and every element in Layout tab or
    2. create a context variable of type boolean and map it to the readonly property of the UI.
    Regards,
    Srinivas.

  • Value of the input field changing automatically on click of enter

    I  was trying to write a simple report that has a single input field with a f4 help for a directory browser attached. the input field  can only be filled using the f4 help ( achieved through function module DYNP_VALUES_UPDATE) . The problem is after the input field is populatd if i click on enter or press f8 the text in the input field changes automatically. Please can anyone find the reason for this behaviour and provide a solution .Thanks in advance.report code attached.
    Regards,
    Kiran A.
    REPORT  zpgm_md61_error1.
    PARAMETERS: p_file TYPE string MODIF ID abc LOWER CASE .
    DATA: dyname TYPE programm,
          dynumb TYPE sy-dynnr.
    DATA: dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: lv_folder TYPE string,
          sel_folder TYPE string.
    AT SELECTION-SCREEN OUTPUT.
      PERFORM disable.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          initial_folder       = lv_folder
        CHANGING
          selected_folder      = sel_folder
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      dynpfields-fieldname = 'P_FILE'.
      MOVE sel_folder TO dynpfields-fieldvalue.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = dyname
          dynumb     = dynumb
        TABLES
          dynpfields = dynpfields.
    FORM disable.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "dISABLE

    Hello Kiran,
    This is because you've defined the field as TYPE STRING.
    Change the declaration & the problem should be solved:
    PARAMETERS: p_file TYPE dynfieldvalue MODIF ID abc LOWER CASE .
    BR,
    Suhas

  • What is the deal with the new Mavericks version of the Mail program..?  I cannot simply double click in the address book to place names in the address line?

    I can no longer simply double click on a name in the contacts list to place that name into an an email??
    You now have to select a single name(or a group), and hit the "TO" button.
    Have the engineers at Apple gone nuts??  They just made it more difficult to add names??  Are they going for a windows workability??
    If anyone out there can tell me how to go back to this feature, please, please let me know..
    Adding addresses is now not working very well....??  Please help!
    Randy

    OK, JUST TO CLARIFY:  I OPEN MY MAIL PROGRAM.  I then start a new letter.  I then click on the little person icon button which opens up the address/contacts list.  This action does not open up the address book as such.
    I simply want to select various contacts from the list.  But now I can no longer simply go down the list to double click on those contacts that I want to automatically drop into the TO field of my new message.  It does not work any longer in Mavericks??
    Now I have to click on each contact, and then go up, and click again on the TO button ....
    Can Apple please stop making tasks more difficult??  The previous version worked great, and now it has been upgraded so that it doesn't work as simply as it did??
    Frustrated.!!!

  • Gettin the field valus on double clicking and calling the transaction

    Hi
    how to use call transaction after  clicking on a particular line on the output list with the field values of that line ?
    I am using MIR4 transaction .Once the output list is displayed when i double click on any line i have to pass the belnr and the gjahr values of that line to the transaction MIR4 to display the document.
    AT LINE-SELECTION.
       get cursor field s_belnr value gw_final-belnr_mm.
       get cursor field p_gjahr value gw_final-gjahr.
      SET PARAMETER ID:  'BEL' FIELD GW_FINAL-BELNR_MM, 'GJA' FIELD GW_FINAL-GJAHR.
      CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.
    I used a code like this . What is the problem ? Can anyone help me ?

    Hi,
    What u can do is while displaying the ouptut list, u can use HIDE statement.
    e.g. LOOP at itab.
    write : itab-belnr,
              itab-gjahr.
    HIDE : itab-belnr, itab-gjahr.
    endloop.
    then when u use AT LINE-SELECTION, u can use:
    AT LINE-SELECTION.
    SET PARAMETER ID: 'BEL' FIELD ITAB-BELNR, 'GJA' FIELD ITAB-GJAHR.
    CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.
    It should work.
    Regards,
    Himanshu

  • Making standard SAP field editable

    I have two standard fields VBRP-KOSTL (Cost Center) and VBRP-PRCTR (Profit Center) in transaction VF01(Create billing document) that I want to make editable. Can anyone give me detailed step on how to achieve this?
    Thanks for your help. This would be greatly appreciated.

    Dear Abbey,
    You can do this by maintaining trasaction variant in SHD0. You would have options to make a field display only, required entry, optional entry, supress.
    http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components -> Application Personalization -> Tailoring of Application Transactions -> Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    Hope this will resolve your issue.
    Regards,
    Naveen.

  • How to make default value in form input field disappear on user click

    I have an HTML input tag with a default value.
    How can I have that value disappear when user begins to type?
    Form is here:
    http://www.kardsbykaren.us/10pack.php
    Happy Holiday and thanks.

    Have a look here http://www.matiasmancini.com.ar/ajax-jquery-validation-html5-form.html
    Gramps

  • Save Dialog input field too short

    When i save documents in any app, the save dialog appears. The input field for the file name in very short, meaning, with long filenames you have to scroll and move your mouse in this tiny field?
    Why does OSX not use more space for this input field, there is so much more horizontal space left???
    Any ideas how to fix this with a workaround?
    Apple, please fix this in future updates.
    Thanks!

    Sandeep,
    It is working fine for all the dates,but going giving dump only for a particular date.
    KURSF is of length 9.Is it including decimal places.
    So,if i declare a varibale of type p decimals 5 and then move actual kursf value to this variable and then SUM,it will work fine.
    data:kursf1 type p decimals 5.
    move it_header-kursf to it_header-kursf1.
    or
    just declare the existing kursf as type p decimals 5
    But why it is not giving dump for other dates.
    Thanks,
    K.Kiran.

  • !!!! Urgent !!!!!!!!Dialog Programming

    In Dialog Programming i have 3 fields, if one field is validated if it is true the next two fields should become gray,so no one can enter the values in those two fields how can i do it.

    HI,
    Go thru this docu.
    <b>Changing The Screen During Runtime</b>
    The attributes are assigned to the screen field when the screen is designed in full screen editor.  Such kind of assignment is static, which means that these attributes are fixed. But many times the need to change the attributes of the screen arises. And this has to be done during runtime.
    Need To Change Screen
    There can be a requirement in the transaction that, certain fields on the screen
    Appear only in certain conditions.
    Are in Change/display mode according to user inputs
    Become mandatory subject to specific inputs.
    Changes its format depending upon certain conditions.
    Modifying the screen
    At the runtime, attributes for each screen field is stored in system defined internal table, with header line, called as SCREEN TABLE. It contains name of field and its attributes. This tab le can be modified during the runtime i.e. through module pool program. Screen table has following fields:
    Field Name           Length          Description
    NAME               30               Name of screen field
    GROUP1          3               Field belongs to field group1
    GROUP2          3               Group 2
    GROUP3          3               Group 3
    GROUP4          3                  Group 4
    ACTIVE          1               Hide/Show
    REQUIRED          1               Field input is mandatory                         
    INPUT          1               Enable/Disable
    OUTPUT          1               Field for display only
    INTENSIFIED     1               Field is highlighted.
    INVISIBLE          1               Field is suppressed.
    LENGTH          1               Field output length is reduced
    DISPLAY 3D          1               Field is displayed with 3-D Frame
    VALUE_HELP     1                             Field is displayed with Value help
    E.g., SCREEN-ACTIVE     = 0   has the same effect as the following statements.
            SCREEN- INPUT       = 0.
            SCREEN-OUTPUT    = 0.
            SCREEN-INVISIBLE = 1.
    The fields SCREEN-NAME and SCREEN-GROUP 1 through SCREEN-GROUP4 tell you which field and / or field group has the attributes.
    You can assign up to 4 groups to a field.
    You need to program screen modifications in module, which is processed during the event PROCESS BEFORE OUTPUT.
    `SCREEN’ is an internal table and, in order to change the field values, LOOP statement has to be used so that the header-line can be populated with the new values, changing the earlier values, the SCREEN table consisted for the specific screen. Finally the changed record in the header-line is NOT APPENDED, but is MODIFIED to the SCREEN table. That is, we first use `LOOP AT SCREEN’ and then assign the values. And finally PRIOR TO ENDLOPP give `MODIFY SCREEN’.
    PROCESS BEFORE OUTPUT.
    MODULE MODIFY_SCREEN OUTPUT.
    MODULE MODIFY_SCREEN.
      LOOP AT SCREEN.
        IF SCREEN-NAME = ‘SFLIGHT-CARRID’.
          SCREEN-INPUT = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Thanks
    Sunil

  • Search help unavailable in Read-only input field since EHP4

    Dear Experts!
    I have a problem with a Portal page since the deploy of the EHP4. The page has standard input fields with Search Helps. I needed to have the input field non-modifiable so the user would have to use the search help to get the proper information.
    Prior to the EHP4 installation, I set the input field to Read Only in the WebDynpro explorer, this disabled the editing while permitting the user to use the Search Help.
    Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    Do you know if there is a way to allow the search help on a read only field?
    Thanks so much for your answer,
    Brian Foster.

    >Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    This was a conscious design decision on SAP's part that disabled or read-only fields should no longer fire value help.  I am aware that this situation was used in the past as you describe.  It is even still used in SE80 for the Web Dynpro ABAP wizards. However usability studies showed that this often confused end users and therefore it is no longer allowed.  The field must be input enabled to fire the attached serach help.

  • Matchcode for GuiXT input fields

    I installed theh program ZGUIXTF4 and created transactions ZXF4 in our DEV system to use SAP matchodes in GuiXT input fields.  When I click on the icon to bring up the values no values come up but instead it creates a new session.  Any ideas what I am missing?  I installed it in SBX and it is working fine there.  The ZGUIXTF4 code and the ZXF4 transaction look to be identical.

    Hi Kathryn,
    I'm having the same problem! did you solve the problem? I really would appreciated your help!
    Regards!

  • Changing color of  text in the input field

    hi
    when i disable the input field , the text written in it has very light color. How can i change the color of the displayed text in the input field.

    Hi Harsimran,
    changing the text color of an input field is not possible. However, you can build a workaround:
    1. take an expression box, place it exactly over your input field
    2. change its text color and take the value of your input field as value being displayed
    3. instead of making your input field disabled, make it hidden and show the expression box instead.
    Thus, instead of enabling/disabling your input field, switch between expression box/input field to be displayed. I hope it's clear what I mean. If not, don't hesitate to ask again.
    Best regards,
      Benni

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

  • REPORT_ATTRIBUTE_ERROR_MESSAGE functionality for Input Field & Drop down UI

    Hi,
    We have requirement to handle error messages. In a data input form, if we get multiple errors we are displaying all errors in a message area. When we click on error message, focus should go to the UI element which causes to the error.
    We have used 'CALL METHOD lo_message_manager->report_attribute_error_message' by exporting the element and attribute name. This method works fine incase of Input Field type UI element. When we run the application on DISPLAY action errors are displaying for both fields 'INPUT FIELD' and 'DROPDOWNBYINDEX' . But we have URL on the error related to 'INPUT FIELD'  and when we click on error message control/cursor going to the INPUT FIELD.
    But we could not find same functionality incase of DropDownbyIndex UI Element.
    Please help us to resolve the problem. Does SAP Web Dynpro ABAP provide this functionality?
    Below attached written code for reference.
    CASE lo_action->name.
          WHEN 'DISPLAY'.
            IF lv_num1 IS INITIAL.
             report message
              CALL METHOD lo_message_manager-report_attribute_error_message
                EXPORTING
                  message_text              = 'Please enter the value'
                  element                   = lo_el_numbers
                  attribute_name            = `NUM1`
                params                    =
                msg_user_data             =
                is_permanent              = ABAP_FALSE
                scope_permanent_msg       = CO_MSG_SCOPE_CTXT_ELEMENT
                msg_index                 =
                cancel_navigation         =
                is_validation_independent = ABAP_FALSE
            ENDIF.
            IF lv_age eq '999'.
             report message
              CALL METHOD lo_message_manager-report_attribute_error_message
                EXPORTING
                  message_text              = 'Please enter the age'
                  element                   = lo_el_personal_info
                  attribute_name            = `AGE`
                params                    =
                msg_user_data             =
                is_permanent              = ABAP_FALSE
                scope_permanent_msg       = CO_MSG_SCOPE_CTXT_ELEMENT
                msg_index                 =
                cancel_navigation         =
                is_validation_independent = ABAP_FALSE
            ENDIF.
        ENDCASE.
    Thanks
    Venkat

    Hi venki,
    The problem you have told that when you are displaying the error message for input box and drop down by idx  using the report_attribute_error_message. Then you click on the error message raised by input box , the focus goes to the input box but the same thing will not happen with the dropdownbyidx.
    I have also try the same this its not working for dropdownbyidx but it is working for dropdownbykey.
    You can try this.
    Regard
    Manoj Kumar

  • Touch screen double clicks are seen as two single clicks due to position sensitivity

    I'm developing an app for a laptop with a touch screen. It displays several low resolution images in Lab View pictures. The operator can select an image by double clicking, displaying a higher resolution picture that fills the screen. Double clicking that image returns to the multiple image display.
    It is very difficult to cause a double click event via the touch screen. The two clicks must be located at the exact same point on the touchscreen, or two single clicks are returned. My fat fingers can't seem to hit the same pixel twice.
    Is there a way to set the position sensitivity of double clicks in Lab View? in Windows?
    Thanks,
    Dan

    Hi Dan,
          I think this would be an OS configuration-parameter - at least, outside LabVIEW - have you looked under "Control Panel" or Programs for a touch-screen configuration utility?  Here's a link to info re: the Dell Latitude XFR D630.  Note the "Doube Click Area" parameter under "Touchkit Configuration Utility" - Settings.
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for