Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How to remove operator labels in Prompts

Received Response
11
Views
5
Comments
Supergluey
Supergluey Rank 2 - Community Beginner

Dear All,

New User here.

I was wondering, is there a way to remove the operator label that is beside the prompt box?

For example, I have a prompt in which I configured to check between dates

It is Displayed:

Year of Manufacturer: Between [Box] [Box]

Is there any way to rid of the "between" word but still have that function??

I noticed that in earlier versions, it would not be displayed.

As you can see below, it looks really ugly, and not aligned with the other prompts/boxes

capture5.PNG

Please Help.

Thanks

Answers

  • Andrew Fomin.
    Andrew Fomin. Rank 6 - Analytics Lead

    You can redefine label's style using a text object with the following HTML:

    <style>

    .promptOperatorLabel

    {

    display: none;

    }

    </style>

  • Supergluey
    Supergluey Rank 2 - Community Beginner

    Thanks for your reply Andrei.

    However, where I put the HTML?

    To clarify this is not a dashboard prompt, this is an analysis prompt.

    I have tried to input it into the settings, but it doesn't do anything.

    capture6.PNG

    Please Help

  • Andrew Fomin.
    Andrew Fomin. Rank 6 - Analytics Lead

    It depends on the way you run your report. If you run your report from a dashboard (no matter which type of prompt you use), my solution works for you. If you start this report directly from a catalog, it won't work.

    For the case of a dashboard.

    1. Create a report as usual with a report prompt.
    2. Put it to a dashboard page.
    3. Add to any place of this page a Text object (it is in the top left corner of dashboard editing interface).
    4. Write into this text object the code from my previous message and turn on "Contains HTML Markup" property.

    style.png

  • Supergluey
    Supergluey Rank 2 - Community Beginner

    Thank Andrei for  your tips.

    You re correct in that I am trying to start the report from the catalog and wish to remove it from there and NOT from the dashboard prompt.

    Is there any way to do so? Or Am I stuck with the labels forever?

    Thanks

  • Andrew Fomin.
    Andrew Fomin. Rank 6 - Analytics Lead

    Well, in this case, I can offer you two options.

    You can change this style definition at the system level. It means that all of your prompts won't show this operation label. But in my opinion, that's a too complicated solution for a small problem. Though that could be your intention, of course. If you are OK with this, read about Custom styles and skins (not sure if it works in 12c).

    The other way is to slightly alter the requirements. Instead of getting rid of this label, you can just aim to make the prompt more neat. Like this:

    Capture2.PNG

    How to do:

    Capture1.PNG