Collapse all groups in a CFGrid by default

Is there a setting that would collapse all groups in a CFGrid by default? I have a lot of data in each group and it would make viewing the data much easier. Thanks!

textAreaObj.requestFocus() doesn't do it?
If that doesn't do it, then try textAreaObj.setSelectionStart(0).
You may have to force a repaint(), possibly, as well.

Similar Messages

  • Javascript to Expand/Collapse all grouped list items(2010 method no longer working)

    I have the below little piece of javascript that used to work in 2010(with plus.gif/minus.gif)
    <html>
    <head>
    <script language="Javascript" type="text/Javascript">
    function collapseGroups() { 
    $("img[src*='spcommon.png']:visible").parent().click(); 
    function expandGroups() { 
    $("img[src*='spcommon.png']:visible").parent().click(); 
    </script>
    </head>
    <body>
    <input type="button" id="btnExpand" onclick="expandGroups()" value="Expand All">
    <input type="button" id="btnExpand" onclick="collapseGroups()" value="Collapse All">
    </body>
    </html>
    This however does not work and results in a lot of "clicks" occuring on the site, wherever the spcommon.png is present(which is a lot)
    Has anyone hit this issue before?
    Regards
    Pieter
    PS. Works on 2010 with plus/minus.gif.
    Regards, Pieter
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Hi,
    In SharePoint 2013, we can add the following code into a Content Editor Web Part to achieve it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script language="Javascript" type="text/Javascript">
    function collapseGroups() {
    $("img[id^='img_']").click();
    function expandGroups() {
    $("img[id^='img_']").click();
    </script>
    <input id="btnExpand1" onclick="expandGroups()" type="button" value="Expand All" />
    <input id="btnExpand2" onclick="collapseGroups()" type="button" value="Collapse All" />
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to collapse all bookmarks by default when rendering mode is set to PDF?

    I have a SSRS 2012 report that I open via URL in PDF rendering mode.  The report contains document map that renders as bookmark when opened as PDF.  Everything works as intended but when I open the bookmarks tab in Acrobat, all of the bookmarks
    are expanded by default.  I know I can "collapse top-level bookmarks" but none of the lower lever bookmarks collapse.  What I am wondering is, is there a way to collapse all bookmarks by default, as opposed to what seems like everything
    is expanded by default, when I open the report in PDF rendering mode?

    Hi Forum,
    Per my understanding that you have some problem about the document map rendering as the bookmark in PDF, you got all the bookmark expanded, right?
    This is by default, and I have tested on my local environment that you can use the simple
    Shortcuts to collapse all the bookmark of all the level at once when open the PDF: Shiift+"/"
    I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/
    If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service
    provided.
    You can also submit an thread to the Adobe forum and there will be more experts to help you with this problem:
    https://forums.adobe.com/welcome
    Thanks for your understanding.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Get all groups from an AD Server

    Hi everyone,
    I'm trying to get all groups from and AD server.
    Here's how I'm doing it:
    DirContext ctx = new InitialDirContext( (Hashtable<String,String>) env);
              Name n2 = new CompositeName().add(groupsContainer);
              NamingEnumeration<Binding> contentsEnum = ctx.listBindings(n2);
              int i = 1;
              while ( contentsEnum.hasMore() && (i++) < 1000 )
                   Binding binding = contentsEnum.next();
                   groups.add(binding.getName().substring(3));
              return groups; The problem is, I always get an error if I don't restrict the results number to below 1000.
    The error is the following *javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded];*
    After googling, I found it it's due to a field in the AD Server, that restrict the result number.
    So there is no way that I can obtain all groups without changing that field?
    Regards,
    Nuno.

    Hi Nuno,
    You have to increase the MaxPageSize value at ActiveDirectory level to retrieve results more than 1000. By default the MaxPageSize value is 1000. There is no option other than increasing the MaxPageSize value.
    Thanks & Regards,
    Murali.
    ============

  • Collapse all below and expand all below

    hi,
    Expand all below & collapse all below action are not working for &lt;af:treeTable/&gt; UI component which are provide by &lt;af:panelCollection/&gt; component by default (we dont have control over them). But Action 'expand all below' on selected row is just expanding itself (selected one.)
    Here is the code of implement of treeTable
    &lt;af:panelAccordion inlineStyle="width:100%;" discloseMany="true"
    discloseNone="true" id="regional_panel1"&gt;
    &lt;af:panelCollection
    inlineStyle="width:100%;height:100%"
    id="regional_collection_table_tags"&gt;
    &lt;af:treeTable rowSelection="single" contextMenuId="treeTableMenu"
    rowBandingInterval="1" inlineStyle="width:100%;"
    columnStretching="last"
    value="#{bindings.result.treeModel}" var="node"
    id="TagTree"
    binding="#{pageFlowScope.TagHelper.tagTree}"
    selectionListener="#{pageFlowScope.TagHelper.tableSelectionListener}"&gt;
    &lt;f:facet name="nodeStamp"&gt;
    &lt;af:column headerText="#{bundle.TAG_NAME}"&gt;
    &lt;af:outputText value="#{node.name}"/&gt;
    &lt;/af:column&gt;
    &lt;/f:facet&gt;
    &lt;af:column headerText="#{bundle.DESCRIPTION}"&gt;
    &lt;af:outputText value="#{node.description}"/&gt;
    &lt;/af:column&gt;
    &lt;/af:treeTable&gt;
    &lt;/af:panelCollection
    &gt;
    &lt;/af:panelAccordion&gt;
    Note: Collapse All & Expand All actions are working fine which are also provide by &lt;af:panelCollection/&gt; component.
    Please provide me any info to fix this.
    kind revert me for more info.
    Thank
    KSB

    Hi,
    your panel accordion does not have a showDetail item as a child containing the panelCollection, The IDE should have flagged this as an error. Your problem doesn't reproduce for me
    Frank
    Ps.: component ID should be kept short (less than 7 characters) because they add to the download size and thus contribute to performance degradation

  • I am looking to add a button to reset the TOC (collapse all books)

    Our end users are getting lost in the open books - yes, I realize it's a whole different problem, but I have been asked to add a button to "reset" the TOC books to collapse all the books.
    We are using RH 10 and IE 8
    I've looked all over for existing javascript that would do that, but I can't find it. Is that something that someone else has done already? I am not a scripting person.
    Thanks!
    Laura

    So, I have tried a few different things in the action tab
    the actual web address (it's an intranet site ...website_name/index.htm
    And just index.htm here (where it says News_Feed.htm)
    This is a parent/child project -- the newsfeed page is the only page in the parent (and it is the default page) -- the button in the top toolbar takes you to the newsfeed, but we wanted it to refresh the entire page.
    Thanks!

  • JTree Expand All & Collapse All...

    Hi All,
    i hv two buttons "Expand All" & "Collapse All". If i press "Expand All" i should expand all the nodes in the all the root nodes(JTree).
    If i press "Collapse All" i sh collapse all the entries in the JTree.
    Is there any way to acheive this.
    Thanks
    ss

    Hi!
    You can try these methods where treeRoot is the root node of the tree:
    * Collapses the function group tree.
    public void collapseAll() {
    for (int i = treeRoot.getChildCount(); i > 0; i--) {
    tree.collapseRow(i);
    * Collapses the function group tree.
    public void expandAll() {
    for (int i = treeRoot.getChildCount(); i > 0; i--) {
    tree.expandRow(i);
    /Malin

  • Is it possible to add an Expand all/Collapse all button in WebHelp Output?

    Hi there,
    We now have > 15 child projects in our merged online help, each containing hundreds of topics. Each child project is a chapter in our WebHelp online help output.
    If a user opens a couple of topics in each project, the TOC can become difficult to navigate. Is it possible to add a button that enables users to collapse all of the open chapters / expand all of the closed chapters? We are using RoboHelp 10.
    Thanks a lot,
    Niamh

    Hi there
    Expanding all could be problematic. But collapsing all should be a snap. That is, as long as you don't mind one teensy side effect. That side effect would be that the default topic would load up in the Topic pane and replace whatever topic was open at the time your user clicked the Collapse All.
    The way to Collapse All is to simply create a hyperlink that re-opens the WebHelp start page. Things reload fresh (with the TOC all nice and collapsed).
    If you would like to suggest to the Adobe development team that we actually get proper collapse or expand all buttons, please feel free to suggest it using the link below:
    http://www.adobe.com/go/wish
    Cheers... Rick

  • Expand/Collapse All functionality in TREE UI Element

    Hi All,
    I'm using Tree UI Element in which Collapse All button is coming defaultly in that Tree Application . But i need to know how the function is taking place behind . Because i need to refer to do it for Expand All scenario for the same tree . Is that collapse is refering to any method in class ? . Can anyone brief out the coding of that . Or if anyone knows the coding of Expand all pls refer to me,

    Hello Ramesh Vinay,
    *Create a node which has attributes (EXPANDED, IS_LEAF,ROW_KEY and PARENT_ROW_KEY) to build a tree.
    Following code will be executed when COLLAPSE ALL button is clicked.
    DATA: lo_nd_tree            TYPE REF TO if_wd_context_node,
               lt_elements           TYPE             wdr_context_element_set.
    FIELD-SYMBOLS:
            <lo_element>          TYPE REF TO if_wd_context_element.
    lo_nd_tree = wd_context->get_child_node( name = wd_this->wdctx_tree).
      lt_elements = lo_nd_tree ->get_elements( ).
      LOOP AT lt_elements ASSIGNING <lo_element>.
        <lo_element>->set_attribute(
          EXPORTING value = abap_false
                    name  = u2018EXAPNDEDu2019 ).
      ENDLOOP.
    Following code will be executed when EXPAND ALL button is clicked.
    DATA: lo_nd_tree            TYPE REF TO if_wd_context_node,
               lt_elements           TYPE             wdr_context_element_set.
    FIELD-SYMBOLS:
            <lo_element>          TYPE REF TO if_wd_context_element.
    lo_nd_tree = wd_context->get_child_node( name = wd_this->wdctx_tree).
      lt_elements = lo_nd_tree ->get_elements( ).
      LOOP AT lt_elements ASSIGNING <lo_element>.
        <lo_element>->set_attribute(
          EXPORTING value = abap_true
                    name  = u2018EXAPNDEDu2019 ).
      ENDLOOP.
    Reply me if you have any questions.
    Thanks,
    Bharath.K

  • Collapse all Folders in Finder

    Is there a way to collapse /all/ folders in Finder instead of hunting them down and closing all of them one by one?
    Thanks.

    Hotwheels22 wrote:
    is there a way to collapse or uncollapse all folders in finder?
    I really still do not understand this question. Presumably you are not referring to List View (which is what I associate with collapse/expand). Icon View will open/close folders; List View will expand/collapse directory trees; Column View will scroll through path hierarchies; which one are you trying to do?
    Do you mean you want to open multiple folders while in Icon View? If so, select the folders you want and hit ⌘+↓. All of them will open as long as they are all from the same Finder window. Afterwards, for you to close all Finder windows except one, you'd need to use one of the two AppleScripts I linked earlier.
    Maybe you are asking for a method to double-click one folder and have it and all its subfolders open up in their own Finder windows (essentially, you want to open all nested folders with one click)? I think you'd need to build an AppleScript for that. The OS will not have such a function built in because the depth of some directory trees could easily freeze a computer.
    i have a ton of documents and it is really inconvenient to have to open /all/ the folder to find things.
    If you assigned non-generic names to your folders and documents, you should be able to use Spotlight and Smart Folders to get to your files. For example, since I name my project files with the format DateProject_DocumentVersion, it's easy for me to create a Smart Folder that shows me all finalized/approved parts lists from a project I did two years ago, regardless of where they're located in my archives. It's even easier if you also use Spotlight Comments and/or color labels.
    then when i get them open it is a total pita going and collapsing all of them. i guess i can close out of the finder window altogether but i'd like to stay in the same window and keep working.
    Did you try either one of the two AppleScripts I linked earlier? They allow you to close all Finder windows except the active one. Finder doesn't have a built-in, default option to close all windows except the active one.
    btw, i'd also like to do the equivalent for windows on the desktop so i can get to the desktop quickly. right now I have to move them over or minimize them one by one...
    i guess getting familiar with expose or witch may do this?
    Exposé can temporarily displace (not hide) all windows to show just the Desktop. ⌥⌘H will hide all other applications except the active one (or if you wish to specify which particular application stays unhidden, ⌥⌘+click the app's icon on the Dock). To actually hide (not close) all visible windows, you'll need to run an AppleScript ➚.
    also can i ask you if there is a way for me to post a video of screenshots to this site? i have an issue that would be helped by doing this...
    You'd need to upload to a video host, like YouTube, and then paste the link over here.

  • Is it possible to remove collapse all and expand all links in HGrid.

    Hi All,
    Is there any way to remove collapse all and expand all links which HGrid shows by default, the reason is when the user clicks on collapse all it will collapse to root node but my requirement is it should collapse untill 2 node level.
    Thanks
    Babu

    From the javadoc of OAHGridBean
    ======================
    void setExpandAllEnabled(boolean expandAllEnabled)
    Indicate whether the "Expand All" (and "Collapse All") links should be rendered for the HGridBean.
    Cheers,
    Ganesh

  • Collapsable Panel Group: Button Toggle

    Hello,
    I have a Collapsable Panel Group with the buttons 'open all' and 'close all'
    Is there a way to make this into one button which toggles?  So, if they're open, then close, and vice versa.
       <input type="button" value="Open All" onclick="cpg.openAllPanels();" />
       <input type="button" value="Close All" onclick="cpg.closeAllPanels();" />
    Thanks for any info.
    Andy

    Thanks for that, works just fine.
    I put it into the SpryCollapsiblePanel.js file with this explanation.
    // extra code to make the [open all], [close all] buttons into one toggle button. Thanks to http://forums.adobe.com/people/.V1
    // works with this button in the main code ..  <input type="button" value="Toggle" onclick="toggle();" />

  • How to disable "Expand All" and "Collapse All" when no node in a tree

    I have a <af:tree> inside <af:panelCollection>.
    All items under viewMenu like "Expand", "Expand All Below", "Collapse All Below", "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are implemented by default.
    When there is no node in a tree, "Expand", "Expand All Below", and "Collapse All Below" are grey out.
    However, "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are still enabled to be clicked.
    Is there any way we can diable them when no node?

    When I highlight last node in the tree and all nodes are collapsed, I see "Expand All Below" enabled but "Collapse All Below" disabled. Which is expected. Expand All Below will expand all the child nodes under a node.
    QA filed a bug said that "Expand All Below" should be disabled since no node below it. However, I don't find any place to control them. Can you confirm this? Or you know some way to do this?It it not a bug then. You don't have to control it and framework takes care of enabling and disabling it accordingly.
    If you need to expand all the nodes programatically, check this out.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/78-man-expanding-trees-treetables-354775.pdf
    -Arun

  • How to collapse all dividers in the list

    I want to show a list with dividers, and want to collapse all the groups(dividers) after loading.
    I have found one attribute collapsedDividers in the listView, but don't know which value should I set. I have tried to input the group name, but failed. Can anyone give me some advise? Thx!

    This thread was answered during direct phone call, but for the benefit of others, collapsedDividers is the right attribute to set. It needs to be set to the "value" of the divider attribute. You would need to create an array in Java and then set the collapsedDividers to that, if you need to collapse multiple dividers.
    Unfortunately there is no way to automatically collapse all dividers automatically.

  • Get All group from LCES using Livecycle java API

    Hello ,
    Can anyone told me how i can retrieve all the groups that exist in my livecyle using JAVA API.
    Some method who return all groups ??
    Thanks!

    First Thank you for your answer
    I tried this part
    //Set connection properties required to invoke LiveCycle ES
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://test:1099");
                                                                      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                ServiceClientFactory scf = ServiceClientFactory.createInstance(connectionProps);
                DirectoryManager directoryManager = new DirectoryManagerServiceClient(scf);
                PrincipalSearchFilter psf = new PrincipalSearchFilter();
        psf.setPrincipalType(Principal.PRINCIPALTYPE_GROUP);  //Recommended - refines the search to a User or Group
        psf.setRetrieveOnlyActive(); // Recommended - returns only ative users/groups and not obsolete/deleted users/groups
        List<Principal> resultList = directoryManager.findPrincipals(psf);
        System.out.println("Done");
    and when I check the result of my list I find incomprehensible informations.
    So when I debug the code ,  my list  contains little information.
    NB : my LDAP contains hundreds of groups.
    Any suggestion
    Any code Source.

Maybe you are looking for

  • No way to report feedback in ver. 6

    ITunes 6 Feedback I have created and placed in iTunes forest sounds which I have burned many copies for friends in version 4 & 5 of iTunes. The time is 70 minutes and in these versions showed as being 715MB. I installed version 6 of iTunes. I just tr

  • Unable to update creative cloud error messege 2013-08-08

    I received the Adobe Email, asking me to upgrade the app manager. I followed the instructions 3 times and still getting this error

  • Problems with rebooting my imac

    Ok heres the problem.....My 2007 imac has always worked fine untill a couple of months ago. Basically it had become so clogged up over the years that I had to erase the hard drive and start over. I have stupidly lost my install disks (apart from disk

  • Digital Signature - Auto-Populate Multiple Signature Fields

    Hello, I am in the process of testing digital signatures with PDFs.  I have a Topaz Signature Pad working in conjunction with Acrobat 9 and Reader 9 so that I can insert digital signatures with no problems. We are wanting to take this a step further

  • Current Document Metadata insertion into Current Document

    Help!!  I need to place 'current document' metadata (not a placed photo, for instance) into the current document.  I have been able to place the "File Name" into the current file and that works great.  But I want to now place current file metadata, l