Hiding Labels depending on selection

Hello there ! 

 

im working on a screen which shows me various projects in a chart.

 

I have two cubes for two different kind of projects lets say A-Projects and B-Projects.

 

In the top left corner I have a label showing the projectsnumber depending of the project selected.

 

I want this label to show me the correct projectnumber so in the layout, I selected both of those project cubes.

 

But as I tested this is not possible cause it can only show me one of those cubes. Or am I wrong? 

 

The second thought was to build two labels each one with one cube in it and to hide the label which projects are not selected. But I dont know if this is possible. 

 

I want to avoid showing two different labels in the screen so this is no option. 

 

Do you guys have any ideas? 

 

Thanks and have a nice monday ! 

Answers

  • Björn Reuber
    Björn Reuber Employee, Community Captain
    500 Likes Fourth Anniversary 100 Comments 5 Answers

    Hi,

     

    there are different option.

    But first of all, a Label with Layout can only display 1 figure (i.e. Row),

    First of all I would suggest to create the layout in a normal DataView, cause here you see directly what you have.

    If you have 2 different cubes and you want to display one of them depending on a certain selection you can use a 3rd Block wiht an Algorithm and displaying Cube A or B, depending the seleection.

     

    Regards

    Björn

  • Thanks for your help björn! 

     

    But what I need is just a simple and good looking label which shows me one projectnumber at a time because on 

     

    this screen its only possible to select one project at the same time.

  • Björn Reuber
    Björn Reuber Employee, Community Captain
    500 Likes Fourth Anniversary 100 Comments 5 Answers
    edited March 2020

    Hi,

     

    why don't you use @Selection or Selection_EX feature within board? Cause this Features are thought to display the current selection/selected entity members (assuming Projectnumber is an Entity in BOARD)

    image

     

    image

     

    Regards Björn

  • Thanks for that ! But the problem is, I have two different kind of projects "Hauptprojekt" and "Einzelprojekt" so I think I cannot display both in one Label with the selection feature?

  • Björn Reuber
    Björn Reuber Employee, Community Captain
    500 Likes Fourth Anniversary 100 Comments 5 Answers

    Hi,

     

    is there an relation between Hauptprojekt and Einzelprojekt? Depending on which criteria do you want to choose which Element should be displayed?

     

    regards

    Björn

  • Hi Antoni,

     

    Is it possible that you can illustrate pictorially the concept of your intriguing question? Björn Reuber is doing a good job at providing a solution to each of your responses as more information is revealed.  I admit that it can be hard at times to articulate precise problems on such forums.

  • Previous Member
    edited March 2020

    As per Paul Wyatt - Avison Young UK    suggestion, I think what you are asking for is something like the attached screenshot.

    This is two snips of the same label showing different values based on the selector shown directly above it. If this is what you mean I can share the logic for doing this. (True values blocked out for confidentiality)

     

    Robert

    Dynamic Label Value

  • Thats what im talking about !  Would be nice to know how you made this ! Big thanks 

  • Björn Reuber
    Björn Reuber Employee, Community Captain
    500 Likes Fourth Anniversary 100 Comments 5 Answers

    Hi,

     

    Antoni Theodorou as far as I understand your situation is quite different to Robert Brooke example.

    In his example he is using ONE enitity and he is displaying different text, depending on a certain selection on this entity (this could be done pretty easy using one Layout within a Label).

     

    In your case you have (as far as i understood) TWO different Entities (Main-Project and Single-Project) and you want to display the selected entity member of one of them (so if you select a main-project this code should be displayed, if you display a Single-Project that code should be displayed).

     

    So we still need the information if there is a relationship between both

     

    Regards

    Björn

  • hey Björn,

     

    yes you are right ! But in the meantime i was working on a workaround for that and my boss finally accepted  

     

    There is a relationship yes but we have some other problems with the projectnumber so i tried to do something else.

     

    Im sorry for not answering! 

     

    Robert Brooke Im still interested in your solution to improve my knowledge! 

  • Unknown
    Unknown Active Partner

    Hi Antoni Theodorou, it looks like we have a few solutions to chose from here. Since you've been able to use this towards solving your challenge, can you please select one and click Mark as Correct. That will surface your favourite answer to the top for others to see down the road. Thanks