Disable a listItem  in listView Component.

Hi
Jdeveloper- 11.1.1.7.0
In one of my usecase i am using a listview where each listitem contains a "My Component" which has a image link. For few of the values of listitem i want to disable the image link in "My Component". How to disable this link in a component.
Can anyone help me out.
Thanks
Suresh

Hi,
like for tables and tree, you cannot suppress the selection state of the component (unless completely disabled) so that your options are
1) to hide the row that users are not supposed to select
2) set the select option to "none" so that no row ise selectable. Instead you would use a command component in the list item to perform the action. In this case you can use CSS to indicate "non-functional" items
Frank

Similar Messages

  • 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.

  • How to disable sorting in ListView component?

    Hi ,
    I am using a listview component and is there any option to disable the sorting option.
    Regards,
    Nagaraj

    Use fixed header size, that will stop resizing the column width at run time.
    Regards,
    Anjani Kumar C.A.

  • How to disable user iteraction in listview in ADF mobile

    Hi,
    I want to disable user iteraction in listview. When user is click on listview, it will not be selected or highlighted.
    Thanks.

    Hi,
    Always mention your JDev version. Why not using an iterator instead of a list view? AFAIK, you cannot disable list items.
    -Arun

  • Disable collapse for af:query component

    Hi All,
    Can anybody please tell me how to disable the collapse feature of the af:query component? I basically want it to be expanded every time.
    Thanks

    Hi,
    As your requirement it no need to disabled,and cannot disabled using provided attributes but you can set disclosed attribute to false.
    See for more
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_query.html

  • Is there any way to disable caching for a particular component?

    I have a component which should always produce the output by executing a code and not from the dispatcher cache.
    Is there any way to clear the dispatcher cache for the component or is it possible to disable the component caching.

    Praveen-
    The dispatcher caches the entire HTTP response body, so doing what you are describing actually requires two steps:
    1) Loading the non-cacheable component through Ajax (or some other edge side assembly technology like ESI)
    2) Including the Dispatcher: no-cache header in the response when that component is requested.
    #1 is pretty easy to do with jQuery
    #2 is covered here: http://dev.day.com/content/kb/home/Dispatcher/faq-s/DispatcherNoCache.html
    You will probably want to use the WCMMode to only do the dynamic loading on the publish server.
    HTH,
    Justin

  • Value Change Listener and field disable property in Ajax ADF component

    Hi. I have used the Ajax ADF component in my application. It is working fine but I am unable to implement the ValuechangeListener property and disable property for this component. Can someone please help and tell me how i can implement these properties for the component? Thanks in advance.

    Hi,
    I have no clue of what you are talking about.
    Frank

  • Disable 'truncateToFit' on a Label component?

    Hi,
    How can i disable 'truncateToFit' on a Spark Label component? Label component doesn't have 'truncateToFit' property.
    Mariush

    Maruish,
    I'm attaching the ASDoc descriptoin of TextBase.isTruncated:
    A read-only property reporting whether the text has been truncated.
    Truncating text means replacing excess text        with a truncation indicator such as "...".       The truncation indicator is locale-dependent;       it is specified by the "truncationIndicator" resource       in the "core" resource bundle.
    If maxDisplayedLines is 0, no truncation occurs.       Instead, the text will simply be clipped        if it doesn't fit within the component's bounds.
    If maxDisplayedLines is is a positive integer,        the text will be truncated if necessary to reduce        the number of lines to this integer.
    If maxDisplayedLines is -1, the text will be truncated        to display as many lines as will completely fit within the height       of the component.
    Truncation is only performed if the lineBreak style is "toFit"; the value of this property       is ignored if lineBreak is "explicit".
    The default value is false.
    Jason

  • Disabling rollover color in TileList component

    I have a TileList where I want to completely disable the
    rollover color. I have altenating background colors between
    elements, so what would I need to do in order to accomplish this? I
    can't seem to find the answer anywhere.
    Thanks,
    Jake

    Set the useRollOver style to false.

  • How to disabled day of af:inputDate component ? just show month & year

    hello brother...i'm newbie
    i've little problem setting af:inputDate binding...
    in this case, i wanna make binding af:inputDate where i'm just show month and year only ?
    anyone help me to solve this problem..
    thx
    agungdmt

    chk this
    Picking month with af:inputDate
    <af:inputText id="antecipadaPostergada" value="#{attrs.value}" contentStyle="width:65px">
    <f:convertDateTime pattern="MM/yyyy"/>
    <af:validateDateTimeRange minimum="2011-01-01" maximum="2011-12-01"/>
    </af:inputText>

  • Disable single Column of a ListView

    Hello,
    I want to disable/hide the Column Time worked of the ListView inside the
    Resolution Tab. I know I can disable/hide the whole ListView but if possible I would like to keep the Columns
    Analyst and Last updated. Is this possible with the Authoring Tool/XML Editing or do I need to start coding with C#?

    Hi,You have to disable SortableGridViewColumn in the SortableGridView on the tab page using a custom control. This custom control has to execute the code that will search for this SortableGridView and disable the required SortableGridViewColumn of that.
    It's easy to say and not so easy to implement but doable.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Disable Software Updates client component

    I want to temporarily disable the Software Updates Agent component on a subset of 2012 R2 clients. 
    Based on the example of how to disble SWDist here: http://myitforum.com/cs2/blogs/rzander/archive/2008/08/11/sms-sccm-commandline.aspx and digging into WMI a little deeper I thought this might do the trick...
    WMIC /namespace:\\root\ccm\policy\machine\requestedconfig path CCM_SoftwareUpdatesClientConfig  CREATE ComponentName="SmsSoftwareUpdate",Enabled="false",LockSettings="TRUE",PolicySource="local",PolicyVersion="1.0"
    ,SiteSettingsKey="1" /NOINTERACTIVE
    I kept getting "ERROR: Description = Not Found". Although the namespace and class exist, I'm wondering if I'm missing a required property or something changed with 2012 or ... ?. 
    If anyone has experience doing this you're help would be greatly appreciated!
    http://www.blogmynog.com

    Good catch, that explains it. After removing the LockSettings
    property it worked. Thank you Peter and Jason for the quick responses!
    To Disable SW Updates Agent Component:
    WMIC /namespace:\\root\ccm\policy\machine\requestedconfig path CCM_SoftwareUpdatesClientConfig CREATE ComponentName="SmsSoftwareUpdate",Enabled="false",PolicySource="local",PolicyVersion="1.0" ,SiteSettingsKey="1" /NOINTERACTIVE
    To Enable SW Update Agent component (reverse change):
    WMIC /namespace:\\root\ccm\policy\machine\requestedconfig path CCM_SoftwareUpdatesClientConfig WHERE (ComponentName="SmsSoftwareUpdate" AND Enabled="false" AND PolicySource="local" AND PolicyVersion="1.0") delete /NOINTERACTIVE
    http://www.blogmynog.com

  • JDeveloper 12.c ListView issue when elements are repeated.

    Hi
    Using the ListView, and choosing the panel grid layout, if my view object has repeated rows, then the styles are not applied for those rows messing up the row (it doesn't display correctly, no height - width styles whatsoever). I have checked the source code generated and this is what I've found - This is for each element of my list. The ones that repeat (0 and 3) are the one with the issues. They should be treated as different records.
    <div id="r2:0:lv1:0:li1" class="xvl" data-afrrk="0">
    <div id="r2:0:lv1:0:li1" class="xvl" data-afrrk="0">
    <div id="r2:0:lv1:1:li1" class="xvl" data-afrrk="1">
    <div id="r2:0:lv1:2:li1" class="xvl" data-afrrk="2">
    <div id="r2:0:lv1:3:li1" class="xvl" data-afrrk="3">
    <div id="r2:0:lv1:3:li1" class="xvl" data-afrrk="3">
    If I explore "data-afrrk="0"" element, just one have style applied. And the same for data-afrrk="3".
    This is what I see:
    Well I couldn't insert an image. It is disabled.
    Regards

    Hi. I just used the drag and drop. It works fine when using panel group instead the panel grid layout.
    <af:listView value="#{bindings.UserPersonalInfo3.collectionModel}" var="item"
                     emptyText="#{bindings.UserPersonalInfo3.viewable ? 'No data to display.' : 'Access Denied.'}"
                     fetchSize="#{bindings.UserPersonalInfo3.rangeSize}" id="lv1" selection="single"
                     selectionListener="#{bindings.UserPersonalInfo3.treeModel.makeCurrent}">
          <af:listItem id="li1">
            <af:panelGridLayout id="pgl8">
              <af:gridRow marginTop="5px" height="auto" marginBottom="5px" id="gr1">
                <af:gridCell marginStart="5px" width="15%" id="gc1">
                  <af:panelGroupLayout id="pgl2" layout="horizontal">
                    <af:outputFormatted value="#{item.bindings.UserName.inputValue != null ? item.bindings.UserName.inputValue : 'NONE'}"
                                        id="of1"/>
                  </af:panelGroupLayout>
                </af:gridCell>
                <af:gridCell marginStart="5px" width="60%" id="gc2">
                  <af:panelGroupLayout id="pgl7" layout="horizontal">
                    <af:panelGroupLayout id="pgl3" layout="vertical" halign="left">
                      <af:panelGroupLayout id="pgl4">
                        <af:outputFormatted value="#{item.bindings.FirstName.inputValue}" id="of2"
                                            inlineStyle="font-size:medium;"/>
                        <af:spacer width="10" height="10" id="s1"/>
                        <af:outputFormatted value="#{item.bindings.LastName.inputValue}" id="of3"
                                            inlineStyle="font-size:medium;"/>
                      </af:panelGroupLayout>
                      <af:panelGroupLayout id="pgl5">
                        <af:outputFormatted value="#{item.bindings.JobName.inputValue}" id="of4"
                                            inlineStyle="font-size:small;"/>
                      </af:panelGroupLayout>
                    </af:panelGroupLayout>
                  </af:panelGroupLayout>
                </af:gridCell>
                <af:gridCell marginStart="5px" width="25%" marginEnd="5px" id="gc3">
                  <af:panelGroupLayout id="pgl6">
                    <af:outputFormatted value="#{item.bindings.OrganizationName.inputValue}" id="of5"/>
                  </af:panelGroupLayout>
                </af:gridCell>
              </af:gridRow>
            </af:panelGridLayout>
          </af:listItem>
        </af:listView>

  • How can I disable all the components in a JPanel?

    I want to disable all the components( button, text field ) in a JPanel. I know I can search the panel and disable each of its children component recursively. Is there a better way to do this?

    I want to disable all the components( button, text field ) in a JPanel.You haven't defined what you mean by "disable".
    If you mean you want the component to be repainted in its disabled state, then you would need to set the property of each individual component to disable, which would imply some kind of recursion.
    If you just want to prevent components from receiving key events and mouse events, then you can use a glass pane or maybe a panel with an overlay layout that contains a non-opaque panel that intercepts all events.

  • Not able to register DCOM 32 bit component on Windows 7 64 bit machine

    Hi,
    I need to register a 32 bit delphi component on windows 7 64 bit machine as part of migration of my aplication from windows XP to win 7. After i register the necesary dll's and then run the DCOM exe or try reistering it from running DCOMexe\regserver.. I
    am not able to find it under DCOMcnfg.
    I also ran the dcomcnfg from syswow64 folder but still not able to see the DCOM exe under Dcomcnfg.
    Please help me out how to register the dcom exe in win 7.
    Thanks iun advance

    Hi,
    Do you mean to enable DCOM on Windows 7?
    If yes, please take a look at the following article, take a try to enable DCOM:
    Enable or Disable DCOM
    And please note: Component Services is no longer in Administrative Tools. To open Component Services, click     
    Start. In the search box, type dcomcnfg, and then press ENTER.
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

Maybe you are looking for