Oracle Business Intelligence

Products Banner

Conditional Action Links

Received Response
24
Views
7
Comments

I want to create a conditional action link on my dashboard page.

Currently, I have an action link on the page that runs a browser script.  However, I now need to modify this to run one of two browser scripts based on a value from an analysis.

My vision is to keep the link I have, but when the user clicks on it, BI will evaluate the value on the analysis and launch the appropriate browser script.

Is there a way to do this?

Thanks!

Dennis

Answers

  • Robert Angel
    Robert Angel ✭✭✭✭✭

    Other way up for your logic,

    take your existing link, put it through a case statement to generate all the variations you need, job done....

  • Joel Acha
    Joel Acha ✭✭✭✭✭

    You just need to create a series of Conditional Action Links - one for each condition this way you'd only have one link displaying as required for each condition.

    conditions.png

  • Hi.

    I've done this before on an Interaction tab of Column Properties, but the Action Link object itself looks a little different.

    Is there a way to do this directly on Action Links?

    Thanks!

    Dennis

  • Here's a screen print of what I have so far.  Just for clarification -- this is for an Action Link object on a Dashboard Page.  It is not an interaction with a column on an analysis.

    The action is to "Invoke a Brower Script".  I now have two of these scripts - only one of which can be invoked depending on the value of "Status Cd".  Initially I clicked on the Always button.  I changed this to Conditionally to test out the new requirement.

    Is there a place in here to include a Case statement?

    Thanks!

    Dennis

    conditional action link.jpg

  • Robert Angel
    Robert Angel ✭✭✭✭✭

    Sorry, misread your original my case statement was presuming you wanted your action links in an answers presentation...

    As it is my learned college is correct with the conditional links, all you need to do is create X number of answers analytics, where X = the total number of links and X1 only returns rows when you want the first link to display, X2 only returns rows when you want the second link to display etc.

    That is all there is to it.

  • Joel Acha
    Joel Acha ✭✭✭✭✭

    Based on what I mentioned previously, all you need to do is to access the column properties > interaction tab (see my screenshot) and one of the interaction types is "invoke a script" . You just need to add a condition to ensure that the column value determines the action link that is called.

  • Thanks Joel,

    It took some doing, but I followed your suggestion (using column properties instead of the action link) and it worked.  I haven't tried the other suggestion that was made, but if time allows, I will try the case statement solution also.  Thanks to you both!

    Dennis