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

Tags: Java

Similar Questions

  • 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

  • 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

  • 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 hide the false underscores (_) of af: table when you use the check boxes

    Greetings,

    I was wondering, how to hide the String _ of af: table when a checkbox control are false (0) in JDeveloper 11.1.2.4.0?

    If the box is true, then he have a symbol 'tick' and that was correct, but if its false (0) instead of projection

    nothing, it shows a string of underscore (_) and it looks bad.

    OK I found the solution after all.

    Was indeed a skin problem because I was using the default merge skin and he added this code:

    AF | selectBooleanCheckbox: {no selected icon

    Content: url(/afr/fusionFx-v2/checkMark_NS_readonly.png)

    }

    So, on my current skin, I replace it with this:

    AF | selectBooleanCheckbox: {no selected icon

    content: inhibit;

    }

    Thank you to notice me in the right direction.

  • 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 the check box for the table of the ADF

    Hi all

    I want to add the check box in front of each line. The user will select the row by clicking the box and going to treatment by clicking on a button.

    I just almost all possible discussions on OTN.

    What I've done so now
    1] added a transitional Boolean attribute in my VO. added as a selectBooleanCheckbox in .jspx page.
    [2] a button with backing bean that will do the processing. [He will pick up the attributes of all ranks and be written in a file]
    [* 3] it works fine if I use the default option of line by Ctel selection + A, or by pressing Ctrl + click or SHIFT + arrow key. Backing bean is not the issue.*
    [4] try to intercept the TableSelection Listner also.

    It comes

    When I select the check box, only the last selected line is processed and not all lines. How to make the selectable online by clicking on the checkbox.

    I use JDeveloper 11.1.1.5

    Refered links
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-row-selection-using-checkboxes/
    http://technology.AMIS.nl/2010/07/29/ADF-11g-select-all-rows-in-an-ADF-table/
    http://Sameh-Nassar.blogspot.nl/2009/12/use-checkbox-for-selecting-multiple.html
    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/99-checkbox-for-delete-in-table-1539659.PDF

    Mukesh.
    https://www.dropbox.com/s/1gqsaobgyjycie6/AddDeleteEmployees.rar
    
  • If choose something lower down then the check box is selected

    I want to choose from a list in the drop-down menu.  According to what is selected, then a box will be checked automatically.  This

    is what I have so far for the script.

    If (list == 'blah') then this.rawValue = 1

    I do not know if it to JavaScript or FormCalc... I guess JavaScript because there is no calculation.  I'm also not sure whether to put the script on the drop-down list or checkbox.  Also in which should case I use?

    Thank you

    Him == is used to compare two values. then you use it properly in the case. When yo want to assign a value to an object, then a unique sign = is used. So, your code should be CheckTwo.rawValue = 1.

    You can use an OR condition to check multiple values of th FEI statement. So if the box should be checked if they choose blah, blah2 or blah1 then you might do this:

    If ((this.rawValue == "blah") |) (this.rawValue == "blah1"). (this.rawValue is "blah2")) {

    CheckTwo.rawValue = 1;

    } else {}

    CheckTwo.rawValue = 0;

    }

    Make sure to uncheck the checkbox if none of these options are chosen. That way if they choose one of these options (the check box is selected), and then they change their mind and choose a different value it should be disabled.

    Make sense?

    Paul

  • Reposition the cursor when the check box is selected

    Good day all.

    I'm trying to figure out how I can reposition the cursor in a text field once I've selected a checkbox.

    Example; I have 3 boxes can select use. When the user selects the check box, I want to cursor to move to this box.

    Does anyone know how this could be done?

    Using Adobe LifeCycle Designer 8.0

    Windows XP Pro

    Thank you all

    Chomp

    No Chomp problem, I updated the form that you posted to set focus in the first textfield in the hidden subform (criterion 1). I published the form here:

    https://Acrobat.com/#d=46bhrRPpzUOEN4XI7--W-w

    Notice how the full path should be clearly explained when fields bound, in this case, a check box and a text field, are in different subforms.

    If you never do know what the full path to a field, click a different field, click in the script Manager window, then ctrl + click the field you want the path. If you have this selected field ctrl + click 'this' will return just as he will himself reference in the script manager.

  • To access the check boxes in the user interface programmatically

    Hi all
    I have the following usecase.
    1. I have a table that has 3 columns, first two columns are read only output of the label component and the third column is a checkbox.
    2. I have three lines in the table.

    Now:
    1. when a user selects the check box and click on a "submit" button I want to check that it should have selected at least one checkbox.
    2. for which I tried to access the table from the user interface programmatically, but it does not work.
    Is there a way I can access the values?

    Thanks in advance,

    Hello

    The box must be bound to an attribute line in the table is related to data collection. If yes then simply loop through the lines and check if the attribute has been set. For example, if each line has a "checked" property, so you can ensure at least a line "checked = true' in your action. To access the collection, you can use something like:

    Object initialRowKey = table.getRowKey();
    try
    {
        int count = table.getRowCount();
        for (int i = 0; i < count; i++)
        {
            table.setRowIndex(i);
            MyObject row = (MyObject)table.getRowData();
            if (row.isChecked())
            {
                // do something, set a flag to true, etc.
            }
        }
    }
    finally
    {
        table.setRowKey(initialRowKey);
    }
    

    The code above assume that you linked the table to your managed bean using the "required" attribute in the table.

    Kind regards

    ~ Simon

  • 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

  • Try to build the form using the check boxes - need help

    I am creating features using a region on the left to contain what I want (and it is stopped), an area on the right that contains all the rest I might add, with buttons in the middle to get things back (Add/Remove). I try to use the collections and APEX_ITEM. CHECKBOX and everything just do not have luck using the check boxes at all. Can someone tell me please a tutorial or an example that works in the way to read a collection by using the checkboxes and manipulate? Normally, I uses a FRONT of Validations process to update the collection with the changes that the user has provided, then follow up with any validations, then run any what DB written/modifications/deletions in a page AFTER VALIDATION process.

    Here's what I have so far:

    Area to the left (list of items already included in the package)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_CHKLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select a.ID, a.DOC_ORDER, a.DOC_PKG_ID, a.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_ASSIGN a, DOC_TYPE t
         where a.DOC_TYPE_ID = t.DOC_TYPE_ID
           and a.DOC_PKG_ID = :P182_PKG_ID
         order by a.DOC_ORDER;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_CHKLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_CHKLST'
    Area to the right (complete list of topics already in the package possibilities)

    (On the process of loading Page (before header) -: P182_PKG_ID is passed as input)
    --Prep collection
    ---------------------------------------------
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'DOCWIZ_TYPLST');
    
    declare
      v_lnid      NUMBER;
      v_ordr      NUMBER;
      v_pkg       NUMBER;
      v_type      NUMBER;
      v_typenm    VARCHAR2(47);
      cursor c_prepop is
        select 0, 0, :P182_PKG_ID, t.DOC_TYPE_ID, t.DOC_TYPE_NM
          from DOC_TYPE t
         where t.DOC_TYPE_ID not in (select DOC_TYPE_ID from DOC_ASSIGN
                where DOC_PKG_ID = :P182_PKG_ID)
           and t.DOC_TYPE_ID > 0;
    begin
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_lnid, v_ordr, v_pkg, v_type, v_typenm;
          EXIT WHEN c_prepop%NOTFOUND;
          APEX_COLLECTION.ADD_MEMBER(
              p_collection_name => 'DOCWIZ_TYPLST',
              p_c001 => 0,          --CHKBX
              p_c002 => v_lnid,     --ID
              p_c003 => v_ordr,     --DOC_ORDER
              p_c004 => v_pkg,      --DOC_PKG_ID
              p_c005 => v_type,     --DOC_TYPE_ID
              p_c006 => v_typenm    --DOC_TYPE_NM
           );
        END LOOP;
      CLOSE c_prepop;
    end;
    Report area (column 2)
    SELECT apex_item.DISPLAY_AND_SAVE(1, SEQ_ID) SEQ_ID,
        apex_item.CHECKBOX(2, c001, 'UNCHECKED') CHKBX,
        apex_item.DISPLAY_AND_SAVE(3, c002) ID,
        apex_item.TEXT(4, c003, 3, 3) DOC_ORDER,
        apex_item.DISPLAY_AND_SAVE(5, c004) DOC_PKG_ID,
        apex_item.DISPLAY_AND_SAVE(6, c005) DOC_TYPE_ID,
        apex_item.DISPLAY_AND_SAVE(7, c006) DOC_TYPE_NM
      from APEX_COLLECTIONS
     where COLLECTION_NAME = 'DOCWIZ_TYPLST';
    Process - before validation page:
     Update Collection
    ---------------------------------------------
    declare
      i pls_integer := 0;
    begin
      for c1 in (
        select seq_id from apex_collections
         where collection_name = 'DOCWIZ_CHKLST'
         order by seq_id) loop
        i := i+1;
        --CHKBX
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>1,p_attr_value=>wwv_flow.g_f02(i));
        --DOC_ORDER
        apex_collection.update_member_attribute (p_collection_name=> 'DOCWIZ_CHKLST',
            p_seq=> c1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f04(i));
      end loop;
    end;
    If anyone has a better way of doing things, I'm ready for it. The standard tabular forms appear not to be the right thing, because there will be TWO shapes on the page, that's why I went with a collection.

    Hello

    I just have a quick look and see what you're trying to do.

    One thing, you might want to consider, is that you use to identify each item (those who become G_F01, G_F02 etc.), index numbers can be any number you like up to a maximum of 50. So, your region on the left could use numbers from 1 to 25 and those rights could use 26 to 50 - little matter if there are gaps in the numbers.

    I'm actually about to close for the day because he went from 19:00 here now, so can't not consider this news right now - but if the above does not do, just update the thread and I'll have another look tomorrow.

    Andy

  • Lost the power meter of my office - and it is therefore more 'selectable' inside the 'Settings' box of Notifications. Its information line shows currently in gray (unselectable) text instead of the text in black (of your choice).

    I lost the power meter of my office - this little icon that shows when your laptop is plugged in the current House, and where your battery level is when you're not connected to the power of the House

    The problem I found is that it does not appear in mode 'selection' in the 'Settings' box of Notifications.
    Its information line currently shows the text in gray (unselectable) color rather than black (selectable).

    For unknown reasons, the tutorial of vistax64 does not help, so I don't see why not, there is another way...

    Do a system restore. Choose the date where all the icons in the taskbar were present and functional as your restore point.

    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • The check box for "see windows contents while dragging", shoots himself

    The check box for "see windows contents while dragging", shoots himself.    Irritating!   Any ideas?

    Hi Mr_Sleeze,

    See if you can set a registry key verification:
    How to use Group Policy to configure auditing of Windows registry keys
    (The above article was written for Windows XP Home edition, but should work as well under Vista).

    DragFullWindows is the value you want to monitor.
    http://TechNet.Microsoft.com/en-us/library/cc787526.aspx Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • disable the dialog box

    How can I disable the dialog box displayed in the photo

    crush onSavePrompt returns true

Maybe you are looking for