Expand/Collapse functionality in Survey

Dear Experts,
We have build survey Form using Survey Builder. The survey Form has 4
sections , in each section 5 questions & its relevant answer
options are there.
We are using the standard CSS style sheet : CRM_SVY_OPP_WINLOSS.CSS. Out
put displays standard HTML page with out Expand & Collapse
functionality at section & Questional level.
Client required expand and collapse functionality to view the entire
survey form in one page which allows the user to navigate to required
question .
For that we are tring to change Static Survey XSLT, however system is
not allowed to edit XSLT file .
Please suggest ,how can we enable the expand & Collapse
functionality for our surveys in Survey Buider ?
Regards
Pramod

Hello Aks,
After seeing the ME2ON transaction, what i can suggest you is following:
--> Display a column in your Grid with the hotspot on it
--> You can give the icon as a value in the column
--> Then for the hotspot click you need to display the expanded data i.e. regenerate the grid.
My suggestion to you would be that if you dont need to edit anything in the grid i.e. dont want have any editable field on the grid, then you should opt for an ALV tree using class CL_GUI_ALV_TREE. The expand collapse functionality is already there and you will be saved from a lot of coding.
Hope this helps.
Regards,
Himanshu

Similar Messages

  • Expand Collapse Functionality on Left Vertical Navigation

    Hi,
    I am trying to implement an expand/collapse functionality for subcommunities and their links in the left vertical navigation menu. My communities appear as horizontal tabs (as in the support center navigation). Once i have a community selected, the left navigation is rendered with all subcommunities and their links. If i now want to collapse/expand a specific subcommunity, how do i do it?
    More specifically, how do i identify what subcommunity i clicked on the vertical nav, so that the next time i am rendering the display of the left nav, i can appropriately expand/collapse only that subcommunity.
    regards

    hi,
    go through the sample code , in this there are 2 radiobuttons, if one is pressed then first sunscreen will come and if second radiobutton is pressed then second subscreen will come
    write this where u r decleraing code for selection screen:
    PARAMETERS:      par_cust     radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
                     par_vend     radiobutton group g1.
    PARAMETERS:      par_cust     radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
                     par_vend     radiobutton group g1.
    *selection criteria for venodr if par_vend radiobutton is ticked
    SELECT-OPTIONS:  s_txcd1      FOR  bset-mwskz MODIF ID M1,
                     s_txcd2      FOR  bset-mwskz MODIF ID M1,
                     s_txcd3      FOR  bset-mwskz MODIF ID M1,
    *selection criteria for customer if par_CUST radiobutton is ticked
                     s_txcd12     FOR  bset-mwskz MODIF ID M2,
                     s_txcd13     FOR  bset-mwskz MODIF ID M2,
    *write this code at : AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF par_vend = 'X' AND SCREEN-GROUP1 = 'M2'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    SCREEN-INVISIBLE = 1.
    MODIFY SCREEN.
    ENDIF.
    IF par_cust = 'X' AND SCREEN-GROUP1 = 'M1'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    SCREEN-INVISIBLE = 1.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    regards
    rahul

  • Classical Report Expand-Collapse functionality

    Hi All!
    I am doing a program that displays a classical report as an output.  It has buttons on the top of the output (using Menu Painter) and it has "Expand" and "Collapse" buttons.  I do not know how to implement this expand and collapse functionality.  Please help.
    The output of the report looks like this:
    Plant: <data>
    <data>
    <data>
    Plant: <data>
    <data>
    <data>
    When I click on "Expand" button, the output will look like the one above.  When I click on "Collapse" button, the output will look like this:
    Plant: <data>
    Plant: <data>
    Please help me achieve this functionality.
    Thank you!

    Hi,
    Try this sample code....
    DATA : BEGIN OF itab OCCURS 0,
           state   TYPE char20,
           city    TYPE char18,
           flag,
           END   OF itab.
    DATA   disptab LIKE itab OCCURS 0.
    DATA   sel_lin TYPE char20.
    START-OF-SELECTION.
      itab-state = 'Tamil Nadu'.
      itab-city  = 'Chennai'.
      APPEND itab.
      itab-state = 'Tamil Nadu'.
      itab-city  = 'Coimbatore'.
      APPEND itab.
      itab-state = 'West Bengal'.
      itab-city  = 'Kolkata'.
      APPEND itab.
      itab-state = 'West Bengal'.
      itab-city  = 'Durgapur'.
      APPEND itab.
    END-OF-SELECTION.
      LOOP AT itab.
        AT NEW state.
          WRITE /3 itab-state COLOR 4 HOTSPOT.
        ENDAT.
      ENDLOOP.
    AT LINE-SELECTION.
      MOVE sy-lisel+2(20) TO sel_lin.
      LOOP AT itab.
        AT NEW state.
          WRITE /3 itab-state COLOR 4 HOTSPOT.
        ENDAT.
        IF itab-flag <> 'X'.
          IF itab-state = sel_lin.
            itab-flag = 'X'.
          ENDIF.
        ELSE.
          IF itab-state = sel_lin.
            itab-flag = ' '.
          ENDIF.
        ENDIF.
        IF itab-flag = 'X'.
          WRITE /5 itab-city  COLOR 2.
        ENDIF.
        MODIFY itab.
        CLEAR itab.
      ENDLOOP.
    Cheers,
    jose.

  • Expand/Collapse function in WAD 7.0

    Hi,
    I have made a report in WAD using a table and a chart. In the output which I am running on a portal I have a table Report Navigation with  in which I have some of the export options and an Expand / Collapse icons are present on the button group and also I have one drop down box calendar year .As soon as I click on the icon Collapse in  the above table Report Navigation my drop down should get collapsed and again when I click on the Expand the drop down should be visible
    Report naviagtion and  Drop down boxes are present in a seperate table where in when I click on the icons( Expand / Collapse ) it should get reflected on the dropdown box which is present on the 2nd table
    I have done the above in WAD 3.5 using Java script Code
    How can this be done in WAD 7.0
    Regards,
    Maya

    Hi,
    After setting the Analysis item properties, just click on the 7th icon on top menu bar, i think its Verify or Check on server. Somthing like that.
    Or try re-opening the template after sometime. Close the existing Web window, where you see your output, and execute the template once again. This should work.
    If nothing of the above works, theres one more thing. You may have to re-create the Template.
    This happens at times when there is no proper connection between the Portal and WAD. I have faced it myself. So, just try something like that.

  • Expand/collapse button functionality on module pool screen

    Hi ,
    I want to design a module pool screen with a expand/collapse button on it.
    The desired functionality associated with this button would be something similiar to that available in ME21N screen. When the expand button is clicked it should open up a section of screen that allows the user to enter some parameter. Based on this parameter some selections from DB can be perfomed and then displayed below it.
    Any pointers on how to achieve this? Any kind of help would be appreciated.
    Regards-
    Harmeet Singh.

    example for three pushbutton with expand collapse .
    First of all define your push button as output field with icon tick in the pushbutton characteristick,
    then define this pushbutton in top_include
    include <icon>.
    data : push_a1 like icons-l4,
             push_a2 like icons-l4,
             push_a3 like icons-l4.
    data : a1 ,
             a2,
             a3.
    in pai of the screen
    suppose i had assign function code a1 ,a2 , a3 for repective pushbutton
    module user_command_9002 input.
      okcd = ok_code.
      clear ok_code.
      case okcd.
        when 'A1'.
          if a1 is initial.
            a1 = 'X'.
          else.
            clear a1.
          endif.
        when 'A2'.
          if a2 is initial.
            a2 = 'X'.
          else.
            clear a2.
          endif.
        when 'A3'.
          if a3 is initial.
            a3 = 'X'.
          else.
            clear a3.
          endif.
      endcase.
    endmodule.                 " USER_COMMAND_9002  INPUT
    define three seprate screen -group for three pushbutton say a1 a2 a3
    during pbo you can directly assign name of icon .
    if a1 is initial.
        push_a1 = icon_collapse.
      else.
        push_a1 = icon_expand.
      endif.
      if a2 is initial.
        push_a2 = icon_collapse.
      else.
        push_a2 = icon_expand.
      endif.
      if a3 is initial.
        push_a3 = icon_collapse.
      else.
        push_a3 = icon_expand.
      endif.
    loop at screen.
        if screen-group1 = 'A1'.
          if a1 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A2'.
          if a2 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A3'.
          if a3 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        endif.
      endloop.
    regards,
    Alpesh
    Edited by: Alpesh on May 28, 2009 10:28 AM

  • Collapse All and Expand All functionality in Tree

    Hi All,
    I am using TreeByNestingTableColumn element to display the tree hierarchy .
    Does anyone knows how to implement Collapse All and Expand All functionality for this tree (if someone have sample code for these functionality then it will be great for me) ?
    Thanks in advance.
    Ravi.

    Hello Ravindra Sahu,
    Code for EXPAND ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_true.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Code for COLLAPSE ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_false.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Please don't forget giving REWARD points...:-)
    Edited by: Bharath Komarapalem on Jul 11, 2008 9:17 AM

  • Expand/Collapse a block in a selection screen

    Hey Folks,
    I have a requirement , where I have a selection screen, with 3 selection blocks. I have a requirement that I need to make 2 of these blocks expandible/collapsible on the toggle of a button.. How can this be achieved.
    In case of a normal screen, I would have had to create the blocks as subscreens (one type of screen for expanded state...another for collapsed state) and called it from the main screen. But how do I achieve the same using the selection screens?
    I was considering creating the blocks as subscreens in the selection screen and calling them in the PBO of the main selection screen. However, I am unsure if thats a wise thing to do since the screen is generated automatically in case of a selection screen and I do believe its not a good idea to manually alter it.
    Does anyone has any pointers on this?
    Thanks and Best Regards,
    Puja.

    Hi,
    I have modified the code to show the expand/collapse ICON accordingly..Please check..
    TABLES sscrfields.
    TYPE-POOLS icon.
    * Expand/collapse buttons.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 2(23)  b1 USER-COMMAND usr1.
    SELECTION-SCREEN END OF LINE.
    * Block 1
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    PARAMETERS: p_test1 TYPE char10  MODIF ID m1,
                p_test2 TYPE char10  MODIF ID m1.
    SELECT-OPTIONS  s_date  FOR sy-datum MODIF ID m1.
    SELECTION-SCREEN END OF BLOCK b1.
    * Block 2
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 2(23)  b2 USER-COMMAND usr2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b2.
    PARAMETERS: p_test3 TYPE char10  MODIF ID m2,
                p_test4 TYPE char10  MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b2.
    * Declarations
    DATA: v_flag, v_flag1.
    INITIALIZATION.
      b1 = 'Button1'.
      b2 = 'Button2'.
      v_flag = 'X'.
      v_flag1 = 'X'.
    AT SELECTION-SCREEN.
    * Check the user command.
      IF sy-ucomm = 'USR1'.
        IF v_flag IS INITIAL.
          v_flag = 'X'.
        ELSE.
          CLEAR v_flag.
        ENDIF.
      ELSEIF sy-ucomm = 'USR2'.
        IF v_flag1 IS INITIAL.
          v_flag1 = 'X'.
        ELSE.
          CLEAR v_flag1.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      IF v_flag1 = 'X'.
        CALL FUNCTION 'ICON_CREATE'
          EXPORTING
            name   = icon_expand
            text   = 'Button 2'
            info   = 'Button 2'
          IMPORTING
            RESULT = b2
          EXCEPTIONS
            OTHERS = 0.
      ELSEIF v_flag1 IS INITIAL.
        CALL FUNCTION 'ICON_CREATE'
          EXPORTING
            name   = icon_collapse
            text   = 'Button 2'
            info   = 'Button 2'
          IMPORTING
            RESULT = b2
          EXCEPTIONS
            OTHERS = 0.
      ENDIF.
      IF v_flag = 'X'.
        CALL FUNCTION 'ICON_CREATE'
          EXPORTING
            name   = icon_expand
            text   = 'Button 1'
            info   = 'Button 1'
          IMPORTING
            RESULT = b1
          EXCEPTIONS
            OTHERS = 0.
      ELSEIF v_flag IS INITIAL.
        CALL FUNCTION 'ICON_CREATE'
          EXPORTING
            name   = icon_collapse
            text   = 'Button 1'
            info   = 'Button 1'
          IMPORTING
            RESULT = b1
          EXCEPTIONS
            OTHERS = 0.
      ENDIF.
      LOOP AT SCREEN.
    * Expand collapse block1
        IF v_flag = 'X' AND screen-group1 = 'M1'.
          screen-active = 0.
        ELSEIF v_flag IS INITIAL AND screen-group1 = 'M1'.
          screen-active = 1.
        ENDIF.
    * Expand collapse block2
        IF v_flag1 = 'X' AND screen-group1 = 'M2'.
          screen-active = 0.
        ELSEIF v_flag1 IS INITIAL AND screen-group1 = 'M2'.
          screen-active = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Thanks
    Naren

  • Expand/Collapse all the Bookmarks in a PDF file

    Hi,
    This is my first message on the board :-)
    I work with very large PDF files (i.e 2000 pages, 700 bookmarks on 5 or 6 levels!) and I'm looking for a script (Acrobat 9 Pro) allowing to expand/collapse all the bookmarks in a PDF file.
    Thanks in advance for your valuable help,
    Cheers
    Antonella

    The Acrobat Javascript Scripting reference (http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS.pdf) describes how to use scripting to access bookmarks and how to open and close them, which is what you're looking for.
    I suggest you read the reference and make a function that will do the job for you.
    That's the way I would do it.
    I don't think you can access the keyboard shortcuts "/" and "Shift + *" via scripting.
    Torben.

  • JTree with XML content expand/collapse problem

    Hello all,
    I'm having this very weird problem with a JTree I use to display the contents of an XML file. I use the DOM parser (and not JDOM since I want the application to run as an applet as well, and don't want to have any external libraries for the user to download) and have a custom TreeModel and TreeNode implementations to wrap the DOM nodes so that they are displayed by the JTree.
    I have also added a popup menu in the tree, for the user to be able to expand/collapse all nodes under the selected one (i.e. a recursive method).
    When expandAll is run, everything works fine and the children of the selected node are expanded (and their children and so on).
    However, after the expansion when I run the collapseAll function, even though the selected node collapses, when I re-expand it (manually not by expandAll) all of it's children are still fully open! Even if I collapse sub-elements of the node manually and then collapse this node and re-expand it, it "forgets" the state of it's children and shows them fully expanded.
    In other words once I use expandAll no matter what I do, the children of this node will be expanded (once I close it and re-open it).
    Also after running expandAll the behaviour(!) of the expanded nodes change: i have tree.setToggleClickCount(1); but on the expanded nodes I need to double-click to collapse them.
    I believe the problem is related to my implementations of TreeModel and TreeNode but after many-many hours of trying to figure out what's happening I'm desperate... Please help!
    Here's my code:
    public class XMLTreeNode implements TreeNode 
         //This class wraps a DOM node
        org.w3c.dom.Node domNode;
        protected boolean allowChildren;
        protected Vector children;
        //compressed view (#text).
         private static boolean compress = true;   
        // An array of names for DOM node-types
        // (Array indexes = nodeType() values.)
        static final String[] typeName = {
            "none",
            "Element",
            "Attr",
            "Text",
            "CDATA",
            "EntityRef",
            "Entity",
            "ProcInstr",
            "Comment",
            "Document",
            "DocType",
            "DocFragment",
            "Notation",
        static final int ELEMENT_TYPE =   1;
        static final int ATTR_TYPE =      2;
        static final int TEXT_TYPE =      3;
        static final int CDATA_TYPE =     4;
        static final int ENTITYREF_TYPE = 5;
        static final int ENTITY_TYPE =    6;
        static final int PROCINSTR_TYPE = 7;
        static final int COMMENT_TYPE =   8;
        static final int DOCUMENT_TYPE =  9;
        static final int DOCTYPE_TYPE =  10;
        static final int DOCFRAG_TYPE =  11;
        static final int NOTATION_TYPE = 12;
        // The list of elements to display in the tree
       static String[] treeElementNames = {
            "node",
      // Construct an Adapter node from a DOM node
      public XMLTreeNode(org.w3c.dom.Node node) {
        domNode = node;
      public String toString(){
           if (domNode.hasAttributes()){
                return domNode.getAttributes().getNamedItem("label").getNodeValue();
           }else return domNode.getNodeName();      
      public boolean isLeaf(){ 
           return (this.getChildCount()==0);
      boolean treeElement(String elementName) {
          for (int i=0; i<treeElementNames.length; i++) {
            if ( elementName.equals(treeElementNames)) return true;
    return false;
    public int getChildCount() {
         if (!compress) {   
    return domNode.getChildNodes().getLength();
    int count = 0;
    for (int i=0; i<domNode.getChildNodes().getLength(); i++) {
    org.w3c.dom.Node node = domNode.getChildNodes().item(i);
    if (node.getNodeType() == ELEMENT_TYPE
    && treeElement( node.getNodeName() ))
    // Note:
    // Have to check for proper type.
    // The DOCTYPE element also has the right name
    ++count;
    return count;
    public boolean getAllowsChildren() {
         // TODO Auto-generated method stub
         return true;
    public Enumeration children() {
         // TODO Auto-generated method stub
         return null;
    public TreeNode getParent() {
         // TODO Auto-generated method stub
         return null;
    public TreeNode getChildAt(int searchIndex) {
    org.w3c.dom.Node node =
    domNode.getChildNodes().item(searchIndex);
    if (compress) {
    // Return Nth displayable node
    int elementNodeIndex = 0;
    for (int i=0; i<domNode.getChildNodes().getLength(); i++) {
    node = domNode.getChildNodes().item(i);
    if (node.getNodeType() == ELEMENT_TYPE
    && treeElement( node.getNodeName() )
    && elementNodeIndex++ == searchIndex) {
    break;
    return new XMLTreeNode(node);
    public int getIndex(TreeNode tnode) {
         if (tnode== null) {
              throw new IllegalArgumentException("argument is null");
         XMLTreeNode child=(XMLTreeNode)tnode;
         int count = getChildCount();
         for (int i=0; i<count; i++) {
              XMLTreeNode n = (XMLTreeNode)this.getChildAt(i);
              if (child.domNode == n.domNode) return i;
         return -1; // Should never get here.
    public class XMLTreeModel2 extends DefaultTreeModel
         private Vector listenerList = new Vector();
         * This adapter converts the current Document (a DOM) into
         * a JTree model.
         private Document document;
         public XMLTreeModel2 (Document doc){
              super(new XMLTreeNode(doc));
              this.document=doc;
         public Object getRoot() {
              //System.err.println("Returning root: " +document);
              return new XMLTreeNode(document);
         public boolean isLeaf(Object aNode) {
              return ((XMLTreeNode)aNode).isLeaf();
         public int getChildCount(Object parent) {
              XMLTreeNode node = (XMLTreeNode) parent;
    return node.getChildCount();
         public Object getChild(Object parent, int index) {
    XMLTreeNode node = (XMLTreeNode) parent;
    return node.getChildAt(index);
         public int getIndexOfChild(Object parent, Object child) {
    if (parent==null || child==null )
         return -1;
              XMLTreeNode node = (XMLTreeNode) parent;
    return node.getIndex((XMLTreeNode) child);
         public void valueForPathChanged(TreePath path, Object newValue) {
    // Null. no changes
         public void addTreeModelListener(TreeModelListener listener) {
              if ( listener != null
    && ! listenerList.contains( listener ) ) {
    listenerList.addElement( listener );
         public void removeTreeModelListener(TreeModelListener listener) {
              if ( listener != null ) {
    listenerList.removeElement( listener );
         public void fireTreeNodesChanged( TreeModelEvent e ) {
    Enumeration listeners = listenerList.elements();
    while ( listeners.hasMoreElements() ) {
    TreeModelListener listener =
    (TreeModelListener) listeners.nextElement();
    listener.treeNodesChanged( e );
         public void fireTreeNodesInserted( TreeModelEvent e ) {
    Enumeration listeners = listenerList.elements();
    while ( listeners.hasMoreElements() ) {
    TreeModelListener listener =
    (TreeModelListener) listeners.nextElement();
    listener.treeNodesInserted( e );
         public void fireTreeNodesRemoved( TreeModelEvent e ) {
    Enumeration listeners = listenerList.elements();
    while ( listeners.hasMoreElements() ) {
    TreeModelListener listener =
    (TreeModelListener) listeners.nextElement();
    listener.treeNodesRemoved( e );
         public void fireTreeStructureChanged( TreeModelEvent e ) {
    Enumeration listeners = listenerList.elements();
    while ( listeners.hasMoreElements() ) {
    TreeModelListener listener =
    (TreeModelListener) listeners.nextElement();
    listener.treeStructureChanged( e );
    The collapseAll, expandAll code (even though I m pretty sure that's not the problem since they work fine on a normal JTree):
        private void collapseAll(TreePath tp){
             if (tp==null) return;
             Object node=tp.getLastPathComponent();
             TreeModel model=tree.getModel();
             if (!model.isLeaf(node)){
                  tree.collapsePath(tp);
                  for (int i=0;i<model.getChildCount(node);i++){
                  //for (int i = node.childCount()-4;i>=0;i--){
                       collapseAll(tp.pathByAddingChild(model.getChild(node,i)));
                  tree.collapsePath(tp);
        private void expandAll(TreePath tp){
             if (tp==null) return;
             Object node=tp.getLastPathComponent();
             TreeModel model=tree.getModel();
             if (!model.isLeaf(node)){
                  tree.expandPath(tp);
                  for (int i=0;i<model.getChildCount(node);i++){
                  //for (int i = node.childCount()-4;i>=0;i--){
                       expandAll(tp.pathByAddingChild(model.getChild(node,i)));

    Hi,
    Iam not facing this problem. To CollapseAll, I do a tree.getModel().reload() which causes all nodes to get collapsed and remain so even if I reopen them manually.
    Hope this helps.
    cheers,
    vidyut

  • Expand / Collapse a View -- How can i control it

    Our component has 5 pages and each page has its set of fields and validations. (some are required fields).
    This works fine if all pages are Visible.
    But if user collapse one of the page then none of the logic written for that page gets executed, in other words in a page is collapsed CRM just ignores it completely.
    Because of this users are able to create transaction with incomplete data.
    Is there a way to make a page permanent, so that user can never collapse it. (Collapse / Expand functionality will not work)
    How do you recommend to solve this problem

    Is there a way to deactivate Expand/Collapse button ?
    We never want user to click on that, i guess it might require JavaScript but will appreciate if somebody can provide some insight on this.
    I found below article but couldnt understand how i can implement for my requirement.
    http://www.bloggroll.com/view/16

  • Xml report Expand/Collapse option

    Is there a way to show the results in the xml report in 'Collapsed form' by default, when I view report? (Report format-ATML 5.0 standard report, Style sheet - tr5_report.xsl)
    I have many steps in my test sequence and the report is quite long. Because the results of all the steps and sub steps are in Expanded view by default, it is very difficult to see the results of a particular step and I have to scroll a lot.
    An option to collapse all the step results at once, even after opening the report would also be helpful for me.

    Try using tr5_horizontal.xsl or tr5_expand.xsl stylesheet for the ATML 5.0 report. Both stylesheet has expand and collapse functionality.
    Also, if you dont want any of the steps to be displayed in report, you can disable result logging for the step or use result filtering expression in Report Option to filter the step result in report.
    - Shashidhar

  • How to expand/collapse detail rows per each row in APEX reports

    Hi
    I want to add functionality to my APEX classic reports which allows me to expand/collapse rows using something like +/- buttons. Please let me know how to achieve this.
    Thanks
    Hina

    Hi,
    This Carls example might help
    http://htmldb.oracle.com/pls/otn/f?p=11933:1
    See also post relating that sample
    Re: Question for Carl Backstrom
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Expand/Collapse All Version Sets

    PSE 10, Is there a simple way to open all the Version Sets with one set of keystrokes, and having them stay open. I have a lot of version sets built up over time, and I would prefer not having to open each one individually. When I tried doing that on a small batch, as soon as I  changed to a different batch of pics, all of the Sets I had opened, promptly closed. The View > Expand/Collapse All Stacks does not work on the Version Sets.

    Hi Surya
    Create a new HTML region at the top of your page, using No Template and use this as the Source:
    &lt;script type="text/javascript"&gt;
    function showHideAll(displaystyle)
    var hideIMG = "/i/htmldb/builder/rollup_plus_dgray.gif";
    var showIMG = "/i/htmldb/builder/rollup_minus_dgray.gif";
    var k;
    var r = document.getElementsByTagName("DIV");
    if (r)
       for (k = 0; k &lt; r.length; k++)
         if (r[k].className == 't12Hide')
           r[k].style.display = displaystyle;
    var i = document.getElementsByTagName("IMG");
    if ( i )
      for (k = 0; k &lt; i.length; k++)
        if (i[k].id.substr(0, 5) == 'shIMG')
          i[k].src = (displaystyle == 'block') ? showIMG : hideIMG;
    &lt;/script&gt;
    &lt;a href="javascript:showHideAll('block');"&gt;Show All&lt;/a&gt;
    &lt;a href="javascript:showHideAll('none');"&gt;Hide All&lt;/a&gt;The image names and className (t12Hide) are based on my test page - change these as appropriate for your own page (you may need to do a View Source on the page to check these values).
    Andy

  • Gridview expand collapse script

    I have a sharepoint 2010 with a webpart that has a gridview with the ability to expand/collapse to show more details in it.
    I have migrated this webpart to SharePoint 2013 and deployed it without any errors, however when I visited the page it seems that '$' is undefined, so I updated the jquery src and pointed it to the latest version which is 1.10.2
    after this, I encountered an error that says that .live is deprecated - here's the old code
    <script type="text/javascript">
    $("[src*=plus]").live("click", function () {
    $(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
    $(this).attr("src", "~/_layouts/images/minus.png");
    $("[src*=minus]").live("click", function () {
    $(this).attr("src", "~/_layouts/images/plus.png");
    $(this).closest("tr").next().remove();
    </script>
    SO i went and changed the .live to .on and my udpated script is now this one
    <script type="text/javascript">
    $(document).ready(function () {
    $(document).on("click", "[src*=plus]", function () {
    $(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
    $(this).attr("src", "~/_layouts/images/minus.png");
    //alert("clicked plus");
    $(document).on("click","[src*=minus]", function () {
    $(this).attr("src", "~/_layouts/images/plus.png");
    $(this).closest("tr").next().remove();
    </script>
    but the updated code above shows two entries (meaning two rows of the same detail) when the + sign is clicked, and it doesnt show the minus sign.
    ----------------------- Sharepoint Newbie

    Try putting some class on your plus and minus and modify jQuery as
    <script type="text/javascript">
    $(document).ready(function () {
    $(".plus").on("click", function () {
    $(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
    $(this).attr("src", "~/_layouts/images/minus.png");
    //alert("clicked plus");
    $(".minus").on("click", function () {
    $(this).attr("src", "~/_layouts/images/plus.png");
    $(this).closest("tr").next().remove();
    </script>
    Geetanjali Arora | My blogs |

  • Form - Expand/Collapse sections to simulate website, is this possible?

    Hello,
    My FLA file is based in CS5 with AS3. I posted this in the AS3 forum but if it can be done without AS3 then I am open to that possibility as well.
    I am creating a non-functioning form, meaning I just need it to look like a form but the functionality doesn't need to work. Atleast not in this stage of development.
    The functionality I need basically looks like the following:
    - http://static.geewax.org/checktree/index.html (What would this be called in the flash world?? my google search terms have not been successful)
    Where:
    1. Clicking the arrow expands a section.
    2. The arrow changes to a different arrow when the section is expanded.
    3. It will be inside of a white box, the white box needs to resize to either shrink or get taller when a section is expanded or collapsed.
    One section will be checkboxes, and one section will be radio buttons.
    Thank you very much in advance . I look forward to exploring into how to accomplish such a thing.
    Message was edited by: da4seen

    Okay,
    I know I may be going at this completely wrong but posting my code here so someone can give me feedback so far and point me in directions where I need improvement.
    So far this code:
    1. Expands/Collapses the 1st section, and properly moves the 2nd section to the correct position.
    My problem so far is:
    1. The contents of the 2nd section doesn't update to the correct position when section 1 expands/collapses.
    import fl.controls.CheckBox;
    import fl.controls.RadioButton;
    //Set Variable for collapse position
    var collapsePosition:int = 0;
    // Tab1 Group 1
    var tab1_gp1_main:CheckBox = new CheckBox();
    var tab1_gp1_op1:CheckBox = new CheckBox();
    var tab1_gp1_op2:CheckBox = new CheckBox();
    addChild(tab1_gp1_main);
    tab1_gp1_main.move(-110, -300);
    tab1_gp1_main.width = 120;
    tab1_gp1_main.label = "Landscape";
    // Tab1 Group 2;
    var tab1_gp2_main:CheckBox = new CheckBox();
    var tab1_gp2_op1:CheckBox = new CheckBox();
    var tab1_gp2_op2:CheckBox = new CheckBox();
    addChild(tab1_gp2_main);
    tab1_gp2_main.move(-110, 20 + tab1_gp1_main.y );
    tab1_gp2_main.width = 120;
    tab1_gp2_main.label = "Performance";
    // Section Click Listeners
    tab1_gp1_main.addEventListener(MouseEvent.CLICK, sectionHandler);
    tab1_gp2_main.addEventListener(MouseEvent.CLICK, sectionHandler);
    function sectionHandler(event:MouseEvent):void
        switch (event.currentTarget)
            case tab1_gp1_main :
                switch (tab1_gp1_main.selected)
                    case true :
                        addChild(tab1_gp1_op1);
                        addChild(tab1_gp1_op2);
                        tab1_gp1_op1.move(-100, 20 + tab1_gp1_main.y);
                        tab1_gp1_op1.width = 120;
                        tab1_gp1_op1.label = "test 1";
                        tab1_gp1_op2.move(-100, 20 + tab1_gp1_op1.y);
                        tab1_gp1_op2.width = 120;
                        tab1_gp1_op2.label = "test 2";
                        collapsePosition = tab1_gp2_main.y;
                        tab1_gp2_main.move(-110, 20 + tab1_gp1_op2.y);
                        break;
                    case false :
                        removeChild(tab1_gp1_op1);
                        removeChild(tab1_gp1_op2);
                        tab1_gp2_main.move(-110, collapsePosition);
                        break;
                    default :
                        trace('Something is wrong');
                break;
            case tab1_gp2_main :
                switch (tab1_gp2_main.selected)
                    case true :
                        addChild(tab1_gp2_op1);
                        addChild(tab1_gp2_op2);
                        tab1_gp2_op1.move(-100, 20 + tab1_gp2_main.y);
                        tab1_gp2_op1.width = 120;
                        tab1_gp2_op1.label = "test 1";
                        tab1_gp2_op2.move(-100, 20 + tab1_gp2_op1.y);
                        tab1_gp2_op2.width = 120;
                        tab1_gp2_op2.label = "test 2";
                        break;
                    case false :
                        removeChild(tab1_gp2_op1);
                        removeChild(tab1_gp2_op2);
                        break;
                    default :
                        trace('Something is wrong');
                break;
    I have the above AS code inside a movieclip timeline, not sure if this was proper or not but I was trying to keep some code away from my long AS statements on my main timeline.

Maybe you are looking for