How to disable the check box (line selector) in a tabular report of APEX

I have a report in tabular form with checkboxes which is filled by a SQL query.  For some lines, I want to disable (or not) the box according to the value of one of the columns of that particular line (if the value of a column defined as Date is less than sysdate, I don't want to display the checkbox for that rank).  I tried to use the conditional display in the section of the column attribute of the checkbox, but I can't access this Date column that is currently selected in a view in the SQL source.  I used variables such as: name-of_column, V(':name-of_column'), but always get a NULL value for this column in the SQL code I'm trying code in conditional display section.  For this reason, my condition does not work correctly.

What I am doing wrong?  Exceeds my correct approach?

Hi Ajay,

I don't think you can handle this with a conditional display, as that works on the column rather than level level line.

The way I see it, there are two things you can do:

(1) approach to sql, where youo make the checkbox in your query using apex_item.checkbox, see the documentation of oracle for detailed information on the use of the APEX_ITEM

You'll end up with a query like

Select case when YOUR_DATE_COLUMN<>

then null

else apex_item.checkbox2 (p_idx-online 1

p_value-online YOUR_DATE_COLUMN

)

,

from YOUR_TABLE

(2) an approach JavaScript in which you create a dynamic action check your date column in a table and when the need hides and disables the check box for that rank.

First option is more robust, but it will take a little more work. Second option is faster to develop, but may have different effects on various browsers and browser versions.

Regads,

Vincent

http://vincentdeelen.blogspot.com

Tags: Database

Similar Questions

  • Clear the check box 'Results post successfully' after a report on internal server.

    I found how to disable the dialog box asking for name and email id, but how do I disable the checkbox:

    Capture.PNG

    Or change the words / title? but turn off would be better.

    Thank you

    -James

    Place the script:

    cp.model.data.rtDialog.rtWarningTitle = 'Message Box Title';

    Just above the constructDIVs(); function.

    As you change the JSON you do so before Captivate creates elements in the DOM.

    I have this in all my projects.

  • How to manage the default checkbox (line selector)?

    Hello

    I have a form where there is a default checkbox and I created a button named CANCELLED to cancel the special line, every time the user wants to cancel a particular line, it checks the check box so that, in the back-end, we took a cancel_flag of the column where it is appropriate to update this column 'Y' for the line selected by the end user.

    How can manage us this scenerio for the above context? Please any help will be greatly appreciated.

    TIA,
    By,.
    Murielle.

    Hello

    Create after submit conditional process your button

    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    UPDATE your_table
    SET cancel_flag = 'Y'
    WHERE your_chk_column = APEX_APPLICATION.G_F01(i);
    END LOOP;
    COMMIT;
    END;
    

    Change 'your_table' and 'your_chk_column' according to your table
    BR, Jari

  • Table multi-selection disabled the check boxes in ADF 10 g

    I think I met an obstacle when you work with a multi-selection table in 10 ADF.

    The selection itself works very well. However, my problem is to try to disable some of these boxes several selections. These boxes are disabled using the expression language. Once disabled, I can always choose these rows in the table using the button 'Select all' created by multiple selection facet. On the page sent, the disabled lines are not recognized as being selected, which is good. However, they always seem to be selected on the front-end server, which would be confusing for users.

    <af:table emptyText="No roles were found"
              binding="#{backing_userRoles.tableRoles}"
              id="tableRoles"
              value="#{backing_userRoles.userRoleList}"
              var="userRole">
                            <f:facet name="actions">
                              <af:commandButton text="Copy Roles"
                                                binding="#{backing_userRoles.cmdCopy}"
                                                id="cmdCopy"
                                                action="#{backing_userRoles.cmdCopy_action}"/>
                            </f:facet>
                            <f:facet name="selection">
                              <af:tableSelectMany text="Select items and ..."
                                                  binding="#{backing_userRoles.tableSelectMany1}"
                                                  id="tableSelectMany1"
                                                  rendered="#{backing_userRoles.managerFlag}"
                                                  disabled="#{userRole.role.autoGrantedFlag eq 'Y'}"/>
                            </f:facet>
    

    multiselecttable.PNG

    So as you can see, the disabled check box has been selected even when disabled. Any ideas on how to change this behavior? Or maybe just get rid of the default generated 'select all ' | 'Select none' orders?

    Thank you

    Cody

    Or, remove selection facet and make sure you have a selection logic - that is to say, some transient Boolean attribute of VO enabled/disabled state, and you have Select All/Select none

  • Disable the check boxes when a text box is superior to...

    Hello

    Having a bit of trouble getting a function to work.

    I have a number of boxes to tick each with their own digital value. The sum of these values are entered in a text box. (i.e. CB1 = 5, 6 = CB2, CB3 = 3. CB1 AND CB2 = 11)

    What I need is a way to disable the checkboxes unchecked when the textbox value is more than 10. Just so stop the user check boxes again after the value is more than 10.

    If ("TextField" < 10)

    {

    {

    this.getField("CB1").readonly = true;

    }

    }

    I would have had if that would be enough to at least define the read-only checkbox?

    Thank you

    Tom

    The Basic code to use is:

    If (+ this.getField ("TextField") .value > 10) {}

    this.getField("CB1").readonly = true;

    }

    However, you should always check whether the checkbox is selected or not... And you need to write a reverse script that changes the box back to editable when the value is less than 10.

  • How to disable the check of HDCP z3 double?

    Hello
    I can not trow nothing (only walkman, movies,...) since a mobile tv smart phone, he said that the TV was not have hdcp.
    But I try it with other devices (such as Zte), it works.
    So, can I disable this function? (HDCP)
    Thank you

    P. S.
    OS: android 5.0.2

    AFAIK, formware stock Sony doesn't have an option to disable the HDCP verified, you have 3 options:

    -Use a mirroring of HDCP compatible device, I suggest Chromcast dongle if you don't have to trade your TV.

    -Use a custom ROM that allows the deactivation of audit of HDCP, I believe Cyanogen Mod allows this in the settings of developers.

    -Change your TV to a fully compliant a HDCP.

    I saw on the forum even a statement of support of Xperia member they know this problem for Kitkat, and he said just a workaround solution that will be released with Lollipop. But apparently that didn't happen:

    http://sonymobile.lithium.com/T5/Xperia-Z3-Z3-dual/Z3-HDCP-error-with-Microsoft-display-adaptor-Mira...

  • How to get the number of lines in a region of report

    Hi all

    Is there a way to get the number of rows returned in a report region, without issuing an another 'select count (*) from une_table?
    I mean something like the substitution string #ROW_NUM # but for the total of the lines.

    Thank you

    Pedro.

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/UI.htm#CHDDGGEG

    For parts of classic report, the footer region supports the following substitution strings:

    #ROWS_FETCHED # indicates the number of lines read by the reporting engine Oracle Application Express (the size of the page). You can use these substitution strings to display messages to the user. For example:

    Read #ROWS_FETCHED # #TIMING # seconds lines.

    * #TOTAL_ROWS # displays the total number of rows that satisfy an SQL query used for a report.

    #FIRST_ROW_FETCHED # and #LAST_ROW_FETCHED # show the range of displayed lines. For example:

    Until #FIRST_ROW_FETCHED # by #LAST_ROW_FETCHED # of #ROWS_FETCHED # displayed >

    Van
    Trent

  • How to set the number of lines displayed in a classic report when running?

    Hello

    Our client has several hardware configuration standard customer and want to allow end-users to choose their 'view profile' at the time of the connection. This "display profile" would contain some predefined values for these configurations material and supposed to give various parameters that must set the number of lines displayed in a classic regional report.

    I tried to provide parameters on the report of the region, but he has refused to accept anything other than numeric values. Is it possible to do?

    Best regards, Tamas

    The link is about the closest correlate in the documentation to the description of the attribute Number of Rows (point) .

    Looks like you tried to write - in vain - a name string or change of item in the attribute Number of Rows . The attribute Number of Rows (point) is the one that can actually do. For a list of items in the application, click the icon of the flashlight next to her.

  • How to disable the Message box 'the current compatibility setting is not supported. Turn off compatibility view before you run this web page.

    Hi all

    Since a few days, we are on 11.1.2.3.500 and using IE 11. In IE 11, we can use Oracle EPM Suite only in Enterprise Mode, otherwise only "Bindows" appears. Now, my question is how can I disable (or remove) the Popup Message "the current compatibility setting is not supported. Turn off compatibility view before you run this web page. "because it's really embarrassing that this message whenever I start a planning application, Manager of calc or what ever.

    Thanks a lot for your help.

    Kind regards

    André

    You can go to tools > compatibility view settings and you should be able to remove the Web site / uncheck compatibility view so that you won't get this message

    HTH

    Amarnath

    ORACLE | Essbase

  • How to access the "Check Box" card resource

    Hello, I currently use 11.1.1.3.0 from IOM.

    I created a resource object, a form and an adapter that uses the java code that I created.

    In the form, I have two checkboxes, which act as Boolean values. These boxes should be introduced to the java method, that I created. I have downloaded the jar, went into the task of the adapter and began to fill the input parameters when I realized that I don't know how do to access the data card resource.

    So, how can I get it back of the IOM or not a selected user 'true' or 'false' (regarding the checkbox) and enter the java method via the console design?

    Can someone help me with this?

    You will need to create a process of type definition 'disposition' and specify the resource "Unix Linux" and the table as "US_ULHOST". Once you create the process, you will need to create your workflow (i.e. to define tasks that need to be called in a certain order) and connect your adapter to these tasks. When you attach your card you must map the entrance / exit of the adapter to the task. Thus, by mapping the entry, you will have the option to select "process data" and there you will see your form fields. I would say through the developer's guide to a better understanding of the procurement process and etc.

    -Marie

  • How to disable the text box field

    Please help me out on the following points.

    How to turn off the text area in master form of master detail form

    1. you must mention in which case you want that a field should be disabled

    2. in my example there is an event based deactivation of elements - select list P18_ENABLE_DISABLE, try changing the values. It's exactly what you want. The only difference is that the calculation is triggered when key hidden form element is not null.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • Select all the check box in the grid

    Hello

    Creating dynamic multiple checkbox which are placed in a table format in the grid.

    (a) how to select the check box and clicking a button

    (b) how to find how many check box are selected at the click of a button

    Thanks in advance

    Hi Srinth,

    Have you tested the code... He works for you...?

    His perfectly straight work on my side...

    Thank you

    Jean Claude Chari

  • How to upgrade the value of line in a report by using the line selector (check box)

    Hello

    I have a requirement where I need to make PLSQL update process on a specific line in my report.
    Based on the line selector (marked) the plsql process update on the values of the selected line.

    I have to update status of the employee selected as 3.
    But regardless of the choice of line selector, juice processing SRM application in a sequence that is., this is row selected, application takes the first line and updates the status.

    My update process from looks like this:

    BEGIN

    BECAUSE me in 1... apex_application.g_f01. COUNTY - checkbox
    LOOP
    If apex_application.g_f01 (i) only IS NOT NULL then - box marked
    insert into values TEMP_T (apex_application.g_f03 (i), V ('APP_USER')); -f03:Deptno
    update status set Table_x = 3 where deptno in (select deptno from TEMP_T where rtrim (lower (apex_user)) = rtrim (lower (V ('APP_USER')));
    delete from TEMP_T where rtrim (lower (apex_user)) = rtrim (lower (V ('APP_USER')));
    end if;
    END LOOP;
    END;

    Once the user selects the line selector, application needs to update the status of this particular emp 3 in Table_X.
    Currently, if I select a line, using the line selection box, my update process changes the status of the first record line. If I select three rows, then my first three rows updated.
    So I have to update the particular line or selected using the selector (checkbox) row lines

    If you could help me solve this question would be really appreciated.

    Thank you
    Vijay

    This example shows how to use checkboxes in tabular form:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:95

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to find the previous mouse clicked the check box

    Hello

    In my form with detail and header boclk

    For example: in a canvas
    Header 
    -----------
    item1                    item2                    item3
    item4                    item5                    item6
    
    Detail
    ---------
    
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    item7                    item8                    item9     checkbox1
    My requirement is now knowledge/capture when the user clicks the check boxes.
    If he clicks on the 1st record or record of 5th or 3rd I wants to get these values and that it must handle
    further...

    Thank you.

    Hello

    When you click anywhere in a recording, it becomes the current record, and you can get/set values using domain names.
    When the user clicks a control checkbox, its trigger raises the when-box-change and you know its value (if it is selected or deselected).

    François

Maybe you are looking for