ICEfaces
  1. ICEfaces
  2. ICE-9106

ace:tableConfigPanel - Add a "Restore Defaults" convenience button

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.GA
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P3
    • Salesforce Case Reference:

      Description

      Feature Request: Add a button to the ace:tableConfigPanel which will reset any of the sort priorities that had been added to the panel.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000SQq4HAAT
        Hide
        Ken Fyten added a comment - - edited

        Note that this can already be achieved by clicking on the sort arrows while holding the Ctrl/Cmd key. Ctrl-click once = sort ASC, click again = sort DESC, click a third time = clear sort for that column.

        To see this working on Windows machines will require ICE-9104 to be fixed first.

        Show
        Ken Fyten added a comment - - edited Note that this can already be achieved by clicking on the sort arrows while holding the Ctrl/Cmd key. Ctrl-click once = sort ASC, click again = sort DESC, click a third time = clear sort for that column. To see this working on Windows machines will require ICE-9104 to be fixed first.
        Ken Fyten made changes -
        Summary ace:tableConfigPanel - Add a Reset Sort convenience button ace:tableConfigPanel - Add a "Restore Defaults" convenience button
        Ken Fyten made changes -
        Fix Version/s 3.4 [ 10770 ]
        Ken Fyten made changes -
        Assignee Nils Lundquist [ nils.lundquist ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Assignee Priority P3 [ 10012 ]
        Hide
        Nils Lundquist added a comment - - edited

        Note that it is impossible to restore the labels of the Columns - once they've been changed - they're changed in the component tree.

        There is no way to know what the "default" label is. We can assume the default visible state is true, that the default sort state is none, and that the default ordering is whatever is in the component tree. (The column ordering does not reorder columns in the component tree.)

        This button will only reset all columns to visible, remove all sorting and reset ordering.

        Show
        Nils Lundquist added a comment - - edited Note that it is impossible to restore the labels of the Columns - once they've been changed - they're changed in the component tree. There is no way to know what the "default" label is. We can assume the default visible state is true, that the default sort state is none, and that the default ordering is whatever is in the component tree. (The column ordering does not reorder columns in the component tree.) This button will only reset all columns to visible, remove all sorting and reset ordering.
        Hide
        Nils Lundquist added a comment -

        Revision #35638
        Committed by nils.lundquist
        Moments ago
        ICE-9106 - Added clear configuration button to TableConfigPanel.

        Show
        Nils Lundquist added a comment - Revision #35638 Committed by nils.lundquist Moments ago ICE-9106 - Added clear configuration button to TableConfigPanel.
        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35638 Tue May 28 16:57:03 MDT 2013 nils.lundquist ICE-9106 - Added clear configuration button to TableConfigPanel.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/tableconfigpanel/tableconfigpanel.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tableconfigpanel/TableConfigPanelRenderer.java
        Hide
        Ken Fyten added a comment -

        Note that the trash/reset function must respect the configuration of the TableConfigPanel such that it should only reset those aspects that have been made user-configurable, and not those that are not user-configurable to avoid allowing the user to reset aspects that the application wants locked.

        Show
        Ken Fyten added a comment - Note that the trash/reset function must respect the configuration of the TableConfigPanel such that it should only reset those aspects that have been made user-configurable, and not those that are not user-configurable to avoid allowing the user to reset aspects that the application wants locked.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35670 Thu May 30 23:38:19 MDT 2013 nils.lundquist ICE-9106 - Added clear configuration button to TableConfigPanel.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableDecoder.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35671 Thu May 30 23:48:20 MDT 2013 nils.lundquist ICE-9106 - Clear config button TLD added and only clears state for column features optionally configurable via the panel.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tableconfigpanel/TableConfigPanelMeta.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableDecoder.java
        Hide
        Nils Lundquist added a comment -

        The above functionality has been added along with TLD.

        Show
        Nils Lundquist added a comment - The above functionality has been added along with TLD.
        Nils Lundquist made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: