How to Disable a Checkbox on a report condionally.

I have a report and I created a checkbox on this report.
I have a button which is associated to the checkbox.
When I check a record an click the button I delete that record.
This all works great.
I want to disable the checkbox based on a condition.
Lets say I cannot delete DEPT rows 20 at all. In this case I want to disable the checkbox and do not allow use to delete these records.
Can anyone help me on this.
I really appreciate your help on this.

In your SQL query, you may be able to use a CASE WHEN statement to accomplish this.
SELECT .. CASE WHEN dept_id = 20 THEN <dont display checkbox or show disabled> ELSE <show checkbox> END
Ravi

Similar Messages

  • How to disable cache for a particular Report in obiee 10g?

    HI
    My name is Rani .Learning obiee10g ifaced 1 interview in that they asked me like how u disable cache for a particular report?

    In the advanced tab of the report, under prefix you need to mention:
    SET VARIABLE DISABLE_CACHE_HIT=1;
    Refer below link
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks

  • How to make a CheckBox for a report parameter?

    Hi,
    How to make a CheckBox for a report parameter?
    thanx

    design ur parameters forms using forms and call ur report form there

  • How to disable edit link in interactive report

    Hi,
    How to disable edit(e3.gif image) link interactive report.
    Thanks,
    nr

    Hi Jari,
    Apex Version:3.2
    I created on Interactive report on emp table I have created edit link on empno using Icon5 image.
    Report Attributes>Column Attributes>Column Link.
    I can Hide the Icon5 using following script but I need to disable only. I did not get any disable() method in Jquery.
    Region Id:R812581842900385833
    $(document).ready(function() {
    var viewOnly=document.getElementById('P1_ITEM1').value;
    if(viewOnly == "0")
    $("#R812581842900385833 img").hide();
    thanks,
    Nr
    Edited by: pnr on Mar 13, 2012 6:09 AM

  • How to disable (grey out) button in report

    Hi,
    Can any one; pls help how to disable button (grey out) on some specific condition.
    I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.
    My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.
    I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
    Sample code is:
    if :value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;
    The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).
    My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?
    Thanks!!
    UK

    I have an example: http://apex.oracle.com/pls/otn/f?p=27168:1 using theme #2. You need to use a theme that has a "grayed-out" alternate button template.
    To accomplish this I:
    1) Created one item named P1_VALUE1 to contain the condition as to whether the button should be enable ("enable_test_value") or disabled ("disable_test_value").
    2) Created an enable button with a "Button Style" of "Template Based Button" with "Button Template" value of "Button". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    3) Create a disabled button with "Button Style" of "Template Based Button" with "Button Template" value of "Button, Alternate 3". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 != 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    Mike

  • How to disable a checkbox

    Hi,
    I have scenario where I have 4check boxes in my selection screen.. P_PRI, P_QUA, P_NEW and P_INV.
    <b>P_PRI, P_QUA, P_NEW</b> will be selected(X) by default.
    I have a requirement like when I select the fourth Checkbox <b>P_INV</b>, the two check boxes P_QUA and P_NEW should be unchecked and should be disabled(uneditable mode) and at the same time I have to generate some warning message(Later it will display the output after showing the warning message).
    Is it possible to disable a checkbox..? If so, please tell me how to do that.
    Can anyone provide me the sample code how to do this.
    This is the selection screen logic I was talking about.
    SELECTION-SCREEN BEGIN OF BLOCK CHOOSE WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-002.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_PRI AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 31(15) TEXT-003.
    SELECTION-SCREEN POSITION 48.
    PARAMETERS: P_QUA AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 61(15) TEXT-004.
    SELECTION-SCREEN POSITION 78.
    PARAMETERS: P_NEW AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK CHOOSE.
    SELECTION-SCREEN BEGIN OF BLOCK PRICE WITH FRAME TITLE TEXT-006.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-007.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_INV AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PRICE.
    Thanks in advance.
    regards,
    Paddu.

    Hi Paddu,
    Check this out...I didn't include Warning message but once you are satisfied with this code...we can add it easily
    SELECTION-SCREEN BEGIN OF BLOCK CHOOSE WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-002.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_PRI AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 31(15) TEXT-003.
    SELECTION-SCREEN POSITION 48.
    PARAMETERS: P_QUA AS CHECKBOX MODIF ID m1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 61(15) TEXT-004.
    SELECTION-SCREEN POSITION 78.
    PARAMETERS: P_NEW AS CHECKBOX MODIF ID m1 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK CHOOSE.
    SELECTION-SCREEN BEGIN OF BLOCK PRICE WITH FRAME TITLE TEXT-006.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-007.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_INV AS CHECKBOX USER-COMMAND P_INV.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PRICE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_inv = 'X' AND screen-group1 = 'M1'.
          p_qua = ''.
          p_new = ''.
          screen-input = '0'.
        ENDIF.
        MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Vivek

  • How to disable refresh button in webi reports in BOXI3.1SP2-Java SDK

    Hi all,
    We have integrated Java with BO, here end users will give parameters through java screen. After submitting all the parameters webi reports will opens in separate window.
    Here requirement is end users should pass the parameters from java screen and they should able to save the report in to excel/PDF.
    Refresh/edit buttons should disable/hide in the webi report.
    below is the sample url we are using in the java.
    http://" + CMS + ":8080/ OpenDocument/opendoc/openDocument.jsp?"+ "iDocID=" +ReportID + "&sType=wid&sRefresh=N&sWindow=New&lsSEnter List Name: =+List&token=" + token
    we tried with using &buttonrefresh=hide in above URL.
    Note: We are also having hyperlink reports in the Webi.
    Please provide me inputs to disable refresh button.
    Thanks,
    Subash

    Hi,
    why do not set this over the authorization scheme? Just deny your users the right to refresh/edit the report.
    Regards,
    Stratos

  • How to disable a Checkbox with condition.

    Dear experts,
    I am doing a module pool program. My questyion is, the program has a checkbox. After certain process, let's say if it met a IF condition. This checkbox needs to be disabled. No matter the checkbox previously is ticked or without tick. The checkbox need to be completely disabled.
    Please advice how should I do it. As I have search in the forum for some time, but I could not get my answer.
    Appreciate if someone can help. Thanks in advance.

    Hi,
    3 problems.
    1. U r using lower case for check boxes screen name
    2. Screen-invisible is used to make data of the parameter invisible while typing eg: PASS WORD.
    3. What ever modification we are doing is over written in AT SELECTION SCREEN OUTPUT event.
    use screen input attribute as i told earlier.
    AT SELECTION SCREEN OUTPUT is analogous to PBO of
    Dialog program
    Check below modified code. It is working fine now.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      tt = 'Example'.
      chk1 = 'X'.
    AT SELECTION-SCREEN OUTPUT.
      IF radio1 EQ 'X'.
        LOOP AT SCREEN.
          CHECK screen-name = 'CHK2'.
          screen-input = 0.
          MODIFY SCREEN.
          EXIT.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          CHECK screen-name = 'CHK1'.
          screen-input = 0.
          MODIFY SCREEN.
          EXIT.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN ON BLOCK b1.
      CASE sy-ucomm.
        WHEN 'R1'.
          IF radio1 = 'X'.
            CLEAR chk2.
            chk1 = 'X'.
          ELSEIF radio2 = 'X'.
            CLEAR chk1.
            chk2 = 'X'.
          ENDIF.
      ENDCASE.
    I hope u r clear now.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 29, 2008 4:33 PM

  • How to disable the Unified CCX Historical Reports Scheduler

    Hello All,
    I'm trying to see if there is a way to disable the Historical Reports Scheduler from Auto-Starting when I boot up the PC (*i.e. My user PC).
    The PC is running Windows XP, and the CCX Historical Reports App is running version 8.0(2.13).
    I checked for it in services.msc program and also in each user's "StartUp" folder but cannot find where it is getting started from. Anyone know how I can prevent this from Auto-Starting? I don't actually have any reports scheduled and I really on use the Unified CCX Historical Reports app once in a while...
    Any thoughts or suggestions would be much appreciated!
    Thanks in Advance,
    Matt
     

    Hey Carlo, thanks for the reply.
    Excellent, that did it! Thanks alot, very much appreciated... I couldn't remember the command to bring up that utility. I've been using Linux for the last few years for the most part and got a little rusty with some of the Windows stuff, so thanks!
    Thanks Again,
    Matt

  • How to disable execute button in ABAP report

    Hi,
    Is it possible to disbale the execute button of ABAP report? If yes, how?
    Thanks & Regards,
    Lohit

    You can do this
    You can set the Authorization for execution and Assign it to user whom you dont want that option. so that they cannot execute the Program.

  • How to disable datamodel name of bipublisher report

    Hi all,
    I have a bipublisher report which i want to put it in dashborad. After putting the report i am getting extra border line and name the data model. How can i remove it from dashboard ?
    thanks in advance ..

    Hello,
    some ideas :
    - give the Reports Server name as a Forms parameter
    - create an environment (registry on Windows) variable containing the Reports Server Name and read it with TOOL_ENV.GETVAR
    Regards

  • How to Disable CheckBox for a Particular Condition

    Hi All,
    In my application, iam using one table having 5rows , with checkboxes,
    based on one condition i want to  make few checkboxes as default disable in the same table, and some checkboxes i shud make it as enable, so experts please help me how to disable some checkboxes.
    disable means even if we select it shud not get selected, like that is it possible,

    Hi Sushma,
    You can have one more attribute in the same node from where you are populating the table and bind this boolean attribute to the enabled property of your CheckBox.
    and by looping thriugh the table you can check for conditions and based on it set the Enability of the checkbox.
    for (int iRowsCount =0;iRowsCount < wdContext.node<name>().size();iRowsCount++)
    if (condition)
    // Disabling the Checkbox based on the condition
    wdContext.node<name>().get<name>ElementAt(iRowsCount).set<BooleanAttributeName>(false);
    Hope this helps!!
    Cheers,
    Arafat

  • How to disable these parameters ?

    Hi All
    I trying to publish som reports on we ,i need to know how to disable the
    http://repwserver:port/reports/rwservlet/showenv?
    http://repwserver:port/reports/rwservlet/showmap?
    http://repwserver:port/reports/rwservlet/help?
    also i m trying to use keymapping ( CGICMD.dat) but it is not working.
    i tried to set some paramters in (rwservlet.properties) file but nothing change.
    any ideas how to solve this ?
    Thanks

    Hello,
    use :
    DIAGNOSTIC=NO
    in the file rwservlet.properties
    Oracle® Application Server Reports Services Publishing Reports to the Web
    10g (9.0.4)
    Part Number B13673-01
    3 Configuring OracleAS Reports Services
    3.3.3 Hiding Web Command Output
    Regards

  • 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

  • How to disable Print button in Report Manager in SSRS 2008

    I have a report with long list of columns. Currently we are supporting only excel export and we do not want user to print reports. I know we can disable export options by editing Render extensions in rsreportserver.config. Kindly suggest me how I can stop
    user from printing reports.
    Thanks.

    Please refer the link below:
    http://msdn.microsoft.com/en-us/library/ms155874.aspx
    "Report server administrators have the option of disabling the print feature by setting the report server system property
    EnableClientPrinting to false. This will disable client-side printing for all reports managed by that server. By default,
    EnableClientPrinting is set to true. You can disable client-side printing in the following ways:
    Select Enable download for the ActiveX client print control on the Server Properties page in Management Studio. To open Server Properties pages, connect to a report server instance in Management Studio, right-click on the report server node,
    and select Properties.
    Write script or code that sets the report server system property EnableClientPrinting to
    false."
    Thanks, Michael Mei
    Is there a way to enable or disable printing and export facility in the client based on report server roles. In our case some group of users only needs read access and so we want to prohibit export and print facility.
    bhav27

Maybe you are looking for

  • Error: no product cost estimation possible, at the releasing for accounting

    Hi Guru, while releasing for account in billing document for the finished product.Shows Error as:"no product cost estimation not allowed". Thou I cheked configuration checking of costing key in COPA and costing variant of relevant one looks fine. Plz

  • Ticker problem

    Hello! I've got a problem with the Ticker-function. I don't want my Ticker to reset (start over again) when i change between an application's Displayables. Does anybody know how to avoid this? I supply an example where the Ticker will be reset if you

  • New installation of Exchange Server 2013

    After installing Exchange 2013 on a Server running Microsoft Server 2012 I am unable to bring up the (EAC) Exchange Administration Center. I am entering the addresshttp : // <servername> / ecp as listed in my instructions and i am getting ERROR 404 f

  • Rebuild master database on MSSQL Server Edition 2012

    Hi There, Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012? Thanks, Ashish Tripathi Regards, Ashish Tripathi

  • What is mplayer and how can I close it?

    My battery life seems to be draining too fast. I checked my Activity Moniter and 'mplayer' is taking up most of my CPU. What is it and is there a way to shut it off?