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

Similar Messages

  • How to differentiate the EMPTY Records and Null Values in DSO

    Hello....how is everyone here?? Ehehehe!
    I try to load some data from the flat file which contains some EMPTY data and Null Values for the records. The data type for the InfoObjects of the fields "Quantity" is "number". The sample data from the flat file (CSV) are as below:
    Food              Quantity
    Hamburger  -       12
    Cheese        -       0
    Vegetable      -               (Empty)
    When I try to load the above sample data to the DSO, I get the results of the data as follow:
    Food              Quantity
    Hamburger     - 12.000
    Cheese           -  0.000
    Vegetable         - 0.000
    In this case, how can the user differentiate whether the records is contain empty value of null values in DSO? This is kinda of hard to differentiate the both scenarios above. Is there any way to differentiate the scenarios described here?
    Thanks alot =)

    Hi Fluffy,
    It depends on the initial values of the data type
    The inital values For quantity/Currency/ Numbers it takes spaces as 0
    for char it is SPACE
    We cannot differeniate between space and null values.
    IF you have to force this then define quantity as char and load the data. we will not have units and aggregation in this case.
    Hope this helps.
    PV

  • Parsing XML and Storing values in instance variable

    hi,
    i'm new to XML.
    here i'm trying to parse an XML and store their element data to the instance variable.
    in my main method i'm tried to print the instance variable. but it shows "" (ie it print nothing ).
    i know the reason, its becas of the the endElement() event generated and it invokes the characters() and assigns "" to the instance variable.
    my main perspective is to store the element data in instance variable.
    thanks in advance.
    praks
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    public class mysax extends DefaultHandler
         String ctelement;
         CharArrayWriter contents;
         String vname1,vrcbreg1,vaddress1,vcountry1,vtelephone1,vfax1;
         String vname,vrcbreg,vaddress,vcountry,vtelephone,vfax;
         public mysax()
              vname1 = null;
              vrcbreg1 = null;
              vaddress1 = null;
              vcountry1 = null;
              vtelephone1 = null;
              vfax1 = null;
              contents= new CharArrayWriter();
         public void doparse(String url) throws Exception
              SAXParserFactory spf = SAXParserFactory.newInstance();
    SAXParser sp = spf.newSAXParser();
    ParserAdapter pa = new ParserAdapter(sp.getParser());
    pa.setContentHandler(this);
    pa.parse(url);          
         public void startElement(String namespace,String localName,String qName,Attributes atts)
              ctelement = localName;     
         public void endElement(String uri,String localName,String qName) throws SAXException
         public void characters(char[] ch,int start, int length) throws SAXException
              try
                   if(ctelement.equals("name"))
                        vname = new String (ch,start,length);
                        System.out.println("The method "+vname1);
              }catch (Exception e)
                   System.out.println("The exception "+e);
         public static void main(String args[])
              try
              mysax ms = new mysax();
              ms.doparse(args[0]);
              System.out.println("the contents name "+ms.vname1);
              catch(Exception e)
                   System.out.println("this is exception at main" +e);
    my XML looks like
    <coyprofile_result>
    <company>     
    <name>abcTech</name>
    <rcbreg>123456789</rcbreg>
    <address>Singapore</address>
    <country>sg</country>
    <telephone>123456</telephone>
    <fax>123155</fax>
    </company>
    </coyprofile_result>

    I believe that the problem has to do with the value you assign to ctelement. You are assigning the value of localName to ctElement, however for the element: <name>...</name> the localname is empty string i.e. "", but qName equals "name". Because you are assigning empty string to ctElement, when you do the comparison in characters of ctElement to "name" it will always be false. So in startElement change it to ctElement = qName; Try it and see if it works. I have produced similar programs and it works for me.
    Hope this helps.

  • Problem with QofQ and Null Values

    Just converted from CF5 to CF7. Finally figured out what was
    causing the error message :
    "The value "" cannot be converted to a number" when running a
    QofQ. It happens whenever there is a NULL (and I think a ZERO)
    value in the QofQ. I'm using the QofQ in a seperate chart program.
    The main query merges data from a store and a region table.
    I'm doing a LEFT OUTER JOIN to combine the REGION with the STORE,
    AND so that stores with NO SALES for a given day will show up as
    ZERO. On the main report, when I don't use a QofQWhen grouping by
    DAY or MONTH, I can test the value in the CFOUTPUT for NULL or ZERO
    and display "0" or "N/A" on the report.
    But when I try to chart it, using a QofQ to read in the
    values from the main query, and format the numbers, I get this
    error message. I've tried using the CAST function, using FLOAT,
    DOUBLE, BIGINT, etc., but still get same error message.
    The only way I could fix this is to add a WHERE statement to
    the QofQ, that only includes sales values greater than ZERO. But
    then, I have gaps in my chart because stores with NO SALES for a
    given day or MONTH don't appear. Because they are removed from the
    query. The whole point of LEFT JOINS is to include items with no
    values (or NULL) values.
    Does anyone know if it's possible to keep these values in a
    QofQ? So that items (e.g., store locations in my case) with NULL or
    ZERO values for some or all days or months can be charted? Even
    with a ZERO value? I've read everything I can get my hands on
    regarding QofQ, the CAST function, etc., but nothing seems to work.
    Thanks for any help. (FYI, didn't have this problem with CF5. It's
    QofQ could handle NULL or ZERO values without providing an error).
    Gary

    Well, I tried the IsNull function on the 3 SUM() values I was
    calculating in my SELECT statement (on a LEFT OUTER JOIN QUERY),
    and I STILL got another "cannot convert "" to a number" but this
    time the error message was more direct, and pointed me to a DATE
    field in my query, where I was SORTING AND GROUPING either by DAY
    or MONTH (depending on what user selected on form).
    In my QofQ, I'm not just reformating the integer SUM()
    values, but also the date values. So, I applied the IsNull()
    function to the DATE values in my main query. I still kept getting
    errors. But after experimenting ((SQL Server BOL docs doesn't give
    ISNULL() examples for DATE FIELDS, only NUMBER fields), I tried
    putting the dates in SINGLE QUOTES in my IsNull() function, the
    QUERY RAN. Then I wasn't sure WHAT date to enter, e.g., 1/1/1889 or
    1/1/2001, etc.
    Then, I discovered, after experimenting, that you cannot just
    blindly enter ANY date when using IsNull in a date field,
    especially if you are using CFGRAPH to chart the results by day.
    You have to select a date within the date range the user selected,
    so this means using the FORM.DATE (or URL.DATE) value from the
    form. Here's the working example from my SELECT main query:
    SELECT SUM(ISNULL(d.ttldb,0)) AS SumOfDB,
    SUM(ISNULL(d.ttldbv,0)) AS SumOfDBV,
    SUM(ISNULL(d.ttldbi,0)) AS SumOfDBI,
    <CFIF '#url.reptype#' IS "DAILY">
    ISNULL(d.depday, '#url.date1#') AS depday
    <CFELSE>
    month(ISNULL(d.depday, '#url.date2#')) AS TranMonth,
    year(ISNULL(d.depday, '#url.date2#')) AS TranYear
    </CFIF>
    Then I discovered that whatever date was used in the URL.DATE
    field (in my case it would be one of the two date field from the
    form, and depended on whether you coded DATE1 or DATE2, the chart
    would always show ZERO values for that date. So I tried putting the
    IsNull() date values in the GROUP BY and ORDER BY statements, e.g.,
    <CFIF '#url.reptype#' IS "DAILY">
    GROUP BY ISNULL(d.depday, '#url.date1#')
    ORDER BY ISNULL(d.depday, '#url.date1#') DESC
    <CFELSE>
    GROUP BY year(ISNULL(d.depday, '#url.date2#')),
    month(ISNULL(d.depday, '#url.date2#'))
    ORDER BY year(ISNULL(d.depday, '#url.date2#')),
    month(ISNULL(d.depday, '#url.date2#'))
    </CFIF>
    And this worked. The report ran just fine, and the chart
    charted every value correctly.
    I guess you have to learn all the little "quirks" about CF7
    and how it's QofQ and chart programs work. But so far, so good.
    Thank you all for your help. Now I've got to update other old
    CF5 programs that are returning errors when there are null values
    from my LEFT OUTER JOIN queries. Will take some time, but at least
    I know how to do it. Thanks to your help.
    I really appreciate your time and efforts to help with this
    issue.
    Gary

  • Automated row fetches, checkboxes and null values

    Hi
    In Apex3 I have a page with automated fetch row process that is working fine. Now I need to add a new not null varchar2 column "flag" which can be a Y or a N.
    To do so, I created a new checkbox item p1_flag, set the source properties and the LOV definition to: STATIC2:Flag set;Y
    However when I try to save the data with the checkbox unticked I get a null value error. To solve it, I created a computation on that field like this:
    nvl(:p1_flag, 'N')
    Is this the best way to do it? (other than using database triggers)
    Thanks
    Luis

    Hi Patrick
    Thanks for the reply. I thought that, just wondered if there were a better way...
    Another option that I was thinking about was to modify the column definition to be nullable, with valid values being Y and null. So I wouldn't have to care about it. The only thing being that I don't like very much the idea of modifying the database design because of the development tool (though I saw things much worse than this, as using VARCHAR2 instead of DATE because the front end tool didn't handle date datatypes very well!)
    Or just stick to a trigger to do it.
    Cheers
    Luis

  • Distinguishing between empty string and null values

    hi all,
    I am using an ODBC connection to connect my java app to database using JDBCODBC driver. I have 2 columns 'aColumn' and 'bColumn' in my table, both allow null values. I have one row in it, which has null value in aColumn and empty string in bColumn. I retrieve this row's data and assign it to 2 columns : 'aColumnVar' and 'bColumnVar' respectively. I find out that both 'aColumnVar' and 'bColumnVar' variables has null values (although bColumnVar should has an empty string as its value). Now my ODBC connection Data Source has the option "Use ANSI nulls, paddings, and warnings" ON. I turn it off and try again. This time both 'aColumnVar' and 'bColumnVar' variables has empty string as values (although aColumnVar should has null as its value).
    How can I make sure that i can get the data exactly as it is in the database in my variables?
    Thanks

    there is a wasNull() method on ResultSet. After you
    have obtained the value of a column e.g. by calling a
    method like getString you can call wasNull and if it
    returns true then the value on the database is null.
    Check the java docs, it might explain it better
    http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Result
    et.html#wasNull()I am using MS SQL Server 7.0 under Windows NT 4.0 with JDK 1.2. My ODBC connection Data Source has to have the option "Use ANSI nulls, paddings, and warnings" ON.
    I try the wasNull() method but it is doing the same thing i.e. telling me that a column is null when in database it is null (right); and a column is null when in database it is an empty string (wrong). I suspect it is something to do with the JDBC-ODBC driver I am using.

  • Null value of fax and Null value of email is not reflecting in SRM

    Hi
    If you change the Vendor fax and email to null value in SAP(transaction XK02 in communication for address) and replicate the vendor in SRM 5.0 with transaction BBPUPDVD, still in manage business partners BBPMAININT as vendor I am able to see old fax number and email id  instead of null value in Contact for Business Partner area.
    Where as if we change vendor fax and email to new fax and email , after replication we wre able to see new fax and email id in manage business partners transaction as vendor.
    Regards
    Dayal

    solved!

  • MS Access and Null values

    Hi,
    I'm attempting to create a report in Crystal Reports Designer 2008 using a Microsoft Access 2003 table as a source. I'm having difficulty with my report design when the first record of the table contains a NULL value. I wish to find the Maximum() value of this field using the formula Maximum({table.field1}, {table.field2}) where field1 contains the value i'm trying to find the maximum of and field2 contains the grouping data. I find that if field1 contains valid values then the formula works as expected whereas if the first field1 value is NULL then the formula simply refuses to output anything (not even an error).
    I attempted to amend my formula to read:
    If IsNull({table.field1})
    Or {table.field1} = ""
    Or {table.field1} = " " Then
        "1"
    Else
       Maximum({table.field1}, {table.field2})
    But this also refuses to work.
    I also tried the following from the menu File > Report Options ... > Convert Database NULL Values to Default, and the other setting of Convert Other NULL Values to Default, but neither seemed to work for me.
    Any ideas on how I can test the table to see if the value is a null and hence deal with it?
    Thanks,
    Mike

    Ian,
    I had previously tried that with no luck.
    I've investigated further and I think the problem actually lies elsewhere. In my report design I join a couple of SQL Server views to the MS Access table. I think the join conditions are such that there is no data to bring back and so although the {table.field1} contains a vaule it is being ignored since the other tables can't join to it.
    I've managed to alter my other views and the problem still seems to have gone for the moment.
    I guess to answer my own question, the use of ISNULL(), = "" or = " " are the correct tests for a MS Access table and probably for most other data sources as well.
    Thanks,
    Mike

  • Date Range and Null Values

    Post Author: mrae
    CA Forum: Formula
    I want to pull up data that have been completed for the month, but also want to include null values.  I did the following but didn't work.
    (isnull({wrhwr.date_completed}) or {wrhwr.date_completed} => 4/1/2008 12:00:00AM or =<4/30/2008 11:59:59PM
    Help, please?

    Post Author: SKodidine
    CA Forum: Formula
    Try:
    isnull({wrhwr.date_completed}) or {wrhwr.date_completed} IN datetime(2008,04,01,00,00,00) to datetime(2008,04,30,23,59,59)

  • Retrieving data from TCP/IP in xml and displaying values?

    Hey, I am using a program to retrieve data from a machine and outputting it in xml to the localhost.  On a seperate computer, I am trying to create a client application to read the xml data from that IP host and just output the important values instead of the whole script.  I am new to Labview and programming, has anyone written a program similar to what I am trying to accomplish?  I searched for it but couldn't quite find what I was looking for.  I really could use some help with trying to figure this out and appreciate any help or advice you could give me.   

    Where did you search? There are examples that ship with LabVIEW that show you how to do client-server applications using TCP/IP. Did you try those? You would need to add the parsing of the data you receive (i.e., the XML).

  • Use of DECODE and NULL value in a WHERE clause

    hi all,
    I came into an issue trying to use the DECODE function in a simple where clause.
    this is my test case
    CREATE TABLE tab_test (lev NUMBER, code VARCHAR2(10), val VARCHAR2(10));
    INSERT INTO tab_test VALUES (1, NULL, 'val11');
    INSERT INTO tab_test VALUES (1, NULL, 'val12');
    INSERT INTO tab_test VALUES (1, '13', 'val13');
    INSERT INTO tab_test VALUES (2, '21', 'val21');
    INSERT INTO tab_test VALUES (1, '22', 'val22');
    INSERT INTO tab_test VALUES (1, '23', 'val23');
    and this is the query
    SELECT * FROM tab_test WHERE code = DECODE(:lev,1,NULL,:cod)
    as you can see running this query, setting :lev to 1 will return an empty record set, instead of the expected first two rows (as it will be, running "select * from tab_test where code is null").
    is there a way to overcome this issue? thanks for help

    hi Frank,
    I can confirm that the queries do work when run on TOAD, but do not when they are put in the WHERE clause of my data block. I guess the problem relies on some data block setting; I should investigate on Forms forum.
    Anyway, here is my test case, including data and some examples. You can realize that it works good
    CREATE TABLE TAB_TEST
    LEV NUMBER,
    CODE VARCHAR2(10 BYTE),
    VAL VARCHAR2(10 BYTE)
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (3, 'val21', 'val3_211');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val21', 'val3_212');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val11');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val12');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val13');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val11', 'val21');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val12', 'val22');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val13', 'val23');
    COMMIT;
    SELECT * FROM TAB_TEST
    CONNECT
    BY PRIOR val = code
    START WITH (CASE
    WHEN :LIV = 1 AND code IS NULL THEN 'OK'
    WHEN :LIV != 1 AND code = :COD THEN 'OK'
    END = 'OK')
                   AND VAL = :V
    :LIV = 1
    :COD = [any]
    :V = 'val11'
    LEV     CODE     VAL
    1          val11
    2     val11     val21
    3     val21     val3_211
    3     val21     val3_212
    :LIV = 1
    :COD = [any]
    :V = 'val12'
    LEV     CODE     VAL
    1          val12
    2     val12     val22
    :LIV = 2
    :COD = 'val11'
    :V = 'val21'
    LEV     CODE     VAL
    2     val11     val21
    3     val21     val3_211
    2     val21     val3_212

  • Details about BayerGreenSplit and its value

    Does anyone know anything more than the few lines written in the DNG documentation about this tag, BayerGreenSplit?
    How is the green pixels divergence measured? How can one decide what BayerGreenSplit value corresponds to his/her camera?
    The 0 - 5000 range looks quite strange. Maybe the phenomena described has also another name?
    Any help is appreciated.
    Thank you.

    OK, I exhaled. ;)
    Used to think the weird clay texture ACR rendered high frequency detail like blades of grass and foliage in the distance in my Pentax PEF's was something undesirable. But after comparing ACR's ease of use, quality and speed of its editing tools and simpler interface compared to other raw converters, the odd texturing is tolerable.
    And besides that it can only be seen at 200% zoomed view anyway and can't be seen even on 20x30in. print enlargements. This texture also produces some very clean results when applying aggressive sharpening as well, so I'm thinking whatever algorithm Adobe's engineers are using to produce such a texture must be intentional.
    I'm just fascinated by all the variations achieved just with demosaicing algorithms.

  • Read XML and return values

    I am trying to figure out the easiest way to read values from an XML file. The values are then going to be used in an automation system that checks pressure values compared to these values before continuing the system. I have created an XML file that has different parameters for each program Recipe.
    For Example:
    <RecipeVault>
    <Recipe>
     <name>JNR</name>
     <RoughPumpPressure>5E-2</RoughPumpPressure>
     <CoolerMotorRoughingPressure>1E-3</CoolerMotorRoughingPressure>
     <TurboPressure>9.9E-3</TurboPressure>
     <HeChargePressure>350</HeChargePressure>
     <HeVentedMotorPressure>5</HeVentedMotorPressure>
     <HiVacCoolerMotorPressure>2E-6</HiVacCoolerMotorPressure>
    <WaterMoleculePressure>1E-7</WaterMoleculePressure>
    </Recipe>
    I was trying to make my own VI that could be given the name “JNR” and the parameter “RoughPumpPressure” and output the value 5E-2. I have just been running in circles trying to use the XML Parsers but no luck. I have also looked online and found the JKI program but have not tried it yet, I need IT approval to download the demo. Please let me know if there is an easy method to do this or where to find a VI that already exists that could make this work.
    Thank you for your help!

    Repeat after me:  XPath is awesome.  Here are a couple of quick examples:
    Simple XPath.
    Attached VI is a stripped out GUI to interactively request the name and parameters from auto-populating rings.
    Attachments:
    SimpleXMLGUI.vi ‏32 KB

  • Effecient select statment and null values

    Can some one tell me how to make the below query effecient.It is taking me 2 hour to complete.
    Insert into emp_transaction
    From
    (Select e.emp_name,e_dept from employee e where e.emp_no > 1000 and (emp_id) not in (select emp_id from removed_employee));
    Other problem with this query is if emp_id is null in employee it ignores that record completely even though emp id is never null in removed_employee table.
    Please help.

    To add-on (and correct missing the A.EMP_ID > 1000)
    If there are NULL employee.emp_id records, and you want to capture them, then you could use a FULL OUTER JOIN:
    SELECT A.EMP_NAME, A.DEPT
    FROM EMPLOYEE A FULL OUTER JOIN REMOVED_EMPLOYEE B
    ON A.EMP_ID = B.EMP_ID
    WHERE B.EMP_ID IS NULL
    AND (A.EMP_ID > 1000 OR A.EMP_ID IS NULL)
    Not sure what the Explain Plan will show, but it may be more efficient than the other query.

  • Little doubt about xml and jspx, someone would give me a explaiation please

    Hi!!
    What's the diference between a .jspx and .xml file? do they have the same porpose? can I replace a .jspx for .xml file ?
    Thanks!!!

    If you can't get AOL to talk you thru it, then it's time to stop using AOL.
    You are paying extra for a useless service. You already pay (and HAVE TO PAY) to the internet company that gives you the internet modem and conneciton to the internet, and they are be giving you 1-5 free email addresses with that account. (call them if you never set them up).
    There is no guarantee you don't have a problem with your mail setup on your computer, but this is the right time for you to set up your [email protected] accounts, download all your AOL mail including your address book (FROM AOL'S WEBISTE via Safari) to your hard drive, make sure you are using an external drive with Time Machine and doing daily if not hourly backups, and start sending emails to your friends and family and business from the new mail account(s).
    Otherwise you can call someone who saves computers and AOL accounts for a living and pay them $25- $100 hour....

