Making Layout Updates without the ability to UNDO

Posted by: vahan on 3 August 2017, 3:57 pm EST

  • Posted 3 August 2017, 3:57 pm EST

    Hi,



    I am implementing a default filter to users using a PivotView that I created. I apply this filter programmatically when the page loads:



    Using la As ILayoutActions = PivotView1.BeginLayoutUpdate("DefaultFilter")

    la.SetFilter(~~~~)

    la.Commit

    End Using



    The problem comes in when users open the site, they are able to hit the undo button in the toolbar and get rid of this filter that I programmatically inserted. Is there a solution to this problem in which i can make a layout update without adding to the undo list?



    Thanks,

    Vahan
  • Replied 3 August 2017, 3:57 pm EST

    Vahan,

    Could you kindly provide me a small sample application where you are adding a filter to the PivotView? This will help me in replicating the issue at my end and provide you any further suggestions.

    Regards,
    Sankalp
  • Replied 3 August 2017, 3:57 pm EST

    I don't have a sample ready, but it is not a lot of code that i am having problem with.

    The application that I am working on is for federal use and i cannot send it out.

    Here is the main code that I have:



    Private Sub LoadTheForm(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load



    MdxDataSource1.ConnectionString = "CONNECTION STRING"

    MdxDataSource1.Cube = "CUBE NAME"



    PivotView1.DataSourceID = "MdxDataSource1"



    PivotView1.Permissions.DisallowActions(UiAction.FilterField)



    Using la As ILayoutActions = PivotView1.BeginLayoutUpdate("DefaultFilter")

    la.SetFilter("[Gender].[Gender]", Heading.EqualsTo("Male"))

    la.Commit

    End Using



    End Sub



    After doing this, the undo button is enabled and users can easily press and get rid of the filter for the attribute "gender". Is there a way to disallow this undo action (similar to the way i disallow the UIAction.FilterField) or clear the UNDO list so that the button is not enabled when the page loads?



    Thanks,

    Vahan

  • Replied 3 August 2017, 3:57 pm EST

    Vahan,

    Thank you for providing details about your requirements. Unfortunately this functionality is not available at this point of time. We have opened a new feature request Case 151830 to get this functionality added. I have also added your E-mail address as an affected user to this case. You will be notified once this case gets resolved.

    Regards,
    Sankalp
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels