Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set a badge on a menu entry according to an SQL Request result

BlueForest85Nov 3 2022

Hello everyone,

I would like to set a badge value on my menu entries. The value could be based on the number of result lines of an SQL query.
In the menu entry settings, I saw a parameter : Badge value.
I made a test with the value 2.

image.png
However, I don't know how to set this value based on a SQL query.
I saw, inspecting the HTML code that, a span class = "t-Button-badge" with content 2 is there for the badge. I could select the entry, and add this class via a JS code but I'm not sure it's the best method.

How would you do this ?

This post has been answered by BlueForest85 on Nov 3 2022
Jump to Answer
Comments
Post Details
Added on Nov 3 2022
1 comment
286 views