Show null values as
Hi,
I am running Discoverer Plus 10.1.2.45.46c. We are running into some issues with the Show Null values as option under Tools/Options/Sheet tab. If you open an existing workbook that has this value set to NULL you can't change your output to show as ' ' for example.
Has anybody else ran into this ? Is there a work around ?
Thanks
Dennis
As per bug 4330751 - workbooks created in desktop with the option for nulls set to "" will display as NULL in plus. There is a new worksheet setting for nulls that you can modify in plus - Edit->Worksheet Properties->Crosstab/Table Format tab.
The pref.txt setting will be honored for new plus workbooks.
Similar Messages
-
'Show Null Values as' variables not replaced
I need the null values to display as small as possible so there is an image in my image repository, 1x1px, transparent, that I wanted to display in these null places, but when I inserted something like <img src="&COMPANY_IMAGES.null.gif"> or <img src="#COMPANY_IMAGES#null.gif">, the COMPANY_IMAGES was not replaced with the usual long call, it was just like inserted in the 'Show Null Values as' field.
I have workarounds
1) use a static image, that is publicly available - making the app's appearance dependant on that publicly available image.
2) select columns with nvl(NULLABLE_COL, '<img src="#COMPANY_IMAGES#null.gif">'), which is just a thing, that could be easily forgotten in some place and makes the query even more obscure than it already is.
I really like neither of them. Is there some other way to call COMPANY_IMAGES in that field or is it just a place where isn't the substitution string available?wow. you're right about that substitution not being made in that "Show Null Values as" field. i'll log that issue in a sec. you can work around the issue for now by simply doing that substitution yourself. so if you run this...
select :WORKSPACE_IMAGES FROM DUAL
...from your sqlWorkshop, you'll see that WORKSPACE_IMAGES is substituted with a call like...
wwv_flow_file_mgr.get_file?p_security_group_id=123456&p_fname=
...(where 123456 is my :WORKSPACE_ID). if you wanted to call an image called my_image.jpg in that "Show Null Values as" field, you could just enter the string...
wwv_flow_file_mgr.get_file?p_security_group_id=123456&p_fname=my_image.jpg
...right in there, and you'd find your images rendered correctly. the only thing to watch out for is the hard-coded :WORKSPACE_ID in your field. you'd have to mind at number if you deployed your app in a different workspace.
hope this helps,
raj -
DBA_USERS showing null values in PASSWORD column
Hi,
We are running a select query from dba_users table as follows :
select username from dba_users
where to_char(expiry_date, 'DD-MON-YY') =
to_char(sysdate + &expire_day, 'DD-MON-YY')
and password not in ('EXTERNAL','account-locked')
and account_status <> 'LOCKED';
This query was running fine with 10g Version, but after Oracle was upgraded to 11G recently, above query does not return any rows.
Also, when we remove the condition "and password not in ('EXTERNAL','account-locked')", it works.
And the values for the PASSWORD column shows null.
Is this related to Oracle upgrade ?
Kindly help..
Thanks,
JatinI have the same behavior in my 11g db (I have nulls in password column too) as checking docs:
[url http://download.oracle.com/docs/cd/E11882_01/server.112/e24448/statviews_5081.htm#REFRN23302]Oracle® Database Reference 11g Release 2 (11.2) - DBA_USERS
I can see:
USER_USERS describes the current user. This view does not display the PASSWORD, PROFILE, PASSWORD_VERSIONS, EDITIONS_ENABLED, or AUTHENTICATION_TYPE columns....
PASSWORD VARCHAR2(30) This column is deprecated in favor of the AUTHENTICATION_TYPE columnIt seems you need to get this info from somewhere else.
Edited by: Kecskemethy on Oct 3, 2011 2:36 AM -
Problem when passing string array in sessions showing null value
i am trying to pass a string array but it is showing me the null value
i think the the problem is seem to be in session.settAttribute("subject['"+i+"']",subject) in 2.login_action.jsp
or in String sub1=(String) session.getAttribute("subject[0]"); in 3.user_home.jsp
i have following three pages
1.login.html
2.login_action.jsp
3.user_home.html
1.login.html
<html>
<body>
<form method="post" action="login_action.jsp">
Username<input type="text" name="username"></input>
<br>
Password<input type="password" name="password"></input>
<input type="submit" value="login"></input>
</form>
</body>
</html>
2.login_action.jsp
<%@ page contentType="text/html"%>
<%@ page import="java.sql.*" %>
<%!
String user,pwd;
String subject[]=new String[10];
int i,totalsubject;
%>
<%
try
user=request.getParameter("username");
pwd=request.getParameter("password");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
PreparedStatement ps = con.prepareStatement("select password from users where username='"+user+"'");
ResultSet rs = ps.executeQuery();
if(rs.next())
if(rs.getString("password").equals(pwd))
session.setAttribute("username",user);
PreparedStatement ps2 = con.prepareStatement("select subject_id from allot_teachers where staff_id='"+user+"'");
ResultSet rs2 = ps2.executeQuery();
while(rs2.next())
i=0;
subject[i]=rs2.getString(1);
// if i display here the subjects in out.println(subject[i]) it is working fine
// but in next redirected page it is showing null
session.setAttribute("subject['"+i+"']",subject[i]);
//out.println(subject[i]);
i++;
response.sendRedirect("user_home.jsp");
else
out.println("error invalid username or password");
else
out.println("error invalid username or password");
con.close();
catch(Exception e)
out.println(e);
%>
3. user_home.jsp
<%@ page contentType="text/html"%>
<%@ page import="java.sql.*" %>
<html>
<%
String user,pwd,cat,cat1;
String username=(String) session.getAttribute("username");
if(username==null)
response.sendRedirect("login.html");
//just tried for first two subjects
String sub1=(String) session.getAttribute("subject[0]");
String sub2=(String) session.getAttribute("subject[1]");
//here it is printing null
out.println(sub1);
//here it is printing null
out.println(sub2);
%>
<form method="post" action="logout.jsp">
<input type="submit" value="Logout"></input>
</form>
</html>
Cheers & Regards
sweetyThe name in getAttributre doesnt match the name in setAttribute.
Note "subject[0]" is a string containing 10 chars, "subject" is a string containing 7 chars.
Here is your code:
session.setAttribute("subject",subject);
String sub1=(String) session.getAttribute("subject[0]"); -
Showing Null values in Cross-tabs
Post Author: merv
CA Forum: Charts and Graphs
I've created a cross-tab report but I will like for the report to list the rows will null values as well as the rows with values. I need to do this because I cannot create one cross-tab with all of the necessary fields, so Iu2019ve created 3 cross-tabs and placed them side by side. Or is it possible to link the cross-tabs. Thanks
I would like to see the following
Total
A
A-
A+
B
B-
B+
C
C-
C+
D
Total-1
Total-2
Canada
MATH30800
24
12
0
0
4
0
4
0
0
0
0
Canada
MATH30800
24
Canada
MATH30800
0
Nigeria
MATH201
12
8
2
2
0
0
0
0
0
0
0
Nigeria
MATH201
0
Nigeria
MATH201
12
Poland
CHEM31800
8
0
1
0
0
0
3
1
0
0
0
Poland
CHEM31800
8
Poland
CHEM31800
8
Puerto Rico
MATH190
0
0
0
0
0
0
0
0
0
0
0
Puerto Rico
MATH190
1
Puerto Rico
MATH190
0
Panama
ENGR10300
39
3
4
1
2
4
6
3
3
0
1
Panama
ENGR10300
0
Panama
ENGR10300
39
Romania
MATH31601
4
2
1
0
0
0
0
0
0
0
0
Romania
MATH31601
4
Romania
MATH31601
0
Afghanistan
EAS10600
11
0
4
0
0
1
1
1
0
0
0
Afghanistan
EAS10600
0
Afghanistan
EAS10600
11
Bahamas
HS-COURSE
0
0
0
0
0
0
0
0
0
0
0
Bahamas
HS-COURSE
27
Bahamas
HS-COURSE
0
Brazil
HS-COURSE_2
1
0
0
0
0
0
1
0
0
0
0
Brazil
HS-COURSE_2
0
Brazil
HS-COURSE_2
1
instead of what's bellow
Total
A
A-
A+
B
B-
B+
C
C-
C+
D
Total-1
Total-2
Canada
MATH30800
24
12
0
0
4
0
4
0
0
0
0
Canada
MATH30800
24
Nigeria
MATH201
12
Nigeria
MATH201
12
8
2
2
0
0
0
0
0
0
0
Poland
CHEM31800
8
Poland
CHEM31800
8
Poland
CHEM31800
8
0
1
0
0
0
3
1
0
0
0
Puerto Rico
MATH190
1
Panama
ENGR10300
39
Panama
ENGR10300
39
3
4
1
2
4
6
3
3
0
1
Panama
ENGR10300
0
Afghanistan
EAS10600
11
Romania
MATH31601
4
2
1
0
0
0
0
0
0
0
0
Romania
MATH31601
4
Brazil
HS-COURSE_2
1
Afghanistan
EAS10600
11
0
4
0
0
1
1
1
0
0
0
Bahamas
HS-COURSE
27
Brazil
HS-COURSE_2
1
0
0
0
0
0
1
0
0
0
0Post Author: azanobrown
CA Forum: Charts and Graphs
What I've done in the past is create a new formula for your "value" field similar to this and put it in your cross-tab:if {original value field} is "" then [0] else {original value field}the purpose is to create a record value (e.g. 0) where there is no record. I hope that this helps. -
Show NULL values in an SQL query
Hi,
Please excuse my ignorance, but I am very green in Oracle.
I am trying to create a simple function in PHP to return a list of the entire table row in an Oracle DB, however no matter I do Oracle skipps the columns with NULL values, which means that I don't even get the number of the columns corect. The query is as simple as it can get:
SELECT * FROM table_name;
I've tried NVL, DECODE and god knows what else. Please give me a hand with this.
Cheers,
PimmyOnce you can use ODBC it should be possible to use MySQL with HS:
http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
What concerns the licenses: We are not referring to transparent gateways but to heterogenous services (generic connectivity) which come free with the DB:
http://www.oracle.com/technology/products/gateways/faq.html#A707 -
Problem in sending drop down list value to jsp page showing null value
i am trying to send a drop down list value from client side to a jsp page but getting null value
this is first page where i have accessed data from database and putted it in a drop down list
<select name="sub">
<%
while(rs2.next())
cat=rs2.getString(1);
%><option value="<%=cat%>"><%=cat%></option><%
}%></select>
<input type="submit" value="Go"></input>
now on submit i am going to another page
where i want the selected value from drop down list to be printed
i have used there
<%
String subject= request.getParameter( "sub.value" );
out.println(subject);
%>
but it is printing null here what is the problem that i m facing
thanx & reagrds
sweetyhow to generate dynamically names for text boxes
i am generating text boxes in while loop when selecting data from database
while(rs1.next())
name=rs1.getString(1);%>
<tr>
<td>1</td>
<td><%out.println(name);
//i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
%></td>
<td><input type="text" name="????"></input></td>
<td><input type="text" name="????"></input></td>
<td><input type="text" name="????"></input></td>
<td><input type="text" name="????"></input></td>
</tr><%
the structure is like
stud_id | attended theory | conducted theory | ateended practical | conducted practical
where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
so i am facing problem in generating names for textboxes how to do that
so that those can be updated in database for particular student
Thanx & Regards
sweety -
How to show NULL value when import data into excel
when retrieve data from sql server and import these data into excel.
data source is like : select a ,b c from tab
if a,b,c is nullable. when import these NULL value into excel, it becomes blank value, there is nothing in the excel cell.
if i don't want to use select isnull(a,'NULL') as a to convert the values.
what's else can i do to make it? is there a way to prevent changing the NULL to blank ?
or is there an easy solution to replace all the blank value to NULL in the excel ?help me ~
-
Fact column shows null values in report
Hi Experts,
I have a requirement where i need to create report from a Dimension Dim1 and 2 Fact Tables Fact1, Fact2 with the columns as Dim1.State, Fact1.Price, Fact1.Source,Fact2.Market Value. The two fact tables are at different granularity, when i run the report it is issuing the query only from Fact 1 and putting NULL for the column from Fact 2. Can someone guide me on how to approach.
Thanks,
ChandrasekharWelcome to the magic world of content level.
You give yourself the answer to your issue: "the two fact tables are at different granularity" (95% of chances you are just on that case for your issue).
Time for some reading: https://greatobi.wordpress.com/2013/09/10/the-single-most-important-thing-to-know-about-the-obi-rpd/ -
Error in Open Dataset. Application server file shows null value .
Dear Gurus,
As with my previous problem, I am now getting value from SAP Directory in AL11. But problem is-
1. When I try to get Quantity or Currency field, it shows runtime error while uploading in App. Server. So, I used Char data type variable to store currency field and concatenate these in a string type variable.
LOOP AT it_mseg INTO wa.
move it_mseg-erfmg to amount. " amount is a char type variable.
CONCATENATE it_mseg-mblnr it_mseg-mjahr it_mseg-matnr amount it_mseg-werks it_mseg-lgort INTO ld_string.
TRANSFER ld_string to filename.
But I am getting only 0 for all the records. If I directly transfer wa to filename, it shows values. But when i am passing string, all value shows 0. Plz give me solution.
Thanks,
With regards,
Tripod.Hi,
use
WRITE it_mseg-erfmg to amount.
or, assuming that the currency is WW_WAERS,
WRITE it_mseg-erfmg CURRENCY WW_WAERS to amount. -
How to remove NULL values from crosstab sheet in Viewer/Plus.
I created a worksheet as crosstab. The sheet shows blanks in Desktop when there is no data in the cell, but the same sheet is showing NULL in Viewer. Is there any solution to make NULL as 0 or blank in Viewer?
Thank you.Here you can find solution for this issue and its works for me......
Show null values as -
Null value in Nested table of nested table for xml guru Steve Muench
The procedure I am using takes xml document with nested levels and insert into single table using DBMS_XMLSave.insertXML.
I am able to insert into table without any error message but when I am selecting row from table, it is showing null values in all the column of nested table's inner nested table.
When I am removing nested table's nested table by replacing with object type, it is showing data of object type for the first occurance and ignoring the rest nested occurance.
Help is greatly appreciated.
Below is the sql I used to create objects and table:-
Create or Replace Type addressType as Object
Line_one varchar2(40),
Line_two varchar2(40),
City Varchar2(30),
State Varchar2(2),
zip Varchar2(10)
Create or Replace Type ce_reqType as Object
Status varchar2(25),
Status_date Date,
type_code Varchar2(25),
review_begin_date Date,
assigned_review_date date
Create or Replace type ce_reqListType
as table of ce_reqType;
Create or Replace Type LicenseType as Object
type_code Varchar2(10),
license_number Varchar2(16),
ce_requirements ce_reqListType
Create or Replace type LicenseListType
as table of LicenseType;
Create table IndividualType
individual_id Number(9),
social_security_number Varchar2(9),
Last_name varchar2(40),
First_name Varchar2(40),
Middle_name Varchar2(40),
Birth_date Date,
address addressType,
Licenses LicenseListType
nested table licenses store as licensestab
(nested table ce_requirements store as lic_ce_reqtab);Maddy wrote:
dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)Because instead of adding an element to bookset collectionto are assigning (ergo replacing) it a collection containing last fetched book. Use:
declare
bookset book_table;
ln_cnt pls_integer;
begin
bookset := book_table(book_obj('madhu','kongara','sudhan'));
dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1
bookset := book_table(); --> Assigning back to NULL.
dbms_output.put_line('The count is '||bookset.count); --> I can see count as 0
for rec in (select * from book) loop --> Now Looping two times.
dbms_output.put_line(' name > '||rec.name);
bookset.extend;
bookset(bookset.count) := book_obj(rec.name, rec.author, rec.abstract);
end loop;
dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)
end;
The count is 1
The count is 0
name > Harry Potter
name > Ramayana
The count is 2
PL/SQL procedure successfully completed.
SQL> Or better use bulk collect:
declare
bookset book_table;
ln_cnt pls_integer;
begin
bookset := book_table(book_obj('madhu','kongara','sudhan'));
dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1
bookset := book_table(); --> Assigning back to NULL.
dbms_output.put_line('The count is '||bookset.count); --> I can see count as 0
select book_obj(name,author,abstract)
bulk collect
into bookset
from book;
for i in 1..bookset.count loop --> Now Looping two times.
dbms_output.put_line(' name > '||bookset(i).name);
end loop;
dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)
end;
The count is 1
The count is 0
name > Harry Potter
name > Ramayana
The count is 2
PL/SQL procedure successfully completed.
SQL> SY. -
Cross Tab Report...Calculated Column shows NULL
Hi there
I have one calculated field which is based on some calculation when I run my report in Discoverer Desktop I can see the 0 in NULL values in all rows.
But when I run this report in Discoverer Plus/Discoverer Viewer it shows me Null for some values or some values I can see the zeros.
I have checked the WorkBooks options its all set to 0.0.
1)
Edit---> WorkSheet Properties ---CrossTab Format ---Show Null values as 0.0
2)
Tools---> Options---> Sheet--->Show Null values as 0.0
3)
I have settings in Pref.txt which means Some reports I want to see the NULL values...
Pref.txt
NullValue = "NULL"
Do you have any idea..
Thanks
ASIMWell, I don't really have an idea what is happening, but i have a solution to hide nulls.
You can create an exception on the columns.
when column_name = Null then change the forecolor to match with the backcolor.
This will make the text and box of same color and will hide nulls.
Cheers :) -
Lexical parameter in select statement showing null or column name in xml tag instead of value
Hi,
i am using lexical parameter in report select statement as
Select &order value from oe_order_headers_all a where order_number ='7889'
and setting : order:='a.order_number'; in after parameter form trigger.
lexical parameter intial value set to null
when i run this report , its not showing order number in output ,its showing null or a.order_number as text.
Please help.try this
Select &order data_show
from oe_order_headers_all
where order_number ='7889'
and setting :order:='order_number'; in after parameter form trigger.
Hope this helps
Hamid -
Report is showing "null" string for null values.
hi ,
I am new to BI Publisher and creating a report in BI Publisher. In the result set for null values, report is printing as "null". I checked the query , it gives blank (empty value) data for null values. But in report it is coming as "null" value (string "null"). I require to show the report as blank data for null values. Can you please help me to find solution for this ?.
Thank you very much in advance.
Regards
Gayathri.it shouldnt happen like that
try these
<?xdoxslt:ifelse(ADDRESS3!='',ADDRESS3,'')?>
or
<?xdoxslt:ifelse(ADDRESS3!='null',ADDRESS3,'')?>
if those didnt work send me your template and xml to my email i can try that at my side .
Email [email protected]
Maybe you are looking for
-
Download error 9006, internet intermittent.
download error 9006. internet intermittent. Tthis is normal for where we live, it just drops for a second and everytime it drops you have to start over with the download, is there a way to pickup where it dropped off?
-
As a learning resource, I want to convert the Page.Resources and Grid.DataContext to a class structure. Unfortunately I have no idea what route to take. I have looked at the MSDN documentation and found 3 possible ways I could approach this, although
-
DynamicStreamingResource and Error: Playback failed with certain media
I'm running into an issue with a DynamicStreamingResource wherein, with certain media, I receive a Playback failed error after about 20 seconds of playback. The error does not appear with these assets, which play back perfectly: _dynamicStreamingReso
-
1.5.5 Cannot add user defined report to folder
Hello, the context menu on folders in user defined report show only two options: copy and export. No way to add new folders or reports. I migrated my settings from 1.5.1. Though I can add a new folder directly at the root of user defined reports. But
-
Just bought my first imac!
Hello all, I just purchased my first imac. I got the higher end 27" iMac. I'm a little nervous about even opening the box lol, because it is bigger than it appears to be! I'm afraid that it might not fit on my desk. I am not totally new to Mac I work