× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2017-06-02T00:54:09Z  · last modified 2017-06-02T19:07:50Z

getColumnBackgroundColorRGB() of an index which does not contain in result set gives NPE


Dev
Kin-Hong Wong
kin-hong
QA
Tariq Rahiman
tariqrahiman
Priority Major
Complexity Unknown
Component Open API - Data
Version 19.0
Version: 19.0.0-alpha-24
Build #: 54570
Build Date: 2017-Jun-01 02:52:24 PM
 
getColumnBackgroundColorRGB() of an index which does not contain in result set gives NPE
 
1. Trying to get column background settings for a column which is not set gives Wrapped java.lang.NullPointerException
2. In the AquaScript below, I set color for Profit with settings.setColumnBackgroundColor("Profit", 232, 204, 215)
The actual column is column: [18] AQColumnDescriptor.getName(18): [Profit]
 
3. Now, i use 
 
var bg = settings.getColumnBackgroundColorRGB(0);
aqua.console.println(bg);
 
4. This gives Wrapped java.lang.NullPointerException
 
Expected Result
Error message which says Parameter 'index' is not set instead of NPE.
 
AquaScript
==========
 
// create a dataset settings
var settings = aqua.report.newReportDataSetSettings();
settings.setTitle("Report with custom settings");
settings.setColumnNumericFormat(18,"$#,##0.00");
settings.setAltRowBackgroundColor("FF0000");
settings.setShowAltRowColor(false);

settings.setColumnBackgroundColor("Profit", 232, 204, 215);
settings.setColumnBackgroundColor("Tax Amount", 245, 222, 179);
settings.setColumnBackgroundColor("State",245, 222, 179);
settings.setColumnForegroundColor(2,243,123,124);

var bg = settings.getColumnBackgroundColorRGB(1);
aqua.console.println(bg);

 

2 attachments

Issue #15297

Closed
Fixed
Resolved 2017-06-02T03:59:23Z
 
 
Completion
No due date
Fixed Build 19.0.0-alpha-25
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017