Dvt:gauge StatusMeter displaying negative value strangely
Hi,
I'm creating a number of dvt:gauge components to display some retrieved numeric values. My aesthetic preference is to use the STATUSMETER gauge type. The values to be displayed vary greatly in scale and may be positive or negative. As a result I'm letting Oracle determine the best Min and Max values for the gauge(s).
The problem is that when a negative value is displayed, the status bar is still shown starting from left to right. This looks quite odd to our users as we would expect the bar to start at 0 (zero) and move from right to left. Currently it looks as if the value starts at an arbitrary negative value and is moving towards zero...?!
I've tried configuring the Min and Max values myself with no joy. Are there some additional attributes that I'm missing that enable the Status Meter to be shown in a more sensible way? Thanks.
FYI. I'm using JDeveloper Studio Edition Version 11.1.2.1.0.
Hi,
Any help on this would be really appreciated.
Thanks.
Similar Messages
-
How to display negative values in a screen field of a screen
Hi All,
Please let me know how to display negative values in a screen field of a screen.
thanksHi Kishore,
You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
I have created a field of CHAR of name say TEXT.
In the main program,
declare a variable of the same name ie. TEXT.
data: TEXT(5) TYPE C.
In PBO, just assign the negative values.
It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
Regards,
Sylendra. -
WebLogic 9.2MP2.Messages Pending topic count JMS display negative value
on admin console. Services -> Messaging -> JMS Modules in JMS System Modules -> JMS queue name -> Monitoring role tab .
I use WebLogic 9.2MP2 version . I found that JMS destination summaize page, Messages Pending topic count display negative value.
What is mean negative value ? or that bug of WebLogic9.2 MP2.
Thank you.
BR,A negative value indicates a bug -- quite likely in internal statistics gathering code itself. I don't know if the problem has been addressed in later MPs or later versions.
Tom -
DVT Gauge error display tabular data
Hi,
I have a dvt:gauge and is related to backing bean to get the tabular data.
public List getGaugeData()
ArrayList list = new ArrayList();
String[] rowLabels = new String[] {"London", "Paris", "New York"};
String[] colLabels = new String[] {"Quota", "Sales", "Margin", "Costs", "Units"};
double [] [] values = new double[][]{
{60, 90, 135},
{50, -100, -150},
{130, 140, 150},
{70, 80, -130},
{110, 120, 130}
for (int c = 0; c < colLabels.length; c++)
for (int r = 0; r < rowLabels.length; r++)
list.add (new Object [] {colLabels[c], rowLabels[r],
new Double (values [c][r])});
return list;
}the result is wrong, rather than to have 3 gauge i am getting a lot more.
If you a sample to give is much appreciated.
How to solve this problem.
RegardsHi,
Data Specification - A Data Specification can be used to specify columns or rows of data to be used as the metric value, and threshold, minimum and maximum values. The following example shows how to use a Data Specification for a set of tabular data. This tabular data contains 5 columns and 2 rows. If Data Specification is not used, the following table will generate 10 Gauges that there will be a gauge for each value. Each column has its desired data specification as shown. Sales is assigned to be metric value, Quota is assigned to be the first threshold, etc. This will generate 2 Gauges, one for Boston and one for Chicago, both with metric, minimum, maximum and threshold values specified.
Desired Spec. Metric Minimum Maximum Threshold 1 Threshold 2
Name Sales Min Inventory Quota Target
Boston 40 0 100 30 50
Chicago 60 0 80 35 70
[Oracle DVT Gauge|http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12418/tagdoc/dvt_gauge.html]
Too bad there is no sample.
Anu hints -
Displaying negative value while % calculation
Hello Experts,
I'm having issues with the following sceanario.
There is one Percentage calculation column in report layout, but the result shows negative value even if Numerator & Denoinator having negative values. I'm using %A function and also NODIM.
I'm using like nodim(-2) %A nodim(-1) and result gives -200% instead of 200%.....
Please give me clarification to achieve the actual results.
Regards,
Navin AchantaHi Navin,
I hope you are working on BI 7.0. And this is a known issue from SAP and they have some notes to be applied for this to get the new %A functionality. What is happening here is, the denominator negative sign is not working and always it is taking an absolute value, i.e, only 1 in your case.
Please check with your basis guys or SAP. One of my friend got this problem and that is why i come to know this solution. But, sorry for the providing the exact notes applied for this.
Regards,
Srinivas. -
Why is it displaying negative value?
Hi friends when i tried to execute the following command
it is displaying the following answer.....
sql> select cos(60) from dual;
COS(90)
-.44807362
what's the reason to display negitive value for cos(60).....As anish pointed out, most computer languages tend to work in radians rather than degrees....
SQL> CREATE FUNCTION radians(p_degrees IN NUMBER) RETURN NUMBER IS
2 pi NUMBER(9,7) := 3.1415926;
3 BEGIN
4 -- There are 2*PI radians in a circle
5 -- Therefore 2*PI = 360 degrees
6 -- Therefore PI = 180 degrees
7 RETURN (p_degrees/180)*pi;
8 END;
9 /
Function created.
SQL> with t as (select rownum-1 as degrees from dual connect by rownum <= 360)
2 select t.degrees,
3 round(sin(radians(t.degrees)),6) SIN,
4 round(cos(radians(t.degrees)),6) COS
5 from t;
DEGREES SIN COS
0 0 1
1 .017452 .999848
2 .034899 .999391
3 .052336 .99863
4 .069756 .997564
5 .087156 .996195
6 .104528 .994522
7 .121869 .992546
8 .139173 .990268
9 .156434 .987688
10 .173648 .984808
11 .190809 .981627
12 .207912 .978148
13 .224951 .97437
14 .241922 .970296
15 .258819 .965926
16 .275637 .961262
17 .292372 .956305
18 .309017 .951057
19 .325568 .945519
20 .34202 .939693
21 .358368 .93358
22 .374607 .927184
23 .390731 .920505
24 .406737 .913545
25 .422618 .906308
26 .438371 .898794
27 .45399 .891007
28 .469472 .882948
29 .48481 .87462
30 .5 .866025
31 .515038 .857167
32 .529919 .848048
33 .544639 .838671
34 .559193 .829038
35 .573576 .819152
36 .587785 .809017
37 .601815 .798636
38 .615661 .788011
39 .62932 .777146
40 .642788 .766044
41 .656059 .75471
42 .669131 .743145
43 .681998 .731354
44 .694658 .71934
45 .707107 .707107
46 .71934 .694658
47 .731354 .681998
48 .743145 .669131
49 .75471 .656059
50 .766044 .642788
51 .777146 .62932
52 .788011 .615661
53 .798636 .601815
54 .809017 .587785
55 .819152 .573576
56 .829038 .559193
57 .838671 .544639
58 .848048 .529919
59 .857167 .515038
60 .866025 .5
61 .87462 .48481
62 .882948 .469472
63 .891007 .453991
64 .898794 .438371
65 .906308 .422618
66 .913545 .406737
67 .920505 .390731
68 .927184 .374607
69 .93358 .358368
70 .939693 .34202
71 .945519 .325568
72 .951057 .309017
73 .956305 .292372
74 .961262 .275637
75 .965926 .258819
76 .970296 .241922
77 .97437 .224951
78 .978148 .207912
79 .981627 .190809
80 .984808 .173648
81 .987688 .156434
82 .990268 .139173
83 .992546 .121869
84 .994522 .104528
85 .996195 .087156
86 .997564 .069756
87 .99863 .052336
88 .999391 .0349
89 .999848 .017452
90 1 0
91 .999848 -.017452
92 .999391 -.034899
93 .99863 -.052336
94 .997564 -.069756
95 .996195 -.087156
96 .994522 -.104528
97 .992546 -.121869
98 .990268 -.139173
99 .987688 -.156434
100 .984808 -.173648
101 .981627 -.190809
102 .978148 -.207912
103 .97437 -.224951
104 .970296 -.241922
105 .965926 -.258819
106 .961262 -.275637
107 .956305 -.292372
108 .951057 -.309017
109 .945519 -.325568
110 .939693 -.34202
111 .93358 -.358368
112 .927184 -.374607
113 .920505 -.390731
114 .913545 -.406737
115 .906308 -.422618
116 .898794 -.438371
117 .891007 -.45399
118 .882948 -.469472
119 .87462 -.48481
120 .866025 -.5
121 .857167 -.515038
122 .848048 -.529919
123 .838671 -.544639
124 .829038 -.559193
125 .819152 -.573576
126 .809017 -.587785
127 .798636 -.601815
128 .788011 -.615661
129 .777146 -.62932
130 .766044 -.642788
131 .75471 -.656059
132 .743145 -.669131
133 .731354 -.681998
134 .71934 -.694658
135 .707107 -.707107
136 .694658 -.71934
137 .681998 -.731354
138 .669131 -.743145
139 .656059 -.75471
140 .642788 -.766044
141 .62932 -.777146
142 .615662 -.788011
143 .601815 -.798635
144 .587785 -.809017
145 .573576 -.819152
146 .559193 -.829038
147 .544639 -.838671
148 .529919 -.848048
149 .515038 -.857167
150 .5 -.866025
151 .48481 -.87462
152 .469472 -.882948
153 .453991 -.891007
154 .438371 -.898794
155 .422618 -.906308
156 .406737 -.913545
157 .390731 -.920505
158 .374607 -.927184
159 .358368 -.93358
160 .34202 -.939693
161 .325568 -.945519
162 .309017 -.951057
163 .292372 -.956305
164 .275637 -.961262
165 .258819 -.965926
166 .241922 -.970296
167 .224951 -.97437
168 .207912 -.978148
169 .190809 -.981627
170 .173648 -.984808
171 .156435 -.987688
172 .139173 -.990268
173 .121869 -.992546
174 .104529 -.994522
175 .087156 -.996195
176 .069757 -.997564
177 .052336 -.99863
178 .0349 -.999391
179 .017452 -.999848
180 0 -1
181 -.017452 -.999848
182 -.034899 -.999391
183 -.052336 -.99863
184 -.069756 -.997564
185 -.087156 -.996195
186 -.104528 -.994522
187 -.121869 -.992546
188 -.139173 -.990268
189 -.156434 -.987688
190 -.173648 -.984808
191 -.190809 -.981627
192 -.207912 -.978148
193 -.224951 -.97437
194 -.241922 -.970296
195 -.258819 -.965926
196 -.275637 -.961262
197 -.292372 -.956305
198 -.309017 -.951057
199 -.325568 -.945519
200 -.34202 -.939693
201 -.358368 -.93358
202 -.374607 -.927184
203 -.390731 -.920505
204 -.406737 -.913545
205 -.422618 -.906308
206 -.438371 -.898794
207 -.45399 -.891007
208 -.469472 -.882948
209 -.48481 -.87462
210 -.5 -.866025
211 -.515038 -.857167
212 -.529919 -.848048
213 -.544639 -.838671
214 -.559193 -.829038
215 -.573576 -.819152
216 -.587785 -.809017
217 -.601815 -.798636
218 -.615661 -.788011
219 -.62932 -.777146
220 -.642788 -.766044
221 -.656059 -.75471
222 -.669131 -.743145
223 -.681998 -.731354
224 -.694658 -.71934
225 -.707107 -.707107
226 -.71934 -.694658
227 -.731354 -.681998
228 -.743145 -.669131
229 -.75471 -.656059
230 -.766044 -.642788
231 -.777146 -.62932
232 -.788011 -.615662
233 -.798635 -.601815
234 -.809017 -.587785
235 -.819152 -.573576
236 -.829038 -.559193
237 -.838671 -.544639
238 -.848048 -.529919
239 -.857167 -.515038
240 -.866025 -.5
241 -.87462 -.48481
242 -.882948 -.469472
243 -.891006 -.453991
244 -.898794 -.438371
245 -.906308 -.422618
246 -.913545 -.406737
247 -.920505 -.390731
248 -.927184 -.374607
249 -.93358 -.358368
250 -.939693 -.34202
251 -.945519 -.325568
252 -.951056 -.309017
253 -.956305 -.292372
254 -.961262 -.275637
255 -.965926 -.258819
256 -.970296 -.241922
257 -.97437 -.224951
258 -.978148 -.207912
259 -.981627 -.190809
260 -.984808 -.173648
261 -.987688 -.156435
262 -.990268 -.139173
263 -.992546 -.121869
264 -.994522 -.104529
265 -.996195 -.087156
266 -.997564 -.069757
267 -.99863 -.052336
268 -.999391 -.0349
269 -.999848 -.017452
270 -1 0
271 -.999848 .017452
272 -.999391 .034899
273 -.99863 .052336
274 -.997564 .069756
275 -.996195 .087156
276 -.994522 .104528
277 -.992546 .121869
278 -.990268 .139173
279 -.987688 .156434
280 -.984808 .173648
281 -.981627 .190809
282 -.978148 .207912
283 -.97437 .224951
284 -.970296 .241922
285 -.965926 .258819
286 -.961262 .275637
287 -.956305 .292372
288 -.951057 .309017
289 -.945519 .325568
290 -.939693 .34202
291 -.93358 .358368
292 -.927184 .374607
293 -.920505 .390731
294 -.913545 .406737
295 -.906308 .422618
296 -.898794 .438371
297 -.891007 .45399
298 -.882948 .469471
299 -.87462 .48481
300 -.866025 .5
301 -.857167 .515038
302 -.848048 .529919
303 -.838671 .544639
304 -.829038 .559193
305 -.819152 .573576
306 -.809017 .587785
307 -.798636 .601815
308 -.788011 .615661
309 -.777146 .62932
310 -.766045 .642788
311 -.75471 .656059
312 -.743145 .669131
313 -.731354 .681998
314 -.71934 .694658
315 -.707107 .707107
316 -.694658 .71934
317 -.681998 .731354
318 -.669131 .743145
319 -.656059 .75471
320 -.642788 .766044
321 -.62932 .777146
322 -.615662 .788011
323 -.601815 .798635
324 -.587785 .809017
325 -.573577 .819152
326 -.559193 .829038
327 -.544639 .838671
328 -.529919 .848048
329 -.515038 .857167
330 -.5 .866025
331 -.48481 .87462
332 -.469472 .882948
333 -.453991 .891006
334 -.438371 .898794
335 -.422618 .906308
336 -.406737 .913545
337 -.390731 .920505
338 -.374607 .927184
339 -.358368 .93358
340 -.34202 .939693
341 -.325568 .945519
342 -.309017 .951056
343 -.292372 .956305
344 -.275637 .961262
345 -.258819 .965926
346 -.241922 .970296
347 -.224951 .97437
348 -.207912 .978148
349 -.190809 .981627
350 -.173648 .984808
351 -.156435 .987688
352 -.139173 .990268
353 -.121869 .992546
354 -.104529 .994522
355 -.087156 .996195
356 -.069757 .997564
357 -.052336 .99863
358 -.0349 .999391
359 -.017453 .999848
360 rows selected.
SQL> -
Need pattern to display negative value in red
I am having one xdp form which contains multiples objects having some textfields mapped with some xsd.
requirement is if values is negative need to display it in red color as "-$18,970.50"
currently it is getting displayed as "$-18,970.50"
I have used pattern num{$z,zzz,zz9.99}
Is any ready made format available for this?Your requirement ("-$18,970.50") is not so common and may have to do major changes to meet this....I will start using a textField rather than a NumberField and Format using scripting not using out of box functionality. Changing text color to red is easy and can be easily done using scripting again.
I am sure you can try your self if you have some idea about JS or FC scripting....I can help you if you post additional requirements.....like...
1. Is the value prefilled / keyed in / calculated from other fields or combination of one or more?
2. Max and Min value allowed/ expected.
3. Any involvement of user actions there on? -
In query display sales negative values
Hi Friends
Iam Exicuting query based on these selection parameters
Sales Org: 5360
cal Month/Year: 04.2007 to 04.2008
When am exucuting the query above parameters some values display negative values like
04.2007 month display -39
07.2007 month display -253
the key-fig is sales turnover Qty display negative values
in BW side cube also display negative values
why display the negative values
anybody help meCheck the Source where data is coming if it is negative value. If source has positive value, in Cube also it should be positive.
Whatever value you have in your infoprovider, it will display in query. -
Using decode function without negative values
Hi friends
I am using oracle 11g
I have at doubt regarding the following.
create table Device(Did char(20),Dname char(20),Datetime char(40),Val char(20));
insert into Device values('1','ABC','06/13/2012 18:00','400');
insert into Device values('1','abc','06/13/2012 18:05','600');
insert into Device values('1','abc','06/13/2012 18:55','600');
insert into Device values('1','abc','06/13/2012 19:00','-32768');
insert into Device values('1','abc','06/13/2012 19:05','800');
insert into Device values('1','abc','06/13/2012 19:10','600');
insert into Device values('1','abc','06/13/2012 19:15','900');
insert into Device values('1','abc','06/13/2012 19:55','1100');
insert into Device values('1','abc','06/13/2012 20:00','-32768');
insert into Device values('1','abc','06/13/2012 20:05','-32768');
Like this I am inserting data into table for every 5 minutes Here i need the result like
output:
Dname 18:00 19:00 20:00
abc 400 -32768 -32768
to retrieve this result i am using decode function
SELECT Dname,
MAX(DECODE ( rn , 1,val )) h1,
MAX(DECODE ( rn , 2, val )) h2,
FROM
(SELECT Dname,Datetime,row_number() OVER
(partition by Dname order by datetime asc) rn FROM Device
where substr(datetime,15,2)='00' group by Dname.
According to above data expected result is
Dname 18:00 19:00 20:00
abc 400 600(or)800 1100
This means I dont want to display negative values instead of that values i want to show previous or next value.
Edited by: 913672 on Jul 2, 2012 3:44 AMAre you looking for something like this?
select * from
select dname,
datetime,
val,
lag(val) over (partition by upper(dname) order by datetime) prev_val,
lead(val) over (partition by upper(dname) order by datetime) next_val,
case when nvl(val,0)<0 and lag(val) over (partition by upper(dname) order by datetime) >0 then
lag(val) over (partition by upper(dname) order by datetime)
else
lead(val) over (partition by upper(dname) order by datetime)
end gt0_val
from device
order by datetime
where substr(datetime,15,2)='00';Please take a look at the result_column gt0_val.
Edited by: hm on 02.07.2012 04:06 -
Conversion error in Table control for Negative values
hello all,
Iam using table control with 6 columns and in that columns values are coming from Ztable. and out of that one column is of value which is input/output field and having negative value's also.type of that column is DEC.
Now when i run the report dump occurs showing error message as COnversion Error.
I think its because of negative value even the in attributes of that column i had selected With Sign checkbox.
Now when i run the report then if in Ztable negative value is there then i want to display negative value in table control also.
Please suggest me...
<removed_by_moderator>
Thanking you.
Regards.
Edited by: Hemant Baviskar on Sep 10, 2008 3:07 PM
Edited by: Julius Bussche on Sep 10, 2008 1:13 PMHemant
Refer to following link:
Table Control : Conversion error
Thanks
Amol Lohade -
Aligning result with negative values
Hi,
I have to align the amount in the report. My problem here is, when the report
displays negative values, the amount misaligned.
Can you help me on this one?
thanks!If you can treat the data shown in the smartform as CHAR, write the number with sign moved to the left.
you've got:
345,00
456,70
345,90-
is it right?
Insteda why don't you format like this?
345,00
456,70
-345,90
Hope this helps,
Regards,
Anna -
Stacked chart with negative values
Is it possible to create a stacked verticle bar chart that can display a negative value below the bottom line? Currently, all of my my charts are displaying negative values as if they were positive and the only way to know that the value is negative is to hover over the bar and read the hint.
Thanks in advance for your help,
ToddHi Todd,
Depending how you look at costs, it's not expensive.
A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
If you spend a couple of days trying to integrate with something else you easily went over that amount.
So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
Just my thoughts,
Dimitri -
Negative values in bubble chart?
Is it possible or not? I would like to be able to display negative values in another color than the positive ones... Is there a native way to do so, or should I dirty my hand in another itemRenderer?
It seems I get an error whenever I try to display negative values...
Where is that magic property?You can use FillFunction for the bubbleSeries. Inside fillFunction, the data value can be accessed and decision on color can be made upon your custom logic of +ve/ -ve values.
Tanu -
Showing negative values in parentheses
Hi Gurus,
As per clients request, I am trying to display negative values in parentheses.
I have editable input text field showing margin.
If the margin is negative value, then it is display in parentheses with dollar sign($).
my code is as below:
<af:inputText value="#{bindings.margin.inputValue}"
label="#{bindings.margin.hints.label}"
<af:convertNumber type="currency"/>
</af:inputText>
However, margin may be in other currency.
I want to get rid of the $ sign.
Please help how to hide $ sign.
Thanks
NagHi,
if you know the currency, then you can EL in trinidad-config.xml to switch the currency formatting accordingly.
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31973/ap_config.htm#sthref2825
Of course, this would not change it on a per row basis in a table.
Other options are as explained in the convertNumber tag doc
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_convertNumber.html
You could provide a code format pattern in which case the currency icon is not added. Or, you could provide a pattern and have it formatted as a number, not currency
Frank -
Negative Value Fields Not Displaying on Windows XP / Adobe Reader 10+
Hi,
We have some PDF forms for invoices. At the bottom of the forms, there is a table with various totals (items total, discount total, restocking fee, etc).
This is a pretty strange one to me. Here is what I am seeing:
If the dollar amount is negative in those totals, the dollar value will not show up. It's only negative values, but it's consistent across all fields in this totals table. I've confirmed this by manipulating values in the debugger. So we would expect the table to look like this:
Items Total: 10.00 USD
Discount: -1.00 USD
Amount Due: 9.00 USD
Instead we see:
Items Total: 10.00 USD
Discount: USD
Amount Due: 9.00 USD
Even stranger, this only happens in our quality and production environments, not in our development environment. It only happens when the user chooses to print preview, not if the output is triggered in the background.
To further add to the confusion, it does not happen on Adobe Reader 9 or lower. It does not happen on Windows 7. This problem is reproducible only if the user is running Adobe Reader 10 and Windows XP.
I'm reasonably confident this has something to do with ADS, but I don't even know where to start looking.
Thanks
BryanThe amount field in the interface is CURR 15.
On the form, the amount field is a decimal field BUT this field is hidden. The display field is defined as:
Thanks,
Bryan
Maybe you are looking for
-
Lost my USB connections after 10.4.11 upgrade
Quite frustrating this. When I went through the 10.4.9 to .10 I lost the ability to access my external HD for some reason. Through these very useful discussions I got that back by using Pacifist and something else I can't remember - but pretty much b
-
Problem in using methods in Interface, CharacterData in org.w3c.dom
Hi, I am trying to use two methods provided by CharacterData Interface. The getData() and getLength() methods. It is giving error when I use it like this String dat3 = myNode.getData(); Is there anything wrong in the way I am using it? Can somebody p
-
Hi, May I know what all necessary setup needs to be done for webservice scenario for PI 7.1. Issue: Created a SOAP -> XI -> JDBC scenario. There is no issue with the Receiver side, but in RWB the SOAP sender communication channel is inactive. Do we n
-
IMac is vulnerable to Shellshock
Hi, My iMac has is vulnerable to Shellshock. See test and results below. Please advise. Test: Is my machine vulnerable? Shellshocker.net provides two tests, one for each vulnerability, (CVE-2014-6271) and (CVE-2014-7169). On a Mac, open the Termina
-
Hi everyone Sorry, I'm a real beginner - I'm sure this will be quite straight forward. I have created a simple table on a blank document at the left hand side of a landscape page. I want to copy and paste the table in the right hand side of the docum