Maybe you are looking for

  • MSI X48C PLATINUM TURBO CARD LED LIGHTS

    Hi All  I have MSI x48c platinum it's working fine but DIMM Turbo card led lights is still off  Please tell me how to on Turbo card lights.   Sorry for my English

  • External table headache

    Hi there! Got this problem that are driving me quite mad. I'm working on a Oracle 9.2.0.7, Unix is a hp-ux. The problem is: using an external table, record in variable format, with '^' as separetor, if file size is an exact power of 1024 (i.e. 1K, 2k

  • LOOKUP and retreiving values

    I need to retreive some data from an other application with a logic. Pour une logique je vais avoir besoin de rechercher des données dans une autre application. J'air echerché des trucs sur SDN et sur la Doc mais les exemples ne sont pas tres clairs.

  • Error in processing XSL template

    Hi I am trying to build an report by using XSL template in BI Publisher 10g integrated with siebel. When i uploaded the template to run the report I am getting the following error Caused by: oracle.xdo.parser.v2.XPathException: variable not defined:

  • Aperture opens Photoshop, but converted TIFF doesn't appear in PSA

    Background: I cloned my 250GB boot drive to a 750, and the latter is now the OS drive. All programs open and word, but when I open an Aperture file for editing in external editor (PS is chosen in prefs), the version is created in A, and PS is opened,