How to enable/disable the listItem in ADF listView in JDEV 11.1.1.7.0

Hi,
  the requirement is to enable and disable the listItems in a ADF ListView based on a certain flag condition. The listItem has an image and a output text. The listView is set to allow mutiple selections. The var of the listView which is set to row has the conditional flag which evaluates to true or false in in EL #{row.isSelected}.  For the rows that this expression is true I want to disallow the user to select the listItem which has the <af:image> and the <af;outputText>. Also looking for a way to not allow the highlighting of the listItem which shows up on selection.
Appreciate any pointers for this.
Thank you.

Frank,
   Is there a way that we can modify the selection property of the listview to disallow the selection of the listItems which have the boolean flag evaluated to true?. Also wanted to know if skinning of the the component will disallow the highlighting of the listItem to give the visual cue?
Thank you.

Similar Messages

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • How to enable /disable the row in ALV?

    Hi Experts,
    I have gone through some threads on this but I did not find useful to my requirement.
    My requirement is:
    Consider two columns : one is set delete column (a button) and another editable field.
    When the user presses on set delete button. The editable field should be disabled and it should be enabled whenever the user presses the button again.
    Kindly let me know the solution.
    Thanks.

    Hi,
    As i am also new to web dynpro abap. I found it a gud thing to learn about ALV grid.
    So, I tried doing it like that and found that its not at all difficult.
    Here is the procedure that i followed.
    1. Create a context node with two attribute from any table structure and one attribute of type wdy_boolean for controlling the
        enable property of input field.
    2. i used the supply function to fill the node. Here is the code for the same.
    data lt_dealer type wd_this->Elements_zdealer.             "My node name is zdealer
    DATA ls_dealer LIKE LINE OF lt_dealer.
    select * from zdealer into corresponding fields of table lt_dealer.
    loop at lt_dealer into ls_dealer.
      ls_dealer-enable = abap_true.                             "to enable all the fields initially
      modify lt_dealer from ls_dealer.
      endloop.
    node->bind_table( lt_dealer ).
    3. create view container UIelment in the view and embed table view of the ALV used comp.
    4.  add interface controller of SALV_WD_TABLE to the used controller in the view and also add comp controller of our
    local comp to the used controller list of interface contrl of Used comp. And then map the data node to the node we have filled in
    the supply function.
    5. go to the wddoinit method to configure the ALV grid. means adding button and input field and binding the enable property of
    input field. Here is the code for the same.
    data lo_cmp_usage type ref to if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
      DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    lo_value->IF_SALV_WD_TABLE_SETTINGS~SET_CELL_ACTION_EVENT_ENABLED( abap_true ).
    lo_value->IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( ABAP_FALSE ).
    data btn type ref to cl_salv_wd_uie_button.
    data inp type ref to cl_salv_wd_uie_input_field.
    data col1 type ref to cl_salv_wd_column.
    data col type ref to cl_salv_wd_column.
    data col2 type ref to cl_salv_wd_column.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'NAME'                         "col name is NAME (col with button)
      receiving
      value = col.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'LOCATION'                "col name is LOCATION (col with input field)
      receiving
      value = col1.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'ENABLE'                   "this col is used to control the enable property of input field and we will make it invisible.
      receiving
      value = col2.
    create object btn.
    CREATE OBJECT INP
    EXPORTING
      VALUE_FIELDNAME = 'LOCATION'.
    inp->set_enabled_fieldname( 'ENABLE' ).
    COL1->SET_CELL_EDITOR( INP ).
    btn->SET_TEXT_FIELDNAME( 'NAME' ).
    col->set_cell_editor( btn ).
    col2->set_visible( '01' ).                     " making the enable col invisible
    Now you need to create one eventhanlder for the action of cell action.
    for this create an eventhandler and then even col there select ON_CELL_ACTION for the inerface cntrl of ALV.
    now write the code in this eventhandler for enabling or disabling the input field after checking the current value and
    row number from which the button was clicked. code for the same.
    DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    data inp type ref to cl_salv_wd_uie_input_field.
    data col1 type ref to cl_salv_wd_column.
    data str type string.
    str = R_PARAM->COLUMN.
    data indx type i.
      indx = r_param->index.               " this will get the row number
      DATA lo_nd_zdealer TYPE REF TO if_wd_context_node.
      DATA lo_el_zdealer TYPE REF TO if_wd_context_element.
      DATA ls_zdealer TYPE wd_this->element_zdealer.
      DATA lv_value LIKE ls_zdealer-enable.
    * navigate from <CONTEXT> to <ZDEALER> via lead selection
      lo_nd_zdealer = wd_context->get_child_node( name = wd_this->wdctx_zdealer ).    
    lo_el_zdealer = lo_nd_zdealer->get_element( index = indx ).     " get the corresponding element.
    lo_el_zdealer->get_attribute(
        EXPORTING
          name =  `ENABLE`
      importing
          value = lv_value ).
    IF str EQ 'NAME'.
      if lv_value eq abap_true.
    lo_el_zdealer->set_attribute(
        EXPORTING
          name =  `ENABLE`
          value = abap_false ).
    else.
      lo_el_zdealer->set_attribute(
        EXPORTING
          name =  `ENABLE`
          value = abap_true ).
      endif.
    ENDIF.
    this will solve it.
    Thanks and Regards,
    Sarbjeet singh

  • How can I disable the assistive touch programmatically ? This is like a bug. Though the Guided access is enabled a user can take screenshot of my application content. How can I solve this ? any idea ....

    How can I disable the assistive touch programmatically ? This is like a bug. Though the Guided access is enabled a user can take screenshot of my application content. How can I solve this ? any idea ....

    Question: Do you think the response from the support staff is correct? I mean, surely, I can't be the only CF user on a shared box whose other users need to modify the date and time within their applications. Even if they do it at the application level for their domain, surely it wouldn't affect mine, would it? That was what was implied by the support people, but I have a feeling they are way off, or covering for some goof-up on their end. I struggled like hell yesterday trying to get this to work and I did not get very far at all.
    I found an interesting tutorial here which does a comparison of time zones and, theoretically, this might do the trick. But if what the guy told me was nonsense then I won't bother with it. For the record, our calendar has been working fine for about a week now.

  • How do I disable the hardware acceleration in Flash player on a Windows XP machine remotely?

    How do I disable the hardware acceleration in Flash player on a Windows XP machine remotely?
    I have a few hundred computers running Adobe Flash Player.
    The operation system is Windows XP.
    They are Compaq 6005 desktop PC’s, with an inbuilt ATI radeon HD 4200 video card.
    We have a persistent issue where viewing a flash video (e.g. something on youtube) causes the video card driver to crash.  You are left with no video signal to the monitor.  Audio continues and the computer still responds to commands. This only happens when watching flash video.
    We have tried:
    Updating flash plugin (numerous versions)
    Updating the video card drivers (we have tried the last three video card driver versions, including the HP drivers and ATI drivers)
    Updating the browsers (this problem happens with IE8/9 and Firefox10/11/12)
    There seems to be two ways to work round this issue.  One is to disable the video acceleration in the ‘troubleshoot’ section in the advanced part of the display settings area in windows.  The other way is to start a flash video, right click, go to ‘settings’ and untick the box marked ‘Enable Hardware Acceleration’.
    Doing either of these things allows the user to view flash videos with no apparent issues.
    Is there a way to disable the hardware acceleration in Flash without visiting the PC?  Perhaps an undocumented option in the mms.cfg file? I understand that you can use an option to skip the video card check, and so force hardware acceleration on, can you do the opposite?
    Thanks in advance
    Daniel.

    Hi.
    I have had over 200 views, and no suggestions as to how this could be fixed.
    I have also posted in the general flash forum, that thread has fewer views.
    If I should put this question in a different forum please let me know which one.
    If what I am asking is not possible is there a mechanism for escalating this issue or requesting a feature for the next version of flash?
    Thanks.

  • How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again, time after time? (Windows 7 64bit US).

    How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again , time after time? (Windows 7 64bit US).
    I guess this may be a feature request. Adobe may think this is a good message for every new eBook.
    I sure would like to decide about that myself.
    Thanks in advance if this will be changed.

    singmk wrote:
    Decided to setup the mail for exchange on my N8 so I could see my work emails. Worked like a charm but after a couple of hours decided I didn't like being that contactable so deleted the mailbox.
    Now to the problem, during setup I was forced to enable the phone lock and had to pick a 7 digit alphanumeric code. Fair enough I thought and went ahead. When I removed the mailbox however the lock remained in place with the default auto time of 30 minutes. When I checked in Phone management there is no option to disable this lock so I thought I could at least change the default time to something bigger but when you try, it remains at 30 mins. You also can't disable the auto time as it pops up an error message saying can't unlock phone.
    Does anyone know if I'm missing something obvious here or is this something which can't be disabled once it's switched on? I've done a soft reset back to factory settings with no luck and the only other thing I can think of is re installing the firmware which seems a bit extreme.
    Would like to hope there is some way to have control over this. Can someone help?
    Which firmware your N8 having now? You can check firmware by choosing Call, then type *#0000#.
    My N8 works fine on security setting and able to define Phone auto lock period, by choosing Menu>Settings>Phone>Phone management>Security settings>Phone and SIM card>Phone auto lock period>User defined>Lock after(minutes)
    You will prompt to enter Lock code each time u define auto lock priod or enable/disable auto lock.
    Hope this can help you.
    If you find this post helpful, please show your appreciation by clicking the Kudos star at the left. If it provides you the solution, please click on the GREEN Accept as Solution button at below

  • Does anyone know how to enable/disable a dropdown menu in Forms at runtime?

    Is there a way how to disable/enable dropdown menu for menus that have multiple sub levels in Oracle Forms? I am trying to use the set_menu_item_property function but this takes 'menu.item' format for the first argument. I am trying to enable/disable a menu item in the form of 'menu.item.subitem' and was not able to do it using this function. If anyone knows a different function or method, please reply. I have shown an example below.
    Setup -> Software -> Front Page
    From the above example, I can enable/disable Software using set_menu_item_property function. But, how do I enable/disable the Front Page menu in Oracle forms at runtime?
    Thanks
    Edited by: user480347 on Aug 24, 2010 3:37 PM

    Yes you are on the right track. You need to pass then complete menu name to set_menu_item_property
    Immediate_parent menu.item_name e.g
    For example you have menu like this
    Id like
    A1    A10 > A1010
    Home > Input > Form 1
    A1    A10 > A1020
    Home > Input > Form 2 To disable Form 2 you must pass menu name as
    A10.A1020Hope it helps

  • Enabling/disabling the 'display PDF in browser' via a script after Reader 9 is installed

    So we have Reader 9 already installed on the machine, but we need a simple way that a user can click on a shortcut in the start menu to reconfigure how the PDF is opened - either from within the browser or outside of the brower.
    In Reader 7, I was able to use this:
    msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} Remove=ReaderBrowserIntegration /norestart /qb-!
    msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} ADDLOCAL=ReaderBrowserIntegration /norestart /qb-!
    which works well after the fact that Reader 7 is installed on the machine.
    For Reader 9, things have changed, and have tried this:
    msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=YES
    msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=NO
    The above don't work, nor if I run a repair instead of an install.  I also tried to modify the HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals\bBrowserIntegration then following in up with the appropriate msiexec command and that didn't work
    No, asking users to go to the options and enable/disable the setting isn't ideal unfortunately as it requires too many clicks
    Anybody have any suggestions on this?

    Try this forum:
    http://forums.adobe.com/community/acrobat/acrobat_enterprise_install

  • How to Enable/Disable suppressUpload and suppressDownload

    my xml doesnt have this attribute
    how to enable /disable supressUpload and suppressDownload.
    <?xml version="1.0" encoding="utf-8" ?>
    - <MeRepApplication schemaVersion="1.1" id="ZAM_09" version="09">
      <Property name="CLIENT.BUILDNUMBER" />
      <Property name="C_APPLRESOLVE" />
      <Property name="DATA_VISIBLE_SHARED">X</Property>
      <Property name="E_APPLRESOLVE" />
      <Property name="FACADE_C_CLIENT">X</Property>
      <Property name="FACADE_E_CLIENT">X</Property>
      <Property name="HOMEPAGE.INVISIBLE" />
      <Property name="INITVALUE" />
      <Property name="RUNTIME">JSP</Property>
      <Property name="TYPE">APPLICATION</Property>
    - <SyncBO id="ZAM_09" version="2" type="twoWay" allowCreate="false" allowModify="true" allowDelete="false" reqDirectSync="true" downloadOrder="1">
    - <TopStructure name="TOP">
    - <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
    - <Field name="BUKRS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="ANLN1" type="C" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="ANLN2" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <ChildStructure name="010">
    - <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
    - <Field name="BUKRS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="ANLN1" type="C" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="ANLN2" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="KOSTL" type="C" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="WERKS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="STORT" type="C" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="TXT50" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
    - <Field name="TXA50" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      </Field>
      </ChildStructure>
      </TopStructure>
      </SyncBO>
      </MeRepApplication>

    Just adding on to Nameeta's post, there is a supress download checkbox in the advanced setting s link(Settings -> Advanced Settings) on the client, this will supress downloads for all syncbos and not just for any one syncbo. Also there are no tools in the middleware to add these settings, the only way to do this is to modify the xml manually.
    Best Regards,
    Karthik
    Message was edited by:
            Karthik V Setty

  • How can I disable the new sidebar feature of 8.1.2 in Safari?

    How can I disable the new sidebar feature of 8.1.2 in Safari?

    You can dismiss it by tapping the solid blue bookmark. You can avoid it all together by making Favorites of your bookmarks then enabling the Show Favories Bar.

  • How can I disable the Junk mail folder for an email account?

    How can I disable the Junk mail folder for an email account?

    Hi scottyfrank68,
    Junk mail filtering can be turned off by going to the Mail menu > Preferences > Junk Mail pane and unchecking the box Enable junk mail filtering. See this article -
    Mail (Mavericks): Junk Mail preferences
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to Enable/Disable MessageTextInput Read Only property in PFR?

    Dear All,
    When i click on a submit button i need to enable/disable the Read only property of MessageTextInput item.
    Can any one tell me how to do this?
    I am executing the code
    if (pageContext.getParameter("EnableBT") != null) {
    OAMessageTextInputBean beanEmployeeIdCL = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EmployeeIdCL");
    beanEmployeeIdCL.setReadOnly(false);
    When i used the above code in Process Form Request method it is showing developer mode exception in run time as we can call the above code only in Process Request form.
    Request to please help regarding this.
    Thanks & Regards,
    CAK

    CAK,
    You need to make use of Partial Page Rendering (PPR) & SPELL. Modifying the bean property in PFR is not supported in OAF.
    Refer - PPR section of Devguide for more.
    Regards
    Gyan

  • How do I disable the pop-up blocker for Android

    How do I disable the pop-up blocker for Android

    Hi kingkash :-)
    if you wish to disable Pop-ups, you can follow these instructions:
    Type about:config in the address bar
    Search dom.disable_open_during_load and set it to false
    To re-enable the Pop-up blocker, set dom.disable_open_during_load to true
    I hope you find this information useful.
    Cheers

  • How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?

    Someone else posted ths question a month ago, but still no answers.  Anyone?
    How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?
    Windows XP, SP3 operating system recently re-installed so I also reinstalled my printer software.  Now, for some reason, each time I turn my computer on, my HP Photosmart C4100 all-in-one photosmart premier software opens.  It is not in my startup.  This slows down my computer terribly, which is why I never used the program before my re-install.  How can I disable this feature?  I only print, I don't use it for photos.
    Any help here is appreciated.

    Run msconfig.exe from the start button (type in msconfig).  When it comes up go to the Startup tab and find and deselect the HP product you do not want to start.  Save and reboot computer.  Now try.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • How can I disable the Email icon in the tool bar from Windows regisrty?

    Does anyone know what key and value in the registry enables\disables the email icon? Is it even a registry key? I know that it can be done manually via the UI. Can it be done using Adobe Customization Wizard 8? I have Adobe Acrobat Standard 8 and Reader 4 installed on a Citrix server and would like the default value for the email icon to be set to disabled or even hidden when users open a PDF file.

    The values in this registry key change what tool bar options are enabled:
    \Software\Adobe\Acrobat Reader\8.0\AVGeneral\cToolbars\cFile\cInternalButtons

Maybe you are looking for