How to disable the inputfield using radio button dynamically in module pool

How to disable the inputfield on the screen using radio button dynamically in module pool.
Please suggest .
        Thanks.
Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

I got it thank you.
LOOP AT SCREEN.
    if  screen-GROUP1 = 'LA1'.
       If RADIO1 = 'X'.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
     ELSEIF RADIO2 = 'X'.
       screen-input = '1'.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDMODULE.                 " STATUS_0100  OUTPUT
Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

Similar Messages

  • How to change the text of a button dynamically in module pool

    hi gurus,
    how to change the text of button dynamically

    Hi ,
    Declare a variable in TOP Include with your button name.
    Example : P_BUTTON(20) TYPE C.
    Place button with name P_BUTTON on you screen. Do not forget to mark it as "Output Field". [ Double click on button, Attributes --> Program tab --> tick "Output Field".
    In you PBO / PAI , whereever you want to change your text -
    Assign value to P_BUTTON.
    Example -
    iF COND1..
    P_BUTTON = 'EDIT'.
    ELSEIF COND2.
    P_BUTTON = 'DISPLAY'.
    ENDIF.
    Regards,
    Mohaiyuddin

  • How to disable the maximize and minimize button of JDialog

    How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.

    Btw, isn't it a little strange to ask thisquestion...
    Actually, I thought it was meant to be sardonic...
    Dialogs don't have those buttons, so the question
    n should be to the OP how did he/she get them in the
    first place? Cuz they aren't using JDialog to do it,
    unless it's something to do with a specific look &
    feel.I somehow missed that, good point :-)

  • How to disable the ribbon using javascript

    when open a PDF document using acrobat X, there is a Tool ribbon in the top right side (there is also a comment ribbon and share ribbon), how to disable or remove the Tool ribbon using javascript?
    I try to use app.listToolbarButtons() and app.hideToolbarButton(...) but not working.
    Any ideas?

    Not possible.

  • How to disable the attachment (paper clip ) button on Requisition Vacacy

    How can I disable the attachment (paper clip) on Requisition and Vacancy screen using form personalization, I want to do this only for one particular responsibility?

    Please post this question here: OA Framework

  • Issue in radio button group in module pool in infotype creation

    Hi,
    I have a custom infotype,where there are six radio buttons belonging to same group for different mode of payment.Issue is when user clicks a radiobutton,a subscreen opens .there are six different subscreens when user clicks on each of the six radio buttons.
    Requirement is when user clicks one button ,one subscreen opens but the other radio buttons(whcih are eligible to be open) gets disabled .I have tried to handle the issue manually through coding ,but i think the issue is with the radiobutton grouping.
    How to make the other radio buttons open for input even when the user has clicked on one button and the subscreen opens corresponding to the screen so that the imemediately ther user clicks on another radio button and get the corresponding subscreen opened for him.Pls advise.

    I have written a custom module in PBO section of my custom infotype.There i have written this code:-
    LOOP AT SCREEN.
        READ TABLE  fp_it_payment_opt_open INTO wa_payment_opt_open WITH KEY scrname = screen-name.
        IF sy-subrc = 0.
          screen-input = c_input_on.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    The internal table it_payment_opt contains all the radio buttons and checkboxes and is populated when the radio buttons and checkboxes are turned input on while modifying the screen depending upon course of my price and personnel subarea.
    While calling subscreen area in PBO,the radiobuttons get into a state of input-off automatically.so i have written a z-module after
    the module hidden_data .
    PROCESS BEFORE OUTPUT.
            general infotype-independent operations
      MODULE before_output.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
            infotype specific operations
      MODULE p9300.
      CALL SUBSCREEN subscreen_area INCLUDING subscr_prog subscr_dynnr.
      MODULE hidden_data.
      module z_open_paymnt_optns.
    My problem has been solved ,hence am closing the thread.Thanks to all of you.

  • How to pass the Data to sclect option field in module pool??

    Hai Experts,
                         I have Created the Select-Options using Sub screen its working fine for me.
    But the problem is when i pass the data to one of the my select options field its not  showing  in display mode..
    please me this
    i created select option slike this,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS : s_kunnr  FOR wa_zcodntr-fin_kunnr,
                                  s_altkn FOR wa_zcodntr-altkn.
    SELECTION-SCREEN END OF SCREEN 400 .
    Thanks ,
    Adv.

    Thanks SAP_wiz kick replay,
    Actullay in my module pool screen i have to select option field like F1 and F2
    any one filed give the input and excute pick the coresponding data for F2 (select option) field and  display  and vice -versa.

  • Creating buttons dynamically in module pool screen

    Hi friends,
    I have one screen .
    It has two input fields .
    Say : Sales order no & Bin no .
    based on this i found some batches from database table using select query .
    Now the number of buttons depends on the no of batches i found .
    If I get 5 batches , then I will create 5 Push Buttons on screen .
    Please let me know , How to create these buttons dynamically on screen .
    Regards ,
    Manoj

    Hey ,
    I tried using custom container and then a toolbar in it .
    But this toolbar create buttons either vertically OR horizonatally .
    I want buttons all over the screen to be created dynmically .
    Please help ...

  • Want to change the text of a coloumn dynamically in module pool program

    Hi to all experts,
    I need to change the text in a table control( of a column)of a module pool program dynamically ....depending on the company cod e.

    Hi,
    In program depends on the condition you can access the table_control-cols-name and modify it accordingly.
    Eg:
    CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
    you can access the control like:
    TABLE_CONTROL-COLS[1]-SCREEN-NAME
    and modify the same dynamicaly
    cheers
    shibu

  • How to disable the print "ALL" feature for users?

    Is there a way to limit the user from printing an entire Adobe Acrobat  document by accident.  We have many documents that are 50 pages and more  and often times, the user only needs to print several pages but because  of CCS (Continual Clicking Syndrome), they blast right through the  print menu and send the whole document to the printer. 
    The easiest way would be to disable the "ALL" feature (radio button) in  the "Print Range" field.  However, I do not know if that is available or  if there is code I can enter in each document.

    It's not possible.
    However, you can create buttons on your document that "help" the user print
    just a part of the document: a certain page range, just the current page,
    etc.

  • How to Disable the radio button on page

    Hi All,
    We have a requirement to disable or hide a radio button on the standard Noritifacation Reassign page in R12.
    The page is /oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Personalize Page', I can see a 'messageComponentLayout', when I set the 'Rendered' property to 'false'.
    It is hiding out the complete Layout, but I just want to hide only one radio button from that layout.
    Can someone please help?
    Thanks,
    Dilip

    Thanks Sandeep and Keerthi,
    I got that point but I am facing one more problem, as you said, its creating radio groups dynamically in CO.
    Now I am trying to extend the CO and disable the radio butto, But I am getting Null Pointer exception, I guess, I am not able to get the proper handle to that radio button.
    Can you please help?
    Here is the Controller code where it created buttons dynamically.
    ==========================================
    OAViewObject localOAViewObject = (OAViewObject)localOAApplicationModule.findViewObject("ReassignTypeVO");
    localOAViewObject.executeQuery();
    OARow localOARow = null;
    int j = localOAViewObject.getRowCount();
    switch (i)
    case 1:
    localObject5 = null;
    for (int k = 0; k < j; k++)
    localOARow = (OARow)localOAViewObject.next();
    localObject5 = (OAMessageRadioButtonBean)createWebBean(paramOAPageContext, "MESSAGE_RADIO_BUTTON");
    ((OAMessageRadioButtonBean)localObject5).setText(paramOAPageContext, (String)localOARow.getAttribute("Meaning"));
    ((OAMessageRadioButtonBean)localObject5).setValue(((Number)localOARow.getAttribute("LookupCode")).toString());
    ((OAMessageRadioButtonBean)localObject5).setID("" + k);
    ((OAMessageRadioButtonBean)localObject5).setName("NtfReassignType");
    ((OAMessageRadioButtonBean)localObject5).setShortDesc((String)localOARow.getAttribute("Meaning"));
    if (k == 0)
    ((OAMessageRadioButtonBean)localObject5).setSelected(true);
    ((OAMessageComponentLayoutBean)localObject1).addIndexedChild((UINode)localObject5);
    ==========================================
    Here is the code I have written, but its going into exception.
    ===========================================
    try
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("0");
    testButton.setDisabled(true);
    pageContext.writeDiagnostics(this,"expMsg: got the testButton",1);
    //i tried with OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("NtfReassignType");
    // and
    //OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("MESSAGE_RADIO_BUTTON");
    //but still its not working and going to exception block
    catch (Exception exception)
    throw new OAException("Error in NtfReassignFnCO button: "+exception, OAException.ERROR);
    ===========================================
    Please help.
    Thanks,
    Dilip

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • How do I search a site using radio buttons

    I am trying to search a site using radio buttons. I have one table and 5 columns. I have 5 radio buttons marked like 01, 02, 03,04,05. I am using Dreamweaver cs5 php, when I click the radio button 01 I will like to get the response with all 01 files. I will like to mention that the file names are like 01-010-1, 01-010-2 and than 02-020-1 and so fourth I do not know how to write the advance query
    This is what I have
    SELECT QBF, ADDRESS, NATSO, TSOCNT, PDF (this re my db columns)
    FROM alldwgs (this is my table)
    WHERE QBF like %colname% (this is the column that contains the file names 01-010-1 etc)
    ORDER BY QBF ASC
    I don’t know what to write on the variable box
    Name: colname
    Type: text
    Default value: 01
    Run time value: $_GET['QBF']
    I hope that you understand my question I am new to this. Thank you very much for your response

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • How to disable the trackpad button function?

    My trackpad botton goes mad, it's seems like hold you mouse's left button and you can click the right button, just can't open the file, my usb mouse works great only in Snow Leopard, in Leopard I can use none of mouse or trackpad.
    I think my trackpad button has broken, I want to disable this button, but I don't know how, can you give me some advise?
    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL?

    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL and keep my trackpad available, I prefer using touchpad, I think I can disable the button and still use touchpad?
    I apologies for my poor english.

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

Maybe you are looking for

  • Problems uploading photos - some missing

    In creating a new website with approximately 50 photos in a gallery, when I go to upload them (to my own website via ftp client, not .mac) I get errors that it "can't change directory. No such file or directory" referring to the directories that iWeb

  • Disappearing downloaded items

    I recently suffered a major drive crash. I sent Apple a message regarding recovering some of my downloaded items (specifically a season of a TV Show). It downloaded, but now I can't find it at all. It is not in its folder, and iTunes doesn't know whe

  • Crashing on windows 7 64 bit

    Firefox 19.0.2 crashes constantly on Windows 7 64 bit. Here are the report IDs: <pre><nowiki>bp-7a037cce-4477-4b8d-a7ec-2ca2c2130401 01/04/2013 01:04 p.m. bp-6367c77a-2bfa-476b-b27a-f9b7d2130401 01/04/2013 12:37 p.m. bp-d80177e9-d082-4530-af4c-af4292

  • Reports not being sent as attachments to email

    I used rwcli60 to fire off a report to a report server (both running on Solaris 2.6), with destype being mail, and desname my email id, and desformat PDF. I did receive the email of the report, but it showed up in the body of the mail instead of as a

  • Reg: NW CE ear build problems

    Hi all I have a java project which is to be put into a EAP. It simply doesnt appear under J2EE module dependency of the EAP. I have no clue why? The same was working a day before. I feel this very buggy. Can anyone please help? Overall I see the buil