Platform

Platform

A place for Apptio product users to learn, connect, share and grow together.

 View Only
  • 1.  Show HTML element when condition is fulfilled

    Posted 02/15/18 02:35 PM

    Hi,

     

    I'm not quite sure, if my idea is realizable in Apptio. As you know more than me, I ask you!

     

    I want to show e.g. an HTML element, when entries in a table exist. So, I need to enter somewhere a condition and when this is true, the element shall be shown. Unfortunatly, I haven't seen anything like this yet. Is this possible in Apptio? We're using version 11.8.

     

    Thanks for any hint!

    Susanne


    #Platform


  • 2.  Re: Show HTML element when condition is fulfilled
    Best Answer

    Posted 02/15/18 02:54 PM

    Hi Suzanne, this is absolutely possible, I actually have a feature just like this in one of our projects

     

    What this code does is: check to see if there are any rows in a table named "Monthly Allocation Validation Transform", pulling unique values from an arbitrarily selected column for rows have a  have a specific "DataSrc" value, and if there are any rows that match that criteria, it will display a warning if there are rows in the table with that value

     

    I am not sure what type of code you are trying to put in this if statement, but this should enable you to make it work

     

    The code is:

    <span class = "top">
    <%=if(eval("UniqueValues(Monthly_Allocation Validation Transform:Key[DataSrc=1])")="","","WARNING: The following CC Allocations do not amount to 100% </br> Please do not proceed until this is resolved </br>")%>
    </span>

     

    Let me know if this helps, or I need to explain it further!

     

    Best,

    Maxwell


    #Platform


  • 3.  Re: Show HTML element when condition is fulfilled

    Posted 02/16/18 01:20 AM

    Thanks a lot for this Maxwell! Have a nice weekend! 


    #Platform


  • 4.  Re: Show HTML element when condition is fulfilled

    Posted 02/16/18 04:07 AM

    Thanks a lot Maxwell! I didn't had a clue about entering a code in the HTML box. You definitly showed me the right direction! Susanne


    #Platform