Disable check box in report

Hi All,
I have created check box in a report using APEX_ITEM.CHECKBOX
select apex_item.checkbox(1, emp_id) , emp_id,ename,manager,skills,salary,services from employee
In employee table each employee would have 2 records one is for Engineering and another for Research services.
If the user selects one of the records using the check box ,lets say engineering service for emp_id 100, corresponding Research service record for the employee 100 should be disabled( or the check box in the Research service record should be disabled) and on the other hand it should be enabled when the user unselects it.
Please help me to resolve this.
Application Express 4.1.1.00.23
Glass-fish server
Thanks and Regards,
Sasi

This is from one of my examples:
SELECT apex_item.checkbox (1,
                           '#ROWNUM#',
                           CASE
                              WHEN status = 'N'
                                 THEN 'disabled=disabled;'
                              ELSE NULL
                           END,
                           DECODE (status, 'Y', '#ROWNUM#'),
                           'f01_' || '#ROWNUM#'
                          ) check_box
  FROM employees_checkboxIt will show the checkboxes disabled if status is 'N' and enabled if stauts is 'Y'. Is this similar to your requirement?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Input disabled check box

    how to display input disabled check box in selection screen.
    plz give me sample code.i think we have to use at selection-screen output. so using it how we have to build code

    Below is the code we can use:
    REPORT zrjntrial_tree LINE-COUNT 65
    LINE-SIZE 80
    NO STANDARD PAGE
    HEADING.
    TABLES : vbrk.
    PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
    SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
                     s_fkdat FOR vbrk-fkdat.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_RADIO'.
            screen-input = 0.
            screen-output = 1.
            MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Regards,
    Himanshu

  • Disabling Check Box

    HI Experts,
                   I have Selection screen where in 1st Block I have 3 Radio Button & respective input fields. In 2nd Block I have 2 Radio button & Respective Check Boxes. I used Loop At Screen for Disabling Input Fields in 1st Block whose Radio Button is not clicked. I need to do the same Functionality for 2nd Block so that I can Disable Check Box whose Radio Button is not Clicked.
    I have allready writen  USER-COMMAND ABC in 1sr Block.
    And it wont allow me to write another USER-COMMAND for 2nd block. What Would I Do.
    Plz Help. Urgent.
    Thanks.
    Khan.

    Hi,
    Refer to the following code:
    selection-screen begin of screen 100 title title.
    selection-screen begin of block b1 with frame title text-t01.
    parameter:rad1 radiobutton group rad user-command frad1 default 'X',
              rad2 radiobutton group rad .
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-t02.
    parameter: mtr as checkbox modif id g3 user-command chk1,
               p_matnr type eban-matnr modif id g1,
               sloc as checkbox modif id g3 user-command chk2,
               str_loc type eban-lgort modif id g4.
    selection-screen end of block b2.
    selection-screen begin of block b3 with frame title text-t03.
    select-options: matnr1 for eban-matnr modif id g2.
    selection-screen end of block b3.
    selection-screen pushbutton /20(10) name user-command ucom.
    selection-screen end of screen 100.
    name = 'FETCH'.
    title = 'Test Report'.
    call selection-screen '100'.
    type-pools slis.
    declaration of internal tables and work areas to be used
    data: begin of it_pr occurs 0,
          banfn type eban-banfn,
          bnfpo type eban-bnfpo,
          loekz type eban-loekz,
          statu type eban-statu,
          ekgrp type eban-ekgrp,
          matnr type eban-matnr,
          werks type eban-werks,
          lgort type eban-lgort,
          preis type eban-preis,
          peinh type eban-peinh,
          end of it_pr.
    data: begin of it_mat occurs 0,
          matnr type eban-matnr,
          end of it_mat.
    *DATA:BEGIN OF ITAB1 OCCURS 0,
      data: l_answer.
    data: it_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat like line of it_fieldcat,
          it_event type slis_t_event,
          wa_event type slis_alv_event.
    declaration of variables to be used
    data: r_ucomm type sy-ucomm,
          mat_no type eban-matnr,
          len type i value 1,
          count type i value is initial,
          iflag type i value is initial,
          iflag1 type i value 0.
    data :pr_id type sy-repid,
    rt_extab type slis_t_extab.
    at selection-screen output.
      if rad1 = 'X'.
        loop at screen.
          if screen-group1 = 'G1' or screen-group1 = 'G4'.
            screen-active = '1'.
            screen-input = 0.
          elseif screen-group1 = 'G2'.
            screen-active = '0'.
          endif.
          modify screen.
        endloop.
      elseif rad2 = 'X'.
        loop at screen.
          if screen-group1 = 'G1'  or screen-group1 = 'G4' or screen-group1 = 'G3' or screen-group1 = 'G5'.
            screen-active = '0'.
          elseif screen-group1 = 'G2'.
            screen-active = '1'.
          endif.
          modify screen.
        endloop.
      endif.
      if mtr = 'X'.
        loop at screen.
          if screen-group1 = 'G1'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
      if sloc = 'X'.
        loop at screen.
          if screen-group1 = 'G4'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
    clear sy-ucomm.
    This will surely sort your prob
    Regards
    Gaurav

  • H ow we use check boxes in report

    how we use check boxes in report(alv,intrective)

    Hi,
    In the basic list we will display the Check box, once the check box is clicked then the recrod information should be displayed in the secondary list. so we will give the Check box for every reocrd then what ever we select the checkboxes. then we shoild provide the info of those records
    Reports with checkbox
    Regards
    Sudheer

  • How to disable check box (row selector) in a tabular APEX report

    I have a tabular report with check boxes that gets populated by a SQL query.  For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row).  I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL.  I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section.  For this reason, my condition does not work correctly.
    What am I doing wrong?  Is my approach above correct?

    Hi Ajay,
    I don't think you can handle this with a conditional display, as that works on column level rather than row level.
    The way I see it, there are two things you can do:
    1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
    You'll end up with a query like
    select case when YOUR_DATE_COLUMN < sysdate
                      then null
                      else  apex_item.checkbox2( p_idx => 1
                                                               , p_value => YOUR_DATE_COLUMN
    ,      <rest of your query here>
    from YOUR_TABLE
    2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
    First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
    Regads,
    Vincent
    http://vincentdeelen.blogspot.com

  • Disable Check box in tabular form

    Hi,
    I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
    How can i do this ?
    Thanks & Regards
    Vedant

    hi,
    this thread maybe help you
    Tabular Form: Enable/Disable a field based on the status of a check box
    regards,

  • How to display Check box in Reports

    Hello all,
    I just want to know about how to have a check box in the Reports.
    The check box should be checked if the value in the columns is true and unchecked if the value is False.
    Thank you
    Susan

    Try the below code
    select
         APEX_ITEM.CHECKBOX(1, field_name ,decode(fileld_name , 'N',null,'CHECKED'))
          field1 ,
          field2
    from some_table;Regards,
    Shijesh

  • Check box displaying reports

    hello
    I have some issues with a multi-choices check box. I use it to display a report using a combination of parameters correspondins to the checked items.
    Here are choices:
    DUNS
    SIC CODE
    Industry
    Sub Industry
    Total
    But When I want to display a report using DUNS, SIC CODE and INDUSTRY for instance, I get to see the report using SIC CODE/DUNS, the one using DUNS/INDUSTRY, the one using SIC CODE/INDUSTRY and finally the one I want using SIC/DUNS/industry. I use a conditionnal display :
    Text in Expression 1 Is Contained in Value of Item in Expression 2
    expression 2= P1_ANALYSE (the checkbox)
    expression 1= 1:2:3
    I want to display the report only if its exact parameters are checked and not other. I understand that the conditionnal display I use may not do that, so I tried
    select from dual
    where P1_ANALYSE=1
    and P1_ANALYSE=2
    and P1_ANALYSE=3
    also select "P1_ANALYSE equals 1" and...
    Doesn't work either.
    so if someone could help me that would be great :)

    No one?

  • Disabling Check box via SPEL

    I have a requirement where in a Message Check Box needs to be disabled. When navigated to this page the checkbox is already set.
    a. Can this be achived via Personalization?
    b. I have set the item's Required property to SPEL with the following value ${oa.AppraisalVO.disableCheckBox} but it errors?
    Please help!
    Thanks,
    Hari

    Set FND: Diagnostics profile to yes to get the complete error stack.
    --Shiv                                                                                                                                                                                   

  • Icons and check boxes in report output ?

    i want to display output with icons, and symbols (like Telephone) and check boxes in output of a report ?
    how pzzz anybody send the example ?

    Hi,
    We can use in alv output icons and check boxes
             ICON(1)        TYPE C,        " as icon
             SYMBOL(1)      TYPE C,        " as symbol
             CHECKBOX(1)    TYPE C,        " as checkbox
    in field catolog we can use these fields and you have to assign like remaing fields how you are using like that only.  If you know Icon function code or symbol you put there,  I think it may works.  
    Thanks
    Ganesh

  • Programatically enable-disable check box"play user interface sound effects"

    Hello All,
    I have been Working on something where i need to disable the "play user interface sound effects" check box ( Under System preferences under sound panel ) for few seconds and then enable the same programically without any user interface appearing on the screen. I know something related using the Applescript however there is a user interface appearing there which doesn't serve the purpose please help with some solution.If you could provide the exact location of the plist file which holds this information then that could help as well.

    Hi !
    I too have been working with the sounds ( Which i think is relates to @mit's query ) in an application and the problem is that when ever that application moves something to trash there is a sound which comes the sound of "throwing things in the trash". This is very annoying and i want to do something so that I can suppress that sound atleast for the time this application is on. Now is there some way where I can do this Programically . It would even be fine if I could turn off the user interface sounds completely for sometime and then bring them back on.
    Thanks In Advance !
    Looking Forward To Some response soon !
    iMAC G4   Mac OS X (10.4)   Power PC 256 MB RAM

  • Use check box for report and form

    Hi Expert,
    I try to use check box to select multiple rows in a report and then click on a button to go to a form on another page to choose some values from the form and then do a mass update for records selected in reports.
    I read the "How to Work with Check Boxes" in 2 Day Developer guide, it works fine to select mutiple rows in report and do update with process in that report page.
    However, if I click on a button to go to another page which contains a form, seems the values stored in the package array are cleared and not passed to that page.
    Do you know how I could make this work?
    Thanks a lot,
    Jessie

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

  • How to enable/disable check boxes in a table.

    hi Gurus,
    i am new to webdynpro for abap.
    the problem i have is.
    i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
    while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
    thanks in advance.
    Sree

    Hi
    Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
    for that i declare atrribute of type CHECKBOX.
    And i write the following code.
    lr_column_settings ?= l_value.
    lt_columns = lr_column_settings->get_columns( ).
    loop over table - in each loop another column can be modified
    LOOP AT lt_columns INTO ls_column.
    IF ls_column-id = 'CHK_BOX'.
    CREATE OBJECT lr_chk_box
    EXPORTING
    checked_fieldname = ls_column-id.
    lr_chk_box->set_read_only( ABAP_FALSE ).
    lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
    ls_column-r_column->set_cell_editor( lr_chk_box ).
    even i cant able to get checkbox in my ALV.
    IT is displaying as general field.
    Regards,
    Ravi

  • Multiple Report print out on Check box click

    Hi,
    I am using version apex_3.2.
    I have created Report and define check box in report. i want to give print functionality on check box. As i tick multiple invoices from report and click on print link defined below to the report, Selected Invoices should be printed. How i can do this?
    Thanks & regards
    Vedant

    Hello Vedant,
    <li> Do you already have a report that will accept multiple invoice numbers as input and generate required "Invoice Report" for you?
    <li> If Yes - Are you looking to generate URL based on user check-box selection? If so, please provide sample URL format which will accept multiple invoice numbers.
    <li> If No - I think first you should create such report (I have limited knowledge on Oracle Reports though)
    Regards,
    Hari

  • Check box hidden/visible

    Hi there...
    I have been reading a lot of posts about enabling/disabling check box and so far I have not found what I need to do.  It is a very simple action and I just can't figure out what to do:
    I have a check box and a text box.
    Initially, the text box is hidden (style"visibility"hiddent").
    UNTIL When the check box is checked, text box should appear to be filled in.
    Otherwise, text box stays hidden.
    I used the style attribute because "Disabling" the text box didn't work.  One can still type in something even if the check box was not filled in.
    I was wondering if this could happen on the client side?
    Please advise.
    Thanks,
    Karla

    This might help for a textarea
    http://www.w3schools.com/TAGS/att_textarea_readonly.asp
    For an input
    http://www.w3schools.com/TAGS/att_input_readonly.asp
    readonly is the attribute you are looking for I believe.
    Byron Mann
    [email protected]
    [email protected]
    Software Architect
    hosting.com | hostmysite.com
    http://www.hostmysite.com/?utm_source=bb

Maybe you are looking for

  • I can't post to iphone discussion?

    I wrote a really detailed description of my problem but can't post (do not enter symbol and greyed-out Post button). Why?

  • Outlook 2007 autoarchive via GPO is not working.

    Hello everyone! For the begging about our environment: Exchange 2007, Outlook 2007. We have the problem with setting the autoarchive to work. We`re using GPO to do it. All the settings are configured correctly, but the policy is still not working. On

  • Garageband exports my audio's volume too low

    So occasionally Garageband decides to export my audio with an outcome that is too low to hear. The audio sounds perfect while it's recording in Garageband itself, but once it exports to an mp3 and try to play it in Itunes or Quicktime, it's way too l

  • Kernel 2.6.27 upgrade hell

    Hi, the subject it's maybe a little too much dramatic but I'm being spending a lot of time with this "smooth" upgrade. Since I upgraded the kernel I was forced to: - Reinstall ATI drivers -> Reconfigure my xorg.conf for dual head - Rebuild vbox modul

  • Hi,   dialog prog  validation

    hi pl.  can anybody reply for the following query. i would like to know by how many ways validation is done in dialog prog and where in the flowlogic editor it is written. pl provide code with example. thanx. rocky robo