Crystal Report - NULL values mapped to Column names in reports

Hai,
I am using rows of data retrived from the SQL Server 2005 Express and sometimes the column names are NULL , I want to set a default value to this NULL value and set it as Data axes label / Group axes values, can some one please help me with this issue.
Thank you in advance.
Vijay

I resolved this issue myself, this can be set as other Data Labels, Group Label or Series Riser's properties too, left-click twice until the blank item is selected and then right click and select "Edit Axis Label" item and here it can edited with the new value(text).

Similar Messages

  • Why order by clause maintains column number values instead of column names

    why order by clause maintains column number values instead of column names ?

    we can use oder by 1,2 as column number
    UGNo one said that it can't be used. What's your point?
    To OP: It can be written with the column's 'select list positional number' just because for the support of laziness. :)
    There's no difference between 'ORDER BY name, address' and 'ORDER BY 1,2'.

  • Pro*C & SQLDA with NULL value for predicate column

    Hi: I am using a C program to update a table via a dynamic sql (method 4) and SQLDA. In the update statement predicate, I have place holders (as in TBLCOL=:C000). One of the columns in the predicate contains null values, so I set L[n] = 0, V[n] = pData (which pData[0] = '\0'), *(I[n]) = -1, and T[n] = 5 (for text). I cannot find the row that I know is there.
    I cannot change my statement to contain TBLCOL IS NULL, since I don't know ahead of time if I'm looking for rows with null values for this column. The Pro*C manual says that by setting the appropriate *(I[n]) = -1, it indicates to Oracle to simulate the "IS NULL" clause, and update the appropriate rows. In my case, I receive 1403 as SQLCODE when I use TBLCOL=:C000 vs TBLCOL IS NULL. What am I doing wrong? Thank you for your help.

    You should include these columns as well;
    ChangeType (see mxi_changetype)
    ValOwner (repository)
    UserID ("jobid=<>", usermskey, GUI (mmc), DG (dyngrp), reconcile)
    IdAudit  (This is the event task (add and del member for assignments)
    ParentAuditId (AuditID of parent which last updated the attribute, not consistent)
    ChangedBy (Holds the MSKEY of the user which last changed the attribute)
    ExpiryTime
    to make sure you get a fuller picture of the audit record.
    Your selection does not cover all events and descriptions
    br,
    Chris

  • Null value in a column

    i have few master tables in my database.
    Each master table has few records in it.
    Now i have to display all the columns which have a null value and this needs to be done by checking each record in that table.
    if there is any null value column for any row then it should be displyed.
    How it can be done using pl sql block?

    Hi,
    Are you looking something like this...
    SQL> Create Or Replace Procedure Column_Test(pTableName In Varchar2)
      2  As
      3   vSQLString Varchar2(32000);
      4   vCounter Number := 1;
      5   vNullable Number;
      6  Begin
      7   For r In
      8   (
      9    Select  COLUMN_NAME
    10    From USER_TAB_COLS
    11    Where TABLE_NAME  = pTableName
    12    And NULLABLE  ='Y'
    13   )
    14   Loop
    15   vSQLSTRING := 'SELECT Count(*) FROM ' || DBMS_ASSERT.sql_object_name(pTableName) || ' WHERE ';
    16     vSQLSTRING := vSQLSTRING || r.COLUMN_NAME || ' IS NULL And Rownum<=1';
    17   Execute Immediate vSQLSTRING Into vNullable;
    18   If vNullable>0 Then
    19   Dbms_Output.put_Line(r.COLUMN_NAME);
    20   End If;
    21   End Loop;
    22  End;
    23  /
    Procedure created.
    SQL> execute column_test('EMP');
    EMAIL
    MGR
    PL/SQL procedure successfully completed.
    SQL>

  • Avoid shrinking of null values in a column....

    I created an RTF template but one of the columns is shrinking if it has null values. Is there any way to avoid this.
    If I replaced the null values with a dot it's workig fine, but the users dont wanna see the dots.
    Any ideas !!!!!!!!!
    Thanks in advance.

    Hi
    Enclose the column in a Table. That should work
    Srini Ramanujam

  • Referencing an item value as a column name

    Hello
    I am trying to make an interactive report region source, where in the where clause there should be a column name that is built somehow like this : "table_name".:P9_LABEL (this doesn't work ;(ORA-01747: invalid user.table.column, table.column, or column specification) ). P9_LABEL is an item in the same page, which contains the column name. What is the right way to do this ?
    Tiina

    I think in that case you would need a function returning SQL Query and interactive reports (as far as I know) do not support that. Maybe, you could use a pipelined function for that (not sure). See this example on pipelined functions:
    http://apex.oracle.com/pls/otn/f?p=31517:146
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Using a parameter value as a column name

    Hi,
       I have created an command like this:
    update table1 set [Param.1] = '[Param.2]' where id = [Param.3]
    where:
    Param.1 = COL1
    Param.2 = Hello
    Param.3 = 1 (the primary key I want to change).
    When I run this SQL Action I get the following error message:
    java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification
       I have double checked the values of my parameters and they are all correct. There is a column named COL1, and its type is varchar2, and there is PK = 1.
       So, my question is: Is it a limitation of xMII (we can not take column names from parameters) or there is a mistake here?
    Thank you in advance,
    Nuno Cunha

    Hi Nuno,
    I see you are trying to perform Dynamic SQL execution in Oracle.
    In order to execute a Dynamic SQL you need to use the following syntax
    EXECUTE IMMEDIATE 'Sql Statement with any runtime params like cloumns, even table names too';
    And I guess you can use an Dynamic Sql only within a PL/SQL block.
    Please refer to the below link for more details
    [Dynamic SQL|http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96590/adg09dyn.htm]
    Hope this helps!!
    Regards,
    Adarsh

  • Is it possible to filter a table for NULL values in a column? (11g)

    I am using the out-of-the box table filtering provided by ADF Faces RC, but cannot figure out how to filter on Null value that are in the table.
    I have tried "IS NULL" and "= NULL", but nothing works.
    I have a backing bean that intercepts the filtered values before the filter is applied, and I can't set it there either.
    Does anyone know how this is accomplished?

    No, it is not. Worse, many people will view this in any old PDF viewer, most of which won't have overprint preview at all.
    You need to send very clear instructions about this, with specific screen shots - or better, avoid tools and constructions that require it. Probably some wording about "need to view with suitable professional tools" will make the message more palatable.

  • Get value based on column names for custom metadata field of Webcenter Content

    In UCM, I created a custom metadata field of type Text.  I then enabled optlist in that field.  I populate values to the optList, I am using a View.  The View has three columns.  Let us call them ID, Key, Value.  OptList displays the Keys in its list.  I then create a Content (Content ID: MyContent) in Webcenter Content and choose values from OptList for my new metadata field (MyField).
    From Webcenter Portal, I am populating a selectOneChoice with values of MyField in the Content ID: MyContent.  Remember from previous step, the values populated in selectOneChoice is the list of values selected from optList field MyField.  This optList is in-turn populated from View.  After the user selects a value in selectOneChoice, in Javascript, I need to alert a message in this format "value chosen - corresponding value from View of optList that populates MyField"
    I think an example will be useful:
    Here is a View that I created in Configuration Manager applet in Admin Applets of Webcenter Content:
    ID | State | Capital
    1 | North Carolina | Raleigh
    2 | California | Sacramento
    3 | Illinois | Chicago
    Then, I create a Custom Field (Name: MyField).  MyField is an optList the values are populated from View created above.  The internal value and display value are both State.  Then I Check-In a new content with Content Id: MyContent.  For MyContent, I select these values from OptList for MyField: {North Carolina, Illinois}.
    In my Webcenter Portal application, I create a Content Presenter Taskflow.  I configure it as a single item content presenter.  I assign MyContent as Content Id.  Then, in templateView, I get all values of MyField in MyContent and display them as selectOneChoice.  I created a javascript function that would get the value that user selected in selectOneChoice.  In the View created in Webcenter Content's Configuration Manager (above), there is a value corresponding to each value displayed.  So, for the selected value, I need to get the corresponding Capital and display it in my alert message.
    From Javascript, how can I get the value of Capital, given I have the value of State.

    Hi.
    The idea to achieve your requirement is next:
    Create a helper manage bean that will be call as Map access: #{stateUtil['Calofironia']} (it will return Raleigh). This value will be get calling GET_SCHEMA_VIEW_VALUES IDC service using RIDC in your manage bean.
    Pass the result of #{stateUtil['statename']} to your JavaScript function using <af:clientAttribute.../>
    I hope this information help you.
    Regards,

  • 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,
    Jatin

    I 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

  • Using values returned from SQL for Report column names

    I am building reports against our TFS development db.
    One of the reports tracks days spent (Dwell Time) in various status categories (eg: New, Assigned, In Development, Hold, etc) for a given "ticket".
    For a fixed list of values from {Work Item].System_State, I can send the results (days in Assigned) to the column named (Assigned) for each status for each event in the [Work Item History], and then sum them for each ticket as:
    Ticket ID      New          Assigned       InDev       etc
    1230001        2                  0                 0          ...
    1230001        0                  1                 2          ....      
    SUM            2                    1                2         ....            
    However, I have many different Projects, each of which use their own Status names.
    I don't want to duplicate the same basic report, if I can avoid it.
    How can I name and generate this data for the unique Status list for each Project?
    Simplest analog is:  name = First(Fields!Status.Value, "TFSdb")
    and allows value for a column name (category) as: =IIF(Fields!Status.Value = First(Fields!Status.Value, "TFSdb"), Fields!Days.Value, 0)
    However this fails beause:
    1. It only delivers the FIRST status value, and,
    2. I cannot SUM an expression which is itself an aggregate (using First).

    RRapport,
    Is this still an issue?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Sql Loader INFILE name value in table column Value

    Hi,
    Here is my Sql Loader Script
    LOAD DATA
    infile '%1'
    APPEND INTO TABLE XX_SUPPLIER_UPD
    FIELDS TERMINATED BY ";" OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    ACTION Char
    ,ADDRESS_TYPE Char
    ,REGION Char "LTRIM(RTRIM(:REGION))"
    ,PO_BOX Char
    ,,WWW_ADDRESS Char
    ,status Char "NVL(:status,'X')"
    ,filename Char "replace(:infile,'\"','')"
    I am getting the infile name as the parameter and i want to insert that parameter value in the column name fillename. Can any one guide me to how to do.
    Cheers!
    Jayaraj.S

    If you were to use external tables instead of SQL*Loader, you can dynamically change the location of the external table (i.e. the filename) using a simple ALTER TABLE statement.
    External tables also mean that all the control is inside the database rather than relying on external utilities and external scripts.
    ;)

  • Grand Total with few NULL values in column.

    Hi All,
    In my requirement, I have few null values in the column and I have to show those null values as it is( can't use IfNull function).
    Can I able to grand total in such scenerio..?
    I am using OBIEE 11.1.1.3
    Thanks,
    Archie

    HI Archie,
    Are you using the "Grand Total" option that comes with the view?.I don't think there will be any issue , it will ignore the null values while calculating the total.
    Rgds,
    Dpka

  • SQL Loader: Null value in column

    Have a tab delimited file, in UNIX
    Some of the inbetween columns have null values
    The records are failing to load with null column values.
    I tried:
    col10 nullif col10 ="(null)"
    My control file is:
    load data
    infile 'abc.txt'
    into table XX_data
    fields terminated by X'09' optionally enclosed by '"'
    TRAILING NULLCOLS
    ( col1,
    col2 nullif col2 ="(null)",
    col3)

    Sample data is tab delimited file. For some reason, it has problem reading the second date (+time) column in the same record when there are null values in preceding columns. It says:
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    Col1     Col2     Col3     Col4     Col5     Col6     Col7     Col8     Col9     Col10     Col11     Col12
    2000-01-03 10:38:05.733000000          XX AA Change     0     DOG     CAT     R     2000-01-03 10:38:05.733000000     GIRAFFE          MONKEY     COW

  • ORA-01405 in Pro*C Although no Column has NULL Value

    I have a Pro*C program that fetch a cursor from Oracle 8.1.5 into host variables without indicators. I have tried the SQL statement and the SQL will never return any NULL value in any column, however I still got the ORA-01405 error. Any one has any clue?

    Use Indicator variables and let me know if it solves your problem.
    http://docs.jcu.edu.au/oracle/doc/server.804/a58233/dev.htm#2239

Maybe you are looking for