Shay Shmeltzer's Oracle Development Tools Tips

Improved Dial Gauge in Oracle ADF Mobile

Shay Shmeltzer
Director of Product Management - Oracle

The dial gauge is a very visual way to show data in an application - and it has been there in Oracle ADF Mobile since 11.1.2. However in that release you could only use a range of 0-100 - well now you can do better with the new ADF Mobile version.

But there is one little trick to how this works compared to the way it works in the regular web ADF Faces gauge component, and if you don't notice it you might think you are still stuck in the 0-100 days - The trick is the new background property.

If you are working in the property inspector you can right-click in the property to see explanation and the available values.

Or if you work in the code editor just use the code insight to choose the value you want.

For defining your own range you'll want to use the costum options.

Then you can get something that looks like these:

Also note that you can control the indicator type with the indicator property.

<dvtm:dialGauge background="circleAntiqueCustom" indicator="needleLight" value="7000" minValue="4000" maxValue="9000"/>

Happy visualization.

Join the discussion

Comments ( 2 )
  • guest Monday, June 23, 2014

    Hi, I am trying to use the gauge for the normal display on web in jdeveloper. I am have the problem that if the value input to the gauge is out of range the indicator disappears. Is there a why to make the indicator stay at the range limit if it is out of range? Thanks ^_^

  • Shay Monday, June 23, 2014

    guest, instead of basing your gauge on the direct value - based it on a calculated attribute that keeps it in the range you are displaying in the gauge.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.