Using CheckBox / Radio-Button Control in Dialog Program

Dear Friends,
Please let me know the way to use check-box / radio-button control in dialog programs. Where & how to define them & write the logic.
If possible provide a small example.
Regards,
Alok.

Hi,
goto tcode abapdocu.. abap user dialogs - screens-processing screens you will get examples for all --pushbutt6ons radiobutton checkboxes everything
<b>here is a sample code for you</b>
PROGRAM demo_dynpro_check_radio .
DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
      field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
      box TYPE c.
DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.
CALL SCREEN 100.
MODULE user_command_0100 INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'RADIO'.
      IF radio1 = 'X'.
        field1 = 'Selected!'.
        CLEAR: field2, field3.
      ELSEIF radio2 = 'X'.
        field2 = 'Selected!'.
        CLEAR: field1, field3.
      ELSEIF radio3 = 'X'.
        field3 = 'Selected!'.
        CLEAR: field1, field2.
      ENDIF.
    WHEN 'CANCEL'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.
<b>flow logic:</b>
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
  MODULE user_command_0100.
regards,
pankaj singh.
<i><b>
reward if helpful</b></i>

Similar Messages

  • How to use custom control in Dialog Programming?

    How can I call a subscreen using custom control in Dialog Programming?
    The required subscreen contains a calender. Any class or something available for this purpose. Please suggest.

    As [vinraaj|http://forums.sdn.sap.com/profile.jspa?userID=3968041] wrote, call transaction SE51, there is a Wizard to help you generate the table control, it will create the table control and some includes with PBO/PAI modules > Read [Using the Table Control Wizard|http://help.sap.com/saphelp_bw/helpdata/en/6d/150d67da1011d3963800a0c94260a5/frameset.htm]
    Also there is a tutorial in the wiki, read [Learn Making First Table Control |http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl] by [Krishna Chauhan|http://wiki.sdn.sap.com/wiki/display/~nc0euof]
    Regards,
    Raymond

  • Event based radio button control

    Is there an easier way to write this code and keep the same functionallity?
    Solved!
    Go to Solution.
    Attachments:
    Screenshot 2014-10-20 09.56.54.jpg ‏81 KB
    Screenshot 2014-10-20 09.56.541.jpg ‏139 KB
    RADIO BUTTON EXAMPLE.vi ‏14 KB

    Thanks for the replies. Sorry if I was not clear. The indicators (big) are only indicative of the function I was looking for. I am having to send a radio button control signal down through a class - actor loop from the UI to the RealTime control on cRIO and back to the UI. The loop and communication I have done but for some reason the radio button has a weird functionality where it only shows one true/false value through the loop and back up to the UI.
    meaning - 
    in the example the radio button has two controls radio 1 and radio 2. when they switch between the two I get the true/false value of only radio 2. so it signals radio 2 is true when radio 2 is on, and radio 2 false when radio 1 is on. As seen with a probe on the array wired into the for loop.
    the value does change on NewVal line between radio 1 and 2 but when it is broadcast to the cRIO it shows only the value of radio 2 as being true/false. This is fine for the output channel as they energize correctly. (two different outputs) but It does not allow me to use the broadcast data back to the UI in the same way as if it were two booleans, not one radio button.
    so in short I was trying to figure out a way to get the radio button to act llike a radio button on the front panel but act like two booleans on the return trip...
    I hope that makes sense. Unfortunately, I can't supply code for the program (proprietary development) hence the example of functionality. (pretend the indicators are on the return loop)

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Write the syntax for declaring table control in dialog programming?

    1) Write the syntax for declaring table control in dialog programming?
    2) Write the syntax to call a selection screen in a modal dialog box?

    hi,
    check this code for table control.
    DIALOG PROGRAMMING
    TABLE CONTROL
    IN SE51
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITVBAK WITH CONTROL TABCTRL. ##  TABLE CONTROL NAME
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    LOOP AT ITVBAK.
    ENDLOOP.
    IN PAI FLOW LOGIC
    PROGRAM YMODULE_PR4 .
    TABLES : KNA1, VBAK.
    DATA : BEGIN OF ITVBAK OCCURS 0,
           VBELN LIKE VBAK-VBELN,
           ERDAT LIKE VBAK-ERDAT,
           ERNAM LIKE VBAK-ERNAM,
           NETWR LIKE VBAK-NETWR,
           END OF ITVBAK.
    CONTROLS : TABCTRL TYPE TABLEVIEW USING SCREEN '0100'.
    TO ACTIVATE SCROLL BAR
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN SPACE.
          SELECT VBELN ERDAT ERNAM NETWR
            FROM VBAK
            INTO TABLE ITVBAK
           WHERE KUNNR = KNA1-KUNNR.
          TABCTRL-LINES = SY-DBCNT.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT

  • Multiline checkbox / radio button component

    We're now up to Flash version 8 and we still don't have a
    multiline checkbox / radio button component. Has anyone either:
    a. Figured out how to add a multiline text label to the
    existing Flash components; or
    b. Found a third party component that has multiline labels.
    I'm a developer for an eLearning company, so we use these
    components all the time; so having this would be a huge plus.
    Frankly, it's simply beyond me why Macromedia...er...Adobe hasn't
    upgraded their components to have this feature. It seems like it
    wouldn't be a big thing.
    Anyway, any help you can provide would be most welcome.
    Cheers,
    Adam

    Hopefully this might help.
    http://livedocs.adobe.com/flash/mx2004/main_7_2/00002108.html

  • Best way to align text with checkboxes/radio buttons?

    Is there a better way to align text and checkboxes/radio
    buttons than using
    tables with vertically-centered cells?
    Reason being, well... you've all tried putting text next to
    those form
    inputs, right? They don't naturally align.

    Thanks, but nothing there really answers my question. :-(
    Anyone know if there's a better way to align text and
    checkboxes/radio
    buttons than using tables with vertically-centered cells?
    Reason being, well... you've all tried putting text next to
    those form
    inputs, right? They don't naturally align. What is the modern
    solution to
    this problem?
    "Nancy O" <[email protected]> wrote in message
    news:gqlm1f$9te$[email protected]..
    >
    http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/

  • Is "AutoPostback" property valid for Radio button control in RCDC

    Hi,
    I have been trying to add "Autopostback" property to a radio button control, but it doesnt seem to be working.
    Below is the code:
    <my:Control
    my:Name="Activation"
    my:TypeName="UocSimpleRadioButton"
    my:Caption="{Binding
    Source=schema, Path=ADActivation.DisplayName}"
    my:Description="{Binding
    Source=schema, Path=ADActivation.Description}"
    my:AutoPostback="true"
    my:RightsLevel="{Binding
    Source=rights, Path=ADActivation}">
    <my:Properties>
    <my:Property
    my:Name="TrueText"
    my:Value="ADActive"/>
    <my:Property
    my:Name="FalseText"
    my:Value="NotActive"/><my:Property
    my:Name="SelectedItem"
    my:Value="{Binding
    Source=object, Path=ADActivation, Mode=TwoWay}" /></my:Properties></my:Control>
    Dolly

    Dolly,
    What do you expect the AutoPostback property to do?
    AutoPostback: This is an optional,
    Boolean-type attribute. The default value is false.
    If set to false, refreshing
    the page may not refresh the control. For information about AutoPostback,
    look for the Microsoft ASP.NET UI control property of the same name. -- FIM RCDC Reference
    According to MSDN:
    Set this property to true if the server needs to capture the selection as soon as it is made. For example, other controls on the Web page can be automatically filled depending on the user's selection from a list
    control.
    This property can be used to allow automatic population of other controls on the Web page based on a user's selection from a list.
    Blain Checkley illustrates its use with his blog post: http://identityminded.wordpress.com/2011/10/14/fim2010-semi-dynamic-rcdc-operations/
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Grouping Radio Buttons on a Dialog Box

    Hi,
    Sorry to post this, I could not get any doc that could help.
    I have three groups of  radio buttons in a dialog box and, I set the Group property of each of the first radio button in a group to true. But it does not seem to work. Did I miss something?
    Thanks for your help.

    Found the solution:
    I Used 'ADMRadioGroupSuite1' Suite - RadioGroupSuite ("ADM Radio Group Suite") to group them. 

  • Enable disable toolbar items on click on any checkbox,radio button,text box.

    Hi Friends,
    I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
    Please Help me friends....

    Hello friend my proble is solve and now i am sharing my solution ....
    I am create RCP application and view side any listener click event fire time apply this code
    IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
    evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
    and add plug in extension and create property tester class means listener property tester class side apply this code
    IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
    if (integer != null)
    if (integer.intValue() > 0)
    return true;
    I hope useful above code when use property tester in eclipse RCP

  • Using the radio button component to go to a frame on a MovieClip

    hello,
    I am using the radio button component in Flash with a continue button.
    When the user clicks their option in the radio button and then clicks continue, I want it to go to a movieClips Specific frame.
    Here is the breakdown and the script I have so far is below.
    The radio group os named RadioButtonGroup
    The instance names for each of the three options are noviceButton,intermediateButton,expertButton
    My continue button has an instance name of continueButton
    and my movie clip I am trying to target has an instance name of level_mc
    here is my code so far:
    continueButton.enabled=false
    noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
    intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
    expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
    function revealContinue(evt){
        continueButton.enabled=true;
    continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
    function clickContinue(evt){
    var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
    gotoAndStop (frameNumber);
    the problem starts with my varFrame line-I don't know how to get it to go to the movieClip and gotoAndStop at a specific frame, based on which radio button was clicked and after the continue button is clicked.
    Does anyone out there have any ideas?
    thanks
    babs

    use:
    continueButton.enabled=false
    noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
    intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
    expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
    function revealContinue(evt){
        continueButton.enabled=true;
    continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
    function clickContinue(evt){
    var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
    level_mc.gotoAndStop (frameNumber);

  • How to write a numeric value to a plc register using a radio button

    I'm want display a HOA (HAND/OFF/AUTO) on my screen. Lookout is connected to a Allen Bradley PLC. I am trying to write to a "N" register. I want to write a zero to open all (eg) N7:10 bits, writing a one (1) will close a contact N7:10/0 and writing a two (2) will close N7:10/1 etc. How do I do it? Can I use a radio button and if so, how?

    ICI,
    Just wanted to let you know that you have posted your question in the
    MATRIXx part of the forum.  There is a specific board for
    Lookout.  If you repost your message there you will be more likely
    to get a good answer.
    Carl L
    National Instruments

  • How do I make a radio button control change automatically with time?

    Hello everybody
    I have a radio button selection with 4 options (Line A, B, C, D) which controls a number of valves depending on which line is sampled. Right now I have to do this selection manually but the proccess requires that each line is sampled for 15 seconds.
    Is there a way to do this automatically, meaning when I press a button (e.x. START) radio selection goes to Line A, after 15 seconds to line B, after 15 seconds to Line C, after 15 seconds to line B, after 15 seconds to Line D, and then from the beginnining to line A, B, etc..., until I press the stop button.
    Any help is appreciated
    Thanks for your time

    Hi evdo,
    'tst' is right. The "Radio Buttons" control from the "Boolean" palette
    is basically an Enum. You can add or remove elements as you want and
    only one element can be TRUE at any time (just as the Enum only can
    have one selected item at any time). Just copy and paste the radio
    buttons within the frame to add more choices/elements.
    I created a small example that takes tst's example a little further. I
    implemented the four choices and added an Event Structure for better
    timing. Give it a try and let me know what you think, thanks.
    Have fun!
    Message Edited by Philip C. on 07-06-2005 10:05 PM
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    Radiogaga.PNG ‏14 KB
    Radiogaga.vi ‏25 KB

  • Right-click doesn't work on select boxes, checkboxes & radio buttons. On other elements, there's no"Inspect Element" option

    After installing FF 6.0, right-click doesn't work on select boxes, checkboxes & radio buttons, i.e. nothing happens on right-clicking.
    The context-menu is available on other elements, but there's no"Inspect Element" option in the context-menu

    Regarding the two-button click: just go to the "Sytem Preferences --> Mouse" pop-op and under "One Finger", check the "Secondary Click" box.  Problem solved.  I don't know how I missed this the first 3 times I went to there.    Oh well.
    And as for why I had to change the Trackpad settings to get the Magic Mouse zoom feature to work (see original question): I'm still stumped.   Your guess is as good as mine.
    Hope this helps!
    Steve

Maybe you are looking for

  • [solved] No DJ controller found on Mixx, still 100% compatible

    Hello! I've bought this Reloop Digital Jockey IE 2 for usinig it as an audio and controller device in conjunction with Mixxx. Tried on my parent's Ubuntu desktop everything works out of the box, but on my arch notebook setup only the sound card is wo

  • Date substraction

    how to get correct result for the time subtraction of minutes for the following query select (to_date('14-06-2012 11:10:00','dd-mm-yyyy hh24:mi:ss') - to_date('14-06-2012 11:00:00','dd-mm-yyyy hh24:mi:ss'))*60*60 as result from dual RESULT 25 i want

  • OpenSSH updates

    Is Oracle going to update the OpenSSH version in Solaris 10? The current version of OpenSSH does not allow your terminal to go away if you have background jobs running. You can easily test this by using SSH to connect to a Solaris 10 host and then at

  • Studio Server Portlet page content change

    Where do I change the content of default page created by STUDIO PORTLET WIZARD? How do I access that page? Any tips or hints would be greatly appreciated.ThanksSnehal

  • All my pdf files are very slow to download, scroll down and/or read.

    I am having difficulties opening any pdf files as it is very slow, does not scroll down easily and just plain cumbersome.  Does anyone have any suggestions on how to fix this?  Additionally, as soon as I want to open the file, the fan on the cpu star