Newly Created Elements Not Displayed in Selection Filter

Issue #778 resolved
Van Zyl Brink created an issue

When adding elements to a dimension within UX (with a button connected to a TI process), the Selection Filter is not updated with the newly created element, even though the MDX statement is showing the new element within the Subset Editor.

Element Creation with Button and inputs:

Element visible in view after process execution:

Element NOT visible in Selection Filter after creation:

Element visible in Subset Editor with MDX statement that is being applied to the Selection Filter:

Comments (4)

  1. Scott Wiltshire
    • changed status to open

    Hi Van Zyl,

    This is because the lists for the filters get built when navigating to the screen. When the subnm combo-box is clicked there is no new request sent to refresh the list. Also when a TI process completes (if not running in asyc mode) then the widgets will refresh, but not the filters (as the context is already set by a single element selection.)

    If you do a full browser F5 refresh on the screen then the new element will be in the filter. Or if you navigate away and come back.

    By making the project list filter dependent on another filter you could create a little hack workaround to update the list of elements (just include a placeholder variable from another filter in the MDX for project, but make the test in MDX meaningless so that the list would return the same anyway). Then when the other "upstream" filter is changed the list in the project filter would also update.

    Hopefully one of these workarounds is sufficient for you. As far as I know we don't have a function to also refresh filters on conclusion of TI process, only the dashboard widgets.

    Also probably about time to upgrade from that old version.

  2. Van Zyl Brink reporter

    Thank you for the detailed explanation Scott. We do have the “Portfolio” filter (to the left of the Project filter) impact the list of elements displayed in the Project filter with an MDX statement. Thus, the upstream workaround that you are referring to, is currently being used. Ideally we would not want the user to do a full webpage refresh with F5, or the user selecting/re-selecting the Portfolio for the project list to update in the selection filter.

    Not knowing much about UX and the way it functions technically, but would it be possible to drive a list refresh when clicking on the drop down arrow of the Selection Filter?

    In terms of the current version being used, the client has a yearly upgrade strategy, thus we are unable to do that within the next 6 months.

  3. Scott Wiltshire

    As there is a local workaround available (change portfolio selection to update projects) I will mark as resolved.

    As it is a bit of an edge case (TI creates new element, want to see new element in filter as opposed to in the dashboard content) there's no high demand for a new standard feature to optionally refresh filters on conclusion of TI process in addition to refresh widgets.

    However there are 2 other solutions that could be better:

    1. Rather than TI popup, have a standard popup (that is a dashboard) and have the TI in the popup as embedded. Then on the popup set the refresh filters on close property to true in the modal settings "modalsView":{"refreshFiltersOnClose": true}
    2. create a js function to refresh filters and call this function
  4. Log in to comment