Forum Discussion

Tsanka's avatar
Tsanka
Kudo Collector
10 years ago
Solved

Disable selection of a visual

I am trying to "beautify" some reports by adding rectangles, lines and images. Can I set up these elements not to be selectable by the users? For instance if I place a rectangle as a page frame and if the user selects it, the rectangle gets the focus and one cannot select any of the other visuals on the page.

17 Replies

  • deldersveld's avatar
    deldersveld
    Resident Rockstar

    You cannot disable selection, but you can use Arrange in the ribbon to send those objects all the way to the back.

    • Tsanka's avatar
      Tsanka
      Kudo Collector

      Thanks for the reply, however this is not a solution - you can send the element to back but the user can (incidentally or not) select it and this brings the element to front.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Tsanka Yeah, I like your idea, and I agree you should have more control over the shapes as permanent background pieces.

        You can do a couple things now to get "close" to what you want.

        You could make the shape, and have the "top" visual cover it completely. That way the user can't click on it.

        Use the new BackGround color formatting to change the entire page color. (Click on any part of the page (not visual) and click the paintbrush. you may already know about this.

         

        Other than that, submit an idea - I'd vote for it.

  • I am still not sure how this can be acheived.  Can someone provide more detail solution? I disabled the headers, but the widgets are still selectable and can pop up to the front hiding other widgets behind it.

    • jinma78's avatar
      jinma78
      Advocate II

      Ok I figured out the workaround.  Since it is disabling selection of visual is not possible, use the shape widget to build the background of a filter pop up but add a bookmark action to the background shape widget where it will show the book mark page you want to show.  So even when the background is clicked the action will take you right back to the screen with all widget showing the correct Z axis and the background shape will never be able to come forward. I will post up a sample pbix file if my description is not clear here. Let me know, and hope this helps.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Good workaround. Fixes the problem.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

    really nice idea, though this won't solve the problem with mobile version as you can't move objects on top of other objects.

     

    Any ideas how to go around this?

     

    thanks

     

    dan

  • emilolbinado's avatar
    emilolbinado
    Frequent Visitor

    You can also add a transparent shape object to cover the shape you don't want to be selected. Such that when clicked, the transparent object is activated, not the other shape.