Broken image because of null value

I’m displaying a SQL query type report.
In the Column Formatting section, I'm displaying an image from the database using the following HTML expression [img src=”/i/#NC#_bullet.gif” /] (using angle bracets, of course). However, one of the columns in the database contains a null value and is returning as a broken image. Any advice on how to correct this problem?
Message was edited by:
user445944

use the nvl function and add an image to be displaed in null contition
Aris dc

Similar Messages

  • Wants to eliminate null values from mapping queue

    Hi All,
    How can I eliminate null values from 'display queue' of a target mapping.
    Can it be done through a UDF? Kindly help.
    Because of null value, it is creating issue in the mapping logic.
    Thanks,
    John

    We can remove null values using node functions.
    Check the below thread:
    Re: How to remove [] form Message Mapping Display Queue
    Or
    Try with the below UDF:
    for (int i=0; i<a.length;i++)
    if (! a<i>.equals(ResultList.SUPPRESS) || ! a<i>.equals(""))
    result.addValue(a<i>);
    Thanks,

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Reading Numeric UDF null value in DI

    We have a UDF of Numeric(4) that can be NULL, 0, 1, 2, etc. We try to read it from DI, and if it is NULL, then set the result to be -1 (the default value we difined), so we can differentiate NULL and 0.
    The C# code we have look like this:
    int LineNumber = -1;
    SAPbobsCOM.Company oCompany;
    // Code to get Company
    SAPbobsCOM.Documents oDoc = oCompany.GetBusinessObject(BoObjectTypes.oQuotations);
    oDoc.GetByKey(100); // Get the document by DocEntry
    LineNumber = (int)oDoc.UserFields.Fields.Item("U_XX_LN").Value;
    The problem is LineNumber gets 0 even if in the database U_XX_LN is NULL. We tried the code below and got the same result because oDoc.UserFields.Fields.Item("U_XX_LN").Value.ToString() always return '0' if it is NULL.
    if (string.IsNullOrEmpty(oDoc.UserFields.Fields.Item("U_XX_LN").Value.ToString()))
        LineNumber = -1;
    else
        LineNumber = (int)oDoc.UserFields.Fields.Item("U_XX_LN").Value;
    The question is: how can we set it to default -1 if in the database the value is NULL?
    Thank you,
    Grace

    Hi Grace,
    Unfortunately the DI API automatically converts database null values to a default value for the datatype (eg null for numeric becomes 0 and null for strings is an empty string). If you want to differentiate between null and zero you will need to query the table using the isnull command rather than reading the table through the UserTables object:
    oRecordSet.DoQuery("select isnull(U_XX_LN, -1) as U_XX_LN from [@MYTABLE] where Code = 'MYCODE')
    This will convert the null value to a -1 in the recordset so you can tell the difference between nulls and zeros.
    Kind Regards,
    Owen

  • Null Values from a Data Source

    This is more of an implementation question than a
    troubleshooting question. Also, since I've been unable to find any
    documentation on this I was wondering if anyone has come across
    this behavior or found a bug with it.
    Yesterday I was working on an application to explore some
    proof of concept aspects of Flex for an application I'm developing.
    I started running into a problem with Flex Data Services throwing
    back an 'Unknown Property: "clientaddress1"' error whenever I tried
    to update data. It seemed that whenever I tried to update a record
    in the database it would thrown the Unknown Property error. I spent
    a good chunk of the day trying to figure out what was causing this
    and finally gave up and called it a day.
    This morning I was reassessing what the problem was and
    trying to find the differences between my database and my code and
    I stumbled upon the fact that I could add no records and modify
    them without a problem, however if I tried to access an existing
    record and update it I'd get the Unknown Property error.
    I start analyzing the database and found that I'd configured
    the database to use null values for empty values and the records
    that I created with the database had null values, however, any of
    the values inserted from Flex were inserted as blank values. As
    matching my action script class as clientaddress1 = ""; So, upon
    further testing I fould that Flex was not processing the null
    values correctly, so that when it came back and rightly generated a
    Conflict Error...and then called AcceptServer() it was unable to
    find the clientaddress1 property of the class.
    Also, if any of the properties in the database are null it
    throws the same error. Basically it seems to have invalidated the
    object just because one value was null. So if all of my values from
    the DB are set to something and only one field is set to null it's
    still throwing the error on the first alphabetical item of the
    properties.
    I can resolve the problem by not using null values in the
    database, but...what sort of effect would this have on someone
    working with a large legacy database that extensively uses nulls
    for undefined values?
    Also, if a Flex guru could explain the reasoning for this
    happening I would greatly appreciate it!
    Best regards,
    Chris Maloney

    I realize that I didn't clarify that I am using ColdFusion
    for getting the data. This class was generated by the Create CFC
    wizard in Flex Builder.
    package com.generated
    [Managed]
    [RemoteClass(alias="components.generated.clients.Clients")]
    public class Clients
    public var clientid:Number = 0;
    public var clientfirstname:String = "";
    public var clientlastname:String = "";
    public var clientaddress1:String = "";
    public var clientaddress2:String = "";
    public var clientcity:String = "";
    public var clientstate:String = "";
    public var clientzip:String = "";
    public var clientphone:String = "";
    public var clientemail:String = "";
    public function Clients()
    }

  • About xml and null values in 10g

    Hi, I have an UCM GetFile webservice component wich receives 4 arguments, two of them are null values (rendition and extraPops), and the xml request generated by obpm is:
    <GetFileByName xmlns="http://www.stellent.com/GetFile/">
      <dDocName>V_123410</dDocName>
      <revisionSelectionMethod>latestReleased</revisionSelectionMethod>
      <rendition/>
      <extraProps/>
    </GetFileByName>The problem is: On UCM web service, an empty tag like <rendition/> is treated like a "empty string" value, instead of a null value, and then the response i get isn't the expected.
    What I want do to is change this behavior, and when I put null values in requests, the obpm should not write those tags. Is that possible?
    Should be like that:
    <GetFileByName xmlns="http://www.stellent.com/GetFile/">
      <dDocName>V_123410</dDocName>
      <revisionSelectionMethod>latestReleased</revisionSelectionMethod>
    </GetFileByName>Thanks!

    Hi,
    I have question regarding aggregates. It's possible to read data from BW aggregates? We have webi reports on a SAP BW multi cube and we would like to optimize retriving query.
    >> Because you are using the BW Query as the source all the items that you have done so far in terms of aggregation, indexing, ... is all valid and there are no specific steps required to leverage it with Web Intelligence. Make sure the aggregates are "correct" meansing that they do reflect what you are asking for in the Web Intelligence query panel
    How can we filter in webi query null (#) values. If we create condition that some variabe is diffrent from # we still get null (#) values in report.
    >> You should be able to create a variable. in case you tried that already could you be more specific ?
    thanks
    Ingo

  • Null value in poplist

    Hi,
    I'm using forms6i, I'm having a poplist in my form, which i populate in when-new-form-instance.
    So when i open the form, and try to select one value, i'm seeing one null value, and if i select one value from list and again try to change the value then the previous null value is gone.
    So to avoid that in when-new-form-instance itself , i assigned one value to the poplist using Get_List_Element_Value.
    But the problem is since i'm assigning value, the form goes in insert status, and so even if i dont enter any valuees and try to exit, it is asking Close Form? (because i have few non-null items also).
    How can i get one safe solution (like as it work when we assign some static values to the poplist).
    ie i dont want nulls to be seen iin the list also i dont want the close form? message
    I tried one solun by setting the form status as new again in w-n-f-i. But since i have multirecord block, this problem comes with every record.
    Please suggest one better solution

    Hi Divya
    why don't u try putting the same code of the w-n-f-i in when-validate-record or when-new-record-instance may be it work...
    if not working pls share us the code what about an example:
    declare
    rg_name varchar2(40):='r_area_record1';
    rg_id Recordgroup;
    LIST_ID ITEM;
    errcode NUMBER;
    begin
    rg_id:=Find_Group(rg_name);
    if Id_null(rg_id)
    then
    rg_id :=Create_group_from_query(rg_name,
    'select VC_ID , research_area from research_info
    where proff_id= 9');
    LIST_ID:=FIND_ITEM('TRY_BLOCK.TRY');
    end if;
    errcode:=populate_group(rg_id);
    POPULATE_LIST(LIST_ID,RG_ID);
    end; Regards,
    Abdetu...
    Edited by: Abdetu on Jan 27, 2011 2:30 AM

  • Null Value in PI 7.1

    Hi
    I am working on Proxy to SOAP Scenario, I receive null value at the first instance when I display the Queue, and values after the null,  and the values are coming from the different nodes, and mapping needs to be done at the different level too.
    Example I receive the state vale as
    1. null
    2.CA
    3.NV
    in order to avoid the null value while mapping what is the function to use it, I used Remove context but still I receive the null value at the begining
    Thanks
    PR

    Hi PR,
    In my case, because of this change in 7.1 a mapping which is working in 7.0 was resulting in wrong results in 7.1
    I doubt this change was done by SAP in 7.1 for ease of use in UDF.
    However, in your scenario try placing a remove contexts-split by value immediately after the condition it suppress the null.
    Else provide me your condition in MM I will replicate and help you.
    Also, try changing the context to a higher level
    Venkat.
    Edited by: Venkat Anusuri on Aug 5, 2009 3:43 PM

  • NULL value in GeoRaster cells?

    Hi all,
    How to store a NULL value in GeoRaster cells ? For example i need to store raster data of NOAA image of continent of Australia, with null value for cells in the surrounding ocean.
    Given the cell depth is 8 BIT U, then the range will be 0 to 255. But i need to assign NULL instead of any value within the range, to ocean cells.
    I think the .setBlankCellValue does not help for this.
    I do not think Oracle GeoRaster does not recognize Null cell value. But i don't know how.
    The geoRaster documentation explain about SDO_GEOR.getNODATA, but how to set it ?
    Or do i have to make some kind of alpha layer for this purpose ?
    Please advise
    Thank you for reading and commenting,
    =Damon

    Jeffrey,
    >
    1. setup NODATA value(s) or NODATA value
    ranges. for this you can call:
    sdo_geor.addNODATA
    sdo_geor.getNODATA
    sdo_geor.deleteNODATA.
    this case, the NODATA value(s) must be in the range
    of the cellDepth. in your case with 8bit unsigned, it
    must be an non-negative integer in [0,255].
    your are talking about NOAA image, I would suggest
    you use 0 (zero) as NODATA for the ocean area. In
    general, the good image pixels would not be zero.The thing is i need to preserve the whole range of possible value of the cell depth meaningful. Probably best example as oppose to NOAA images, is image derived from raster algebra (eg. substraction).
    So i was considering the rest of your suggestion. Bitmap mask or alpha channel might help, BUT
    among
    sdo_geor.addNODATA
    sdo_geor.getNODATA
    sdo_geor.deleteNODATA
    sdo_geor.setBitmapMask
    sdo_geor.getBitmapMask
    sdo_geor.mergeLayers
    ALL are available in 11gR1 while only the sdo_geor.getNODATA that is available in 10gR2 (the one am using); correct me please. (this is based documents of both versions)
    Are you saying that 10gR2 is too obsolete for these, and that i shud upgrade to 11gR1 ?
    Please advise.
    ==================
    Other than general requirement for raster in geospatial, that raster should provide NODATA or null value; my specific aim is for (again) focal operation of geoRaster. For example :
    - an image of 512 rows x 1024 columns x 1 layer as input
    - processed by focal operation (or filtered) by 3 x 3 filter, result is the same size but cells in the row 0, row 511, column 0, and column 1023 ALL have NODATA value
    - similarly by 5x5 filter, row[0,1,510,511] and column[0,1,1022,1023] ALL have NODATA value
    hope this helps,
    JeffreyMany thanks and cheers
    =Damon

  • NULL Value in OO Context

    Hi ,
    I want to set NULL Value in OO Context.
    I cannot use clear with NuLL, SInce it is not allowed in OO Context.
    Do anybody know Class xyz => NULL_Constant ?
    Eg  cl_abap_char_utilities=>NEWLINE
    Regards
    Prasath

    > Hi.
    >
    > Hmm, since I am from Java world these things gets
    > confusing in ABAP. If you see the following example
    > then the report will print both 1 and 2. So the
    > variable is both "initial" as well as "space".
    >
    >
    >
    > DATA: lv_test TYPE flag.
    > lv_test = '0'.
    > CLEAR lv_test.
    >
    > IF lv_test EQ space.
    >   WRITE '1'.
    > DIF.
    > IF lv_test IS INITIAL.
    >   WRITE '2'.
    > DIF.
    >
    > Best Regards
    > Niklas
    That's because the initial value of a character field is SPACE.  In the same way, the initial value of an integer field is 0.  Again, looking at the ABAP help:
    Type    Initial Value
    b       0
    c       " " for every position
    d       "00000000"
    f       0
    i       0
    n       "0" for every position.
    p       0
    string  empty string of length 0
    s       0
    t       "000000"
    x       hexadecimal 0
    xstring empty string of length 0.
    matt

  • How to pass NULL value in SSRS

    Hi All,
    I have a parameter called Division,Region and State.While loading these parameter I am replacing NULL value as "NO Division","NO Region" and "NO State".Note all parameters are multi valued.
    Now In my dataset query If I put the condition like (division=@Division or Division is null) and (region=@region or Region is null) and (state=@State
    or State is null).
    In this scenario if I want to exclude null values need only specific Division which is not allowing me to do that with above condition.If  I need all it works fine but not with specifice division,region and  sate.
    Any thought on this.
    thanks
    Chandan
    Thanks Chandan

    Thats because of or conditions
    As per your explanation since you replace NULL value as No division etc what you need to do is just this
    (division=@Division or @Division = 'All') and (region=@region or @Region = 'All') and (state=@State or @State = 'All').
    this will make sure it will bring all values including NULLs when you pass All and will only give you specific division/region etc records when you pass a specific value.
    To get NULL valued records alone you need to pass value as No Division,No region etc
    Also you should change dataset query for parameter combo to make prompt as No Division etc for NULL values so that it can be selected as an option inside multi valued combo box to see NULL valued records
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • GetParameter() null value

    Hi all,
    We are having a problem using the request.getParameter(String) method. We are using the method to define an argument for a Java Webstart (jnlp mime type) file we are creating with jsp. Other arguments have been successfully created using the request.getServerName() and request.getRequestURI() methods. The getParameter() return value looks fine if printed back to HTML. The jsp file creating the jnlp file is called using an HREF created inside another jsp file as follows:
    <a href="xmlfetch.jsp?filename=mti.xml""></a>
    The param value for filename in each HREF is filled using an String array entry (i.e. +names).
    The xmlfetch.jsp file uses StringBuffers to capture/store the servername, uri and param data as follows:
    StringBuffer svrname = new StringBuffer();
    svrname.append(request.getServerName());
    StringBuffer requri = new StringBuffer();
    requri.append(request.getRequestURI());
    StringBuffer fname = new StringBuffer();
    fname.append(request.getParameter("filename"));
    All 3 variables look ok if dumped in html as follows:
    out.println("svrname=" +svrname);
    out.println("requri=" +requri);
    out.println("fname=" +fname);
    But only the param value is null when the variables are passed as arguments in the jnlp stream as follows:
    <argument><%=svrname.toString()%></argument>
    <argument><%=requri.toString()%></argument>
    <argument><%=fname.toString()%></argument>
    So the question is ... why do the parameter values evaluate to non null when dumped to html but become null when used as an argument for jnlp? AND what is the difference between the strings returned by the 3 request methods we are using as arguments (i.e. why do 2/3 work?).
    ANY HELP APPRECIATED:)
    Greg Hock
    Software Engr
    Northrop Grumman Corp.
    (321) 726-7758
    [email protected]

    I have tried the parameter specification both with and without quotes but either case results in null value for argument going into the Java Webstart (.jnlp) file that I create in the second jsp file (xmlfetch.jsp). What I don't understand is why the parameter looks correct when sent out.println() but is null when not printed and only used for the jnlp app argument. Both the other variables assigned using request.getXXX() methods are ok as arguments...only the parameters passed from the first jsp page (mtiquery.jsp) to the second jsp page (xmlfetch.jsp) become null when used as the jnlp argument.
    Anyone ... please help. :)
    Here is the code for the first jsp page. This page creates a table of filenames each of which has a href link to the second jsp page and passes it's filename as the parameter.
    <%@ page
    language="java"
    import="java.util.*,java.text.*,java.io.*,javax.swing.filechooser.FileFilter"
    %>
    <html>
    <title>MTIX MTI Query Tool</title>
    <body>
    <p>
    <center>
    <h1>JSP MTI QueryTest</h1><br>
    <jsp:include page="copyright.jsp" flush="true"/>
    <br>
    <%=(new java.util.Date())%>
    <%
    String startPath = "../webapps/ATServlets/data/mti";
    File myDir = new File(startPath);
    String myPath = myDir.getCanonicalPath();
    out.println("<br><br><br>Results of Query Path: <br>" myPath "<br><br>");
    String[] filelist = myDir.list();
    out.println("<br>");
    out.println("<center>");
    out.println("<table BORDER COLS=1 width=400>");
    String urlPath = null;
    String hrefPath = null;
    for (int i=0; i<filelist.length; i++)
    urlPath = new String("\"http://judy:8080/ATServlets/jsp/xmlfetch.jsp?filename="+filelist[i]+ "\"");
    hrefPath = new String("<a href=" urlPath ">");
    out.println("<tr><td><center>");
    out.println(hrefPath + filelist[i] + "</a>");
    out.println("</center></td></tr>");
    out.println("</table>");
    out.println("</center>");
    %>
    </center>
    </body>
    </html>
    This first page resulted in source as follows:
    NOTICE that the second jsp page is the HREF and I am using "filename" as the parameter key and the value is assigned (without quotes) to be the filelist entry.
    <html>
    <title>MTIX MTI Query Tool</title>
    <body>
    <p>
    <center>
    <h1>JSP MTI QueryTest</h1><br>
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <p>(c) 1999,2000,2001 Northrop-Grumman All Rights Reserved </p>
    </body>
    </html>
    <br>
    Wed Aug 08 10:01:34 EDT 2001
    <br><br><br>Results of Query Path: <br>/opt/mtix/data/mti<br><br>
    <br>
    <center>
    <table BORDER COLS=1 width=400>
    <tr><td><center>
    MtiOutput.xml
    </center></td></tr>
    <tr><td><center>
    KoreaMTI.xml
    </center></td></tr>
    <tr><td><center>
    testMti.xml
    </center></td></tr>
    <tr><td><center>
    testMti2.xml
    </center></td></tr>
    <tr><td><center>
    testMti4.xml
    </center></td></tr>
    </table>
    </center>
    </center>
    </body>
    </html>
    OK Now here is the second jsp file (xmlfetch.jsp) that is fired up after the table selection. This file creates a stream to the Java Webstart plugin and tries to use the passed parameter as 1 of 3 arguments to the application (see last few lines). The variable fname is used to hold the contents of the getParameter() method.
    <%@ page
    contentType="application/x-java-jnlp-file"
    info="myjnlp"
    import="java.lang.*,java.text.*,java.io.*"
    %>
    <%
    StringBuffer fname = new StringBuffer();
    fname.append(request.getParameter("filename"));
    //fname.append("MtiOutput.xml");
    //out.println("the fname var = " +fname);
    StringBuffer cBase = new StringBuffer();
    cBase.append(!request.isSecure() ? "http://" : "https://");
    cBase.append(request.getServerName());
    if(request.getServerPort() != (request.isSecure() ? 80 : 443))
    cBase.append(':');
    cBase.append(request.getServerPort());
    StringBuffer httpref = new StringBuffer();
    httpref = cBase;
    httpref.append(request.getRequestURI());
    StringBuffer cBase2 = new StringBuffer();
    cBase2.append(!request.isSecure() ? "http://" : "https://");
    cBase2.append(request.getServerName());
    if(request.getServerPort() != (request.isSecure() ? 80 : 443))
    cBase2.append(':');
    cBase2.append("80");
    cBase2.append('/');
    cBase2.append("ATJava");
    cBase2.append('/');
    %>
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for downloading xml from servlet -->
    <jnlp
    spec="1.0"
    codebase="<%=cBase2.toString()%>"
    href="<%=httpref.toString()%>">
    <information>
    <title>Catalog Download Application</title>
    <vendor>Northrop Grumman, Inc.</vendor>
    <homepage href="ATJava.init/documents/index.html"/>
    <description>XML Catalog Download Application>
    <description kind="short">A demo.</description>
    <icon href="ATJava.init/images/tomcat.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.2" initial-heap-size="16m" max-heap-size="512m"/>
    <jar href="ATJava.build/ATJava.jars/ATSignedRuntime.jar" download="eager"/>
    </resources>
    <resources>
    <j2se version="1.3" initial-heap-size="16m" max-heap-size="512m"/>
    <jar href="ATJava.build/ATJava.jars/ATSignedRuntime.jar" download="eager"/>
    </resources>
    <application-desc main-class="mtix.XMLFetch">
    <argument><%=fname.toString()%></argument>
    <argument><%=cBase2.toString()%></argument>
    <argument><%=httpref.toString()%></argument>
    </application-desc>
    </jnlp>
    Please HELP/COMMENT if you can.... Gregg

  • Using null value of item

    Hi All,
    I use this part-of-code in pl/sql statement in a 'where' clause in order to filter records to those that took place between some hours range:
    ..... and to_char(STARTDATE,'HH24:MI:SS') between NVL(:P3_HOURS_FROM,'00:00:00') and NVL(:P3_HOURS_TO,'23:59:59')
    P3_HOURS_FROM & P3_HOURS_TO are combo box items with LOV (0:00,0:30,1:00 ....etc that returns 00:00:00,00:30:00,1:00:00 respectively). I use a null value which is displayed as '--:--'.
    when i choose some hour range the rsults are correct. the problem is when i choose null values. there is no results to the report, probably (i guess) because it somehow translate the (null) time value to the same value (and it's obvious that between same time values there isn't any result).
    so i guess i use 'null' value in an inappropriate way.
    Can u tell me what do i do wrong???

    Are you sure you are returning NULL and just displaying '--:--' in your LOV?
    If the state of your LOV is becoming '--:--' then this does not equal null in PL/SQL land.
    I presume you are also submitting after changing your LOVs?
    You can check the state of your items by clicking the session state in the developers toolbar at the bottom. See what your items are being set and report back!
    Ben

  • Why "null" value is impossible in "switch(val) {case null: }"  for enums?

    I'm wondering why Java 5.0 does not allow null values
    as options in switch statement:
    If type E is "enum" then the following language construction is
    not allowed:
    E val;
    switch(val) {
       case A:
         break;
       case B:
           break;
       case null:   // this is not allowed
            break;
    }Can somebody explain me why Java does not support it? I beleave that
    some serious reasons were for that.
    As we know enum types can have "null" values and in case I use nulls
    for my enumerations the code with "switch" statement becomes quite urgly because it is necessary to handle 2 separate execution paths:
    null and not null.
    Thanks

    I really don�t know too much about 1.5, but I can tell you that for 1.4 the switch receives as a parameter an int or anything that can be casted automatically to an int. Therefore you can�t never use null cause int, char, short, byte can�t never take as a value null.

  • OBIEE - Null Value in Joins

    Hi All,
    In OBIEE, How will I handle the null value in join conditions?
    I have 2 tables inner joined together in the RPD level. They are User_Profiles table and Parties table.
    I am creating a database prompt for a report and in dropdown sql results Iam giving the below query.
    SELECT distinct CASE WHEN USER_PROFILES.PAR_ID IS NULL THEN PARTIES.PAR_ID ELSE
    USER_PROFILES.PAR_ID END FROM user_profiles,parties WHERE USER_PROFILES.USER_ID='12345' AND parties.par_type = 'ABC' and parties.status = 'N'
    Here the PAR_ID is not fetched in the dropdown from PARTIES table . The reason behind this is, when the USER_PROFILES is having PAR_ID as null, it is not able to join with PARTIES table and the dropdown is not populating. It works fine when it fetch from user_profiles table. I believe the issue occurs because of the user_profiles table having null values and not able to fetch from parties table.
    Please advice..

    Hi All,
    I managed to write the query modified like below to handle the null value.
    select nvl2(user_profiles.par_id,user_profiles.par_id,parties.par_id) from WFMT_SAINT_PR where user_profiles.user_id= {User()}
    and ((user_profiles.par_id is not null and parties.par_id = user_profiles.par_id) OR (user_profiles.par_id is null and parties.par_type = 'MFR' and parties.status='C'))
    But when i put this is dashboard prompt sql results for PAR_ID field i get the following error.
    Error Generating Drop Down Values
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: select nvl2(user_profiles.par_id,user_profiles.par_id,parties.par_id) from WFMT_SAINT_PR where user_profiles.user_id= {User()} and ((user_profiles.par_id is not null and parties.par_id = user_profiles.par_id) OR (user_profiles.par_id is null and parties.par_type = 'MFR' and parties.status='C'))
    Can you please advice what is wrong here..

Maybe you are looking for