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

Similar Messages

  • Oracle 11.1.0.7.0 Issue with Streams when using NULL value in a key field

    Hi,
    we have an issue in our replicated environment using Streams.
    We have a replicated table using the following index:
    UK_S01_TEXT_FORMAT_TBL01 SOGID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_ID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_LANGUAGE_LABEL
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_COUNTER
    UK_S01_TEXT_FORMAT_TBL01 INDEX_PROVIDER_ID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TARIFF_PLAN_COSP_ID
    with field INDEX_PROVIDER_ID allowing NULL values. Actually we insert empty strings in there, but as far as I understand Oracle will convert it sliently in a NULL value, which is fine to our application.
    When we apply a change on that table (either update or delete) we get errors at streams level and the transaction is not propagated.
    Local Transaction ID: 6.28.11170
    Source Commit SCN: 25397175
    Source Commit Time: Dec-03-2012 12:21:30
    Error in Message: 1
    Error Message: ORA-26787: The row with key ("INDEX_LANGUAGE_LABEL", "INDEX_PROVIDER_ID", "INDEX_TARIFF_PLAN_COSP_ID", "INDEX_TEXT_FORMAT_COUNTER", "INDEX_TEXT_FORMAT_ID", "SOGID") = (ITALIAN, , , 0, MIKE, 124) does not exist in table
    SMS.S01_TEXT_FORMAT_TBL
    ORA-01403: no data found
    message: 1
    TableName: S01_TEXT_FORMAT_TBL
    Operation Type: DELETE
    _____ Old Data _____
    SOID : 1010000008
    SOGID : 124
    INDEX_TEXT_FORMAT_ID : MIKE
    INDEX_LANGUAGE_LABEL : ITALIAN
    INDEX_TEXT_FORMAT_COUNTER : 0
    TEXT_FORMAT : Hai raggiunto i 100MB di traffico incluso nello scatto
    APPLICA_PERIOD_CRI_ID :
    INDEX_TARIFF_PLAN_COSP_ID :
    INDEX_PROVIDER_ID :
    If I force the set of primary keys to be only the NOT NULL fields, I can successfully apply the error, but since we may have them storing both NULL and NOT NULL values, this is not a solution.
    I'm wondering why the DB on one hand converts the empty string in a NULL while inserting, but it looks the Apply process onStandby is not able to do the same when looking for the record before applying the transaction.
    Thanks in advance!
    Cheers,
    Mike

    Its showing all objects the user has permission to see- why does that need to be restricted?

  • Using null values to change text boxes

    Very simple question I believe.
    I have a form with rows of data.  All I want to do is say that if a given field in a row "description1" is not Null, then populate another field with a specified value.
    jA

    if (descriptionFieldName.rawValue != null){
      otherFieldName.rawValue = "value you want to give it";
    If there are multiple rows of this information you will have to add the row subform to the expression as well as an occurance number so it wil know which one you want . I will use i to indicate the occurance:
    if (Row(i).descriptionFieldName.rawValue != null){
       Row(i).otherFieldName.rawValue = "value you want tto give it";
    Paul

  • Conditional formula using NULL values

    Hi Experts,
    Here's the background using Query Designer.
    V1 = Formula Variable - Rep Path - converting master data attribute value into "number" (eg, attribute "status" = 02 becomes the number 2)
    RKF1 = Sales for Day 1
    RKF2 = Sales for Day 2
    CKF1 = (V1 = 2) * RKF1
    CKF2 = (V1 = 2) * RKF2
    CKF3 = (CKF1 <> NULL) * (CKF2 <> NULL) * (CKF1 % CKF2)
    My issue is with CKF3 where I need to void the entire formula for that row if EITHER CKF1 or CKF2 values are NULL.  I know in other reporting tools they have a "IS NULL" or "IS NOT NULL" operator but I know Query Designer does not.  Are there any ways around this?  This is something that needs to be dynamic which is why we can't calculate this during load time.  The values will differ depending on the variables assigned so the NULL solution seems to be the only way around this.

    RKF1 = Sales for Day 1
    RKF2 = Sales for Day 2
    CKF1 = (V1 = 2) * RKF1
    CKF2 = (V1 = 2) * RKF2
    CKF3 = (CKF1 NULL) * (CKF2 NULL) * (CKF1 % CKF2)
    In CKF3, you mean (RKF1 % RKF2) right? Other wise it doesnt make sense.
    Could you please state what is required?
    So - the formula is correct CKF3 = (CKF1 != NULL) * (CKF2 != NULL) * (CKF1 % (percentage share) CKF2)
    So if CKF1 is null, then it makes the formula equal 0.  Same thing with CKF2 - if CKF2 is NULL, then it makes the formula equal 0.  Which makes 0 % 0 equal 0% which is what I want (if either CKF1 or CKF2 are null).
    Edited by: Adam Rench on May 27, 2011 6:28 PM

  • 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()
    }

  • Webservice returns null values (Flex)

    Hi all,
    I created a webservice in abap,
    (a RFC and a Function Web Service).
    It exports a table type and contains data from a Ztable.
    When i request it from Flex, it returns rows, but they contain NULL values, why ?
    I can request and display bapi webservices that comes with in SapNetweaver trial 7.1 but i cant display my own webservice.
    Result like this;
    result     generated.webservices.ZCUSTOMERS_TT (@2205981)     
         [inherited]     
         [0]     generated.webservices.ZCUSTOMERS (@2362c91)     
              CLIENT     null     
              ID     null     
              NAME     null     
         [1]     generated.webservices.ZCUSTOMERS (@23a4129)     
         [2]     generated.webservices.ZCUSTOMERS (@23a42e1)     
         [3]     generated.webservices.ZCUSTOMERS (@23a41c9)     
    it is true that there are 4 rows in table, but all client, id and name is null
    why ?

    thanks for answer but my problem didint solved.
    My webservice can return normal values like integer or decimal and i can read it from flex.
    but when i try to view tables, i always get null values BUT item count is true :=) i have 4 item in z table and 4 rows returns in array from webservice but NULL values :=).
    I can't return structure as well.
    result     mx.utils.ObjectProxy (@211af29)     
         DEGER     1     
         GS_CUSTOMER     generated.webservices.ZCUSTOMERS (@22ce719)     
              CLIENT     null     
              ID     null     
              NAME     null     
         GT_CUSTOMER     mx.collections.ArrayCollection (@210cd01)     
              [inherited]     
              [0]     generated.webservices.ZCUSTOMERS (@22cef61)     
                   CLIENT     null     
                   ID     null     
                   NAME     null     
              [1]     generated.webservices.ZCUSTOMERS (@22ced31)     
              [2]     generated.webservices.ZCUSTOMERS (@22cedd1)     
              [3]     generated.webservices.ZCUSTOMERS (@22cea11)     
              source     Array (@22687e9)     
         object     Object (@22ce8a9)     
         type     null     
         uid     "723117ED-66EC-C93B-9E66-C0FD4F01246C"     
         ZCUSTOMER_TT     generated.webservices.ZCUSTOMERS_TT (@22eb941)     
    What do you use, when declaring variables ?
    Like or type or ref to ? Can it be a problem ?
    here is my function export inteface.
    http://img241.imageshack.us/img241/9258/screenhunter01jun082052.gif
    Edited by: bilen cekic on Jun 8, 2009 8:26 PM

  • NULL Value in Journal Entry and Wrong Tax Summary

    Hi people,
    I need your expert help for a big problem that appens to some customers.
    They run SAP BO 8.8 SP:00 PL:12
    This is the scenario:
    You insert a new documet,  A/R Invoice or A/P Invoice is the same, problem appear in all of them.
    After you insert the document, using SQL Server Management try this Select statment:
    Select * from JDT1 where JDT1.debit is null OR JDT1.credit is null
    A list of record where listed. And, this is the problem, NULL values are all in the VAT Lines in debit or credit colums.
    If you try to make a SUM(debit-credit) you discovery that, 1000,00-null=null
    Consequently, TAX Sumary report, that probably use arithmetic operation like me in SELECT statment,  count a wrong number when null values in DEBIT or CREDIT column in JDT1 for VAT declaration.
    How could I solve? And how i can make invoices store 0 rather than NULL in the VAT Line?
    Thanks in advance for your tips and solutions

    Thaks Neetu for your answer.
    I thinks there is a misurandertanding.
    My problem is not SQL.
    My problem is the SAP TAX Report.
    I used SQL only for check data and discover why SAP raise a wrong TAX Summary report.
    So, my question is: Why invoices write null values in journal entry, and how I can solve the problem that TAX summary report use null value in operations so the results are wrong.
    Thanks,
    Jonny Cortonicchi

  • Decision expressions & null values

    How to use null values in a decision expression in decision node in jpd process?
    I need something like
    $emailMetaData/ns0:Attachments != NULL
    Thank you

    Hello
    While that is true for a unique index on columns where all values are null, it is not the case where one of the values is not null:
    SQL> CREATE TABLE dt_test_nulls (id number, col1 varchar2(1))
      2  /
    Table created.
    SQL> CREATE UNIQUE INDEX dt_test_nulls_i1 on dt_test_nulls(id)
      2  /
    Index created.
    SQL> insert into dt_test_nulls values(null,'Y')
      2  /
    1 row created.
    SQL> insert into dt_test_nulls values(null,'N')
      2  /
    1 row created.
    SQL> create unique index dt_test_nulls_i2 on dt_test_nulls(id,col1)
      2  /
    Index created.
    SQL> insert into dt_test_nulls values(null,'N')
      2  /
    insert into dt_test_nulls values(null,'N')
    ERROR at line 1:
    ORA-00001: unique constraint (BULK1.DT_TEST_NULLS_I2) violated
    SQL> insert into dt_test_nulls values(null,null)
      2  /
    1 row created.
    SQL> insert into dt_test_nulls values(null,null)
      2  /
    1 row created.I just thought it was worth pointing out.
    HTH
    David
    Message was edited by:
    david_tyler

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • Null Value Item

    Hi all,
    As per below coding in my application need to export each column data to excel. total column of my table is 10.
    Normally , the 5th column usually is null value and other
    column is not null.
    the question is below coding can't loop 6-10th column due to 5th column is null value then break.
    everybody can tell me how to cause pl/sql can loop 6-10th column even 5th column is null ?
    FOR k IN 1..10
    LOOP
    IF NOT NAME_IN(:system.cursor_item) IS NULL THEN
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, j);
    CLIENT_OLE2.ADD_ARG(args, k);
    cell := CLIENT_OLE2.GET_OBJ_PROPERTY (worksheet, 'Cells', args);
    font := CLIENT_OLE2.GET_OBJ_PROPERTY (cell, 'Font') ;
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    IF GET_ITEM_PROPERTY(:system.cursor_item,COLUMN_NAME) = 'TS_IMP_TYPE' THEN
    IF NAME_IN(:system.cursor_item) = 'EI' THEN          list_index := 1;
    ELSIF NAME_IN(:system.cursor_item) = 'LI' THEN
         list_index := 2;
    ELSE
         list_index := 3;
    END IF;
    CLIENT_OLE2.SET_PROPERTY(cell, 'Value', GET_LIST_ELEMENT_LABEL('TSCNTRMOV.TS_IMP_TYPE',list_index));          
    ELSIF GET_ITEM_PROPERTY(:system.cursor_item,DATATYPE) = 'DATE' THEN
    IF GET_ITEM_PROPERTY(:system.cursor_item,COLUMN_NAME) = 'TS_TRANS_DATE' THEN
    CLIENT_OLE2.SET_PROPERTY(cell, 'Value', TO_CHAR(TO_DATE(NAME_IN(:system.cursor_item)),'DD-MM-RRRR HH24:MI:SS'));
    ELSE
         CLIENT_OLE2.SET_PROPERTY(cell, 'Value', TO_CHAR(TO_DATE(NAME_IN(:system.cursor_item)),'DD-MM-RRRR'));
    END IF;
    ELSE
    CLIENT_OLE2.SET_PROPERTY(cell, 'Value', name_in(:system.cursor_item));
    END IF ;
    CLIENT_OLE2.SET_PROPERTY(cell, 'ColumnWidth', '20');
    CLIENT_OLE2.SET_PROPERTY (font, 'Name', 'Times New Roman');     
    CLIENT_OLE2.SET_PROPERTY (font, 'Size', '14');
    CLIENT_OLE2.RELEASE_OBJ(font);
    CLIENT_OLE2.RELEASE_OBJ(cell);
    next_item;
    END IF;
    END LOOP;
    best regards
    boris

    Hi Gerd,
    tks for yr remind.
    i have another one question. can u help me ?
    my trigger is use for export data to excel from data block. i feel it process slow too. because it is a one by one column/row insert.
    how to enchance the performance from coding ?
    i know that use table type in trigger for store a heap of data then insert to excel once. but i don't know how to implement. can u tell me how to do that .
    tks a lot.
    pls see below trigger is one by one insert.
    PROCEDURE EXPORT_EXCEL IS
    app CLIENT_OLE2.OBJ_TYPE;
    workbooks CLIENT_OLE2.OBJ_TYPE;
    workbook CLIENT_OLE2.OBJ_TYPE;
    worksheets CLIENT_OLE2.OBJ_TYPE;
    worksheet CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    cell CLIENT_OLE2.OBJ_TYPE;
    font CLIENT_OLE2.OBJ_TYPE;
    patterns CLIENT_OLE2.OBJ_TYPE;
    j INTEGER;
    k INTEGER;
    file_name_cl VARCHAR2(32767);
    item_prompt VARCHAR2(32767);
    fir_item VARCHAR2(80);
    cur_item VARCHAR2(80);
    list_index NUMBER (1);
    user_cancel EXCEPTION;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Excel.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Workbooks');
    workbook := CLIENT_OLE2.INVOKE_OBJ(workbooks, 'add');
    worksheets := CLIENT_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := CLIENT_OLE2.Invoke_OBJ(worksheets, 'Add');
    go_block('TSCNTRMOV_HB');
    j:=2; /* Represents row number */
    k:=1; /* Represemts column number */
    args:=CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(args, j);
         CLIENT_OLE2.ADD_ARG(args, k);
         cell:=CLIENT_OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
         CLIENT_OLE2.DESTROY_ARGLIST(args);
         CLIENT_OLE2.SET_PROPERTY(cell, 'Value', 'Container Movement Report');
         font := CLIENT_OLE2.GET_OBJ_PROPERTY (cell, 'Font') ;
         CLIENT_OLE2.SET_PROPERTY (font, 'Name', 'Times New Roman');
         CLIENT_OLE2.SET_PROPERTY (font, 'Size', '18');
         CLIENT_OLE2.SET_PROPERTY (font, 'Bold', True);
         CLIENT_OLE2.RELEASE_OBJ(font);
         CLIENT_OLE2.RELEASE_OBJ(cell);
         /* Add the column headings using item prompts */
         j:=4 ;
         fir_item := Get_Block_Property ( :SYSTEM.CURRENT_BLOCK, FIRST_ITEM );
         WHILE ( fir_item IS NOT NULL ) LOOP
              cur_item := :SYSTEM.CURRENT_BLOCK || '.' || fir_item ;
              item_prompt := GET_ITEM_PROPERTY(cur_item, label);
         args:=CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(args, j);
         CLIENT_OLE2.ADD_ARG(args, k);
         cell := CLIENT_OLE2.GET_OBJ_PROPERTY (worksheet, 'Cells', args);
         font := CLIENT_OLE2.GET_OBJ_PROPERTY (cell, 'Font') ;
         patterns := CLIENT_OLE2.GET_OBJ_PROPERTY (cell, 'INTERIOR') ;
    CLIENT_OLE2.DESTROY_ARGLIST(args);
         CLIENT_OLE2.SET_PROPERTY(cell, 'Value', item_prompt);
         CLIENT_OLE2.SET_PROPERTY(cell, 'ColumnWidth', '20');
         CLIENT_OLE2.SET_PROPERTY(patterns, 'ColorIndex', '6');     
    CLIENT_OLE2.SET_PROPERTY (font, 'Name', 'Times New Roman');     
         CLIENT_OLE2.SET_PROPERTY (font, 'Size', '14');
         CLIENT_OLE2.SET_PROPERTY (font, 'Bold', True);
         CLIENT_OLE2.RELEASE_OBJ(font);
         CLIENT_OLE2.RELEASE_OBJ(cell);
         fir_item := GET_ITEM_PROPERTY( cur_item, NEXTITEM ) ;
         k := k + 1 ;
         END LOOP;
         go_block('TSCNTRMOV');
    first_record ;
    j:=5; /* Represents row number */
    k:=1; /* Represemts column number */
         LOOP
              --FOR k IN 1..38
              --LOOP
              WHILE (GET_ITEM_PROPERTY(:system.cursor_item,VISIBLE) <> 'TRUE') LOOP     
                   IF NAME_IN(:system.cursor_item) IS NOT NULL THEN
    --     WHILE (NAME_IN(:system.cursor_item) IS NOT NULL) LOOP
              args:=CLIENT_OLE2.CREATE_ARGLIST;
              CLIENT_OLE2.ADD_ARG(args, j);
              CLIENT_OLE2.ADD_ARG(args, k);
              cell := CLIENT_OLE2.GET_OBJ_PROPERTY (worksheet, 'Cells', args);
              font := CLIENT_OLE2.GET_OBJ_PROPERTY (cell, 'Font') ;
         CLIENT_OLE2.DESTROY_ARGLIST(args);
    IF GET_ITEM_PROPERTY(:system.cursor_item,COLUMN_NAME) = 'TS_IMP_TYPE' THEN
                   IF NAME_IN(:system.cursor_item) = 'EI' THEN
                        list_index := 1;
                   ELSIF NAME_IN(:system.cursor_item) = 'LI' THEN
                        list_index := 2;
                   ELSE
                             list_index := 3;
                        END IF;
                        CLIENT_OLE2.SET_PROPERTY(cell, 'Value', GET_LIST_ELEMENT_LABEL('TSCNTRMOV.TS_IMP_TYPE',list_index));     
                   ELSIF GET_ITEM_PROPERTY(:system.cursor_item,DATATYPE) = 'DATE' THEN
              IF GET_ITEM_PROPERTY(:system.cursor_item,COLUMN_NAME) = 'TS_TRANS_DATE' THEN
                   CLIENT_OLE2.SET_PROPERTY(cell, 'Value', TO_CHAR(TO_DATE(NAME_IN(:system.cursor_item)),'DD-MM-RRRR HH24:MI:SS'));
              ELSE
                   CLIENT_OLE2.SET_PROPERTY(cell, 'Value', TO_CHAR(TO_DATE(NAME_IN(:system.cursor_item)),'DD-MM-RRRR'));
                   END IF;
    ELSE
                   CLIENT_OLE2.SET_PROPERTY(cell, 'Value', name_in(:system.cursor_item));
                   END IF ;
         CLIENT_OLE2.SET_PROPERTY(cell, 'ColumnWidth', '20');
         CLIENT_OLE2.SET_PROPERTY (font, 'Name', 'Times New Roman');     
              CLIENT_OLE2.SET_PROPERTY (font, 'Size', '14');
              CLIENT_OLE2.RELEASE_OBJ(font);
              CLIENT_OLE2.RELEASE_OBJ(cell);
    END IF;
    NEXT_ITEM;
    k := k + 1 ;
         END LOOP;
         j:=j+1;
         k:=1;
         IF :system.last_record = 'TRUE' THEN
         exit;
         ELSE
         next_record;
         END IF;
         END LOOP;     
    --CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    CLIENT_OLE2.RELEASE_OBJ(worksheet);
    CLIENT_OLE2.RELEASE_OBJ(worksheets);
         /* release workbook */
         CLIENT_OLE2.RELEASE_OBJ(workbook);
         CLIENT_OLE2.RELEASE_OBJ(workbooks);
         /* Release application */
         CLIENT_OLE2.RELEASE_OBJ(app);
         EXCEPTION
         WHEN user_cancel THEN
         RAISE;
    END;

  • Using null to replace values

    I'm a newbie! Can you tell me how can replace existing values in a variable. My plot in the program is to have the price of products in my right hand then transfer that to the cart and then to cashier lady. I have to make sure and know that when I transfer the price from my right hand to the value cart the right hand should no value, then when from cart to the cashier the cart should have no value. The code below is not yet finish. I'm just testing it on one product. I just to know the transferring concept. Can I use null?
    This my are codes:
    the customer class
    public class customer{
         String fullName,walletName;
         double wallet,money;
         public void sayName(){
              System.out.println(fullName + " is inside the grocery");
         public String giveFullName(){
              return fullName;
         public void sayWalletBrand(){
              System.out.println("Let me see how much money I got from my " + walletName + " wallet\n");
         public void contentWallet(double money){
              wallet = money;
         public void lookWallet(){
              System.out.println("Show that wallet has the value " + wallet);
              System.out.println();
    the product class:
    public class product{
         String description;
         double price,rightHand;
         public double containRightHand(){
              rightHand = price;
              System.out.println(rightHand);
              System.out.println();
              return rightHand;
         public void showDescription(){
              System.out.println("Show product description " + description);
         public void showPrice(){
              System.out.println("Show the product price value " + price);
              System.out.println();
    the cart class:
    public class cart extends product{
         double contents[] = new double[2];
         product doritos,apple;
         //Movement method from rightHand to cart
         public double getProduct1(product doritos){
              contents[0] = doritos.containRightHand();
              return contents[0];
         public double getProduct2(product apple){
              contents[1] = apple.containRightHand();
              return contents[1];
         public void showProduct1(){
              System.out.println("Show that contents[0] has the value "+ contents[0]);
         public void showProduct2(){
              System.out.println("Show that contents[1] has the value "+ contents[1]);
    the cashier class:
    public class cashier{
         customer cashierLady;
         public void tellNameCashier(customer cashierLady){
              System.out.println("Shows the name of the cashier lady named " + cashierLady.giveFullName());
    the main:
    public class grocery{
         public static void main(String []arg){
              customer Peter, Lady;
              Peter = new customer();
              Peter.fullName = "Raymond Malicdem";
              Peter.walletName = "Seiko";
              Peter.wallet = 1000.0;
              Peter.sayName();
              Peter.sayWalletBrand();
              Peter.contentWallet(1000.0);
              Peter.lookWallet();
              product Doritos = new product();
              Doritos.description = "Junk Food";
              Doritos.price = 60.0;
              Doritos.showDescription();
              Doritos.showPrice();
              Doritos.containRightHand();
              cart product1 = new cart();
              product1.getProduct1(Doritos);
              product1.showProduct1();
              Lady = new customer();
              Lady.fullName = "Christine";
              cashier lady = new cashier();
              lady.tellNameCashier(Lady);

    Variables of object (class) types may be set to null, meaning they point to no object.
    Variables of fundamental types (int, byte, char, long, double, float, boolean, etc.) can not be set to null. Maybe you can set your numeric types to 0 and boolean to false, to indicate nothingness.

  • Null values returned when using request.getParameters(

    I have a html form which allows the user to choose options and select a file to upload. When I use method=Post I get null values returned. When I use method=Get I get my parameter values fine.. but I get an error.
    "Posted content type isn't multipart/form-data"
    I would like to know why I am getting null values returned when using Post. I am using the following to get the values from the name=value passed to the servlet.
    String strIndustry = request.getParameter("frmIndustry");
              String strCompany = request.getParameter("frmCompany");
              String strCollabType = request.getParameter("frmCollaboration");
    I have another form where the user can search information in a database that works just fine w/ either Get or Post
    Or perhaps I am using oreilly MultipartRequest incorrectly??? but I copied it directly from another discussion.. ???
    any thoughts
    Thanks

    taybon:
    you could do it like this. in this case, you submit your form with the parameters (industry, company, collaboration), and upload your file at the same time. and in the target servlet, you can build your MultipartRequest object like this:
    MultipartRequest multi = new MultipartRequest(request, temp_location, 50 * 1024);where variable temp_location stands for a temporatory diretory for file uploading.
    and then you get your parameters, so you can build the directory with them. and after that, you can move your file to that directory using File.renameTo();
    but as i've suggested in my previous posting, i just recommend you upload your file in a separate form. and then you can perform an oridianry doPost form submit with those parameters. or you may have problems with the file uploading. (this is just my personal experiences with Multipart).
    there is one other thing i'd like to mention, file.renameTo() won't work if you need to move files to a network drive in windows. it won't work if you move files across file systems in unix.
    Song xiaofei
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Eliminating the null values from popup list item

    Dear All,
    i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
    i want to eleminate the blank null value from the popup list.
    Need Help.
    Thanks & Regards.

    Okay,
    i create a popup list, populate it in runtime with create_group_from_query builtin.
    now when i run the form and click the list item, it display a null value among the other values which are
    return from the create_group_from_query .
    the procedure is below
    procedure Department_proc is
    rg recordgroup;
    n number;
    begin
    remove_record_group('RG');------  this is another procedure which checks for Record group existance and remove it.
    rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
    UNION
    SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
    n:=populate_group(rg4);
    populate_list('control_block.department',rg4);
    end;
    it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
    and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
    from.
    Best Regards

  • After hiding an item, its value cannot be used in a query. How to use the value of a hidden item.

    Hi,
    I have a shuttle. I am using its value in a query by using sql collection array. My requirement is that I need to hide that shuttle. But when I hide the shuttle, its value is not retrived by the query.
    Please give some idea how to get this functionality.
    Thanks,
    chandru

    ChandraBhanu wrote:
    Its a shuttle. so how to create an application item of shuttle type?
    pls give some idea.
    You don't create an application item of shuttle type.  Application items only hold one value, and I thought since you were using a value in a query that you were only using one.  In the case of multiple values my idea to use a page/application item will not work

  • I am gettng Null value for file when i am using a UDF as this

    String FName;
    DynamicConfiguration Conf = (DynamicConfiguration) container.getTransformationParameters(). get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File", "FileName");
    FName = Conf.get (key);
    if (FName == null)
    return "null";
    else
    return FName
    and my error is
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message headplease any on there to help me
    thanking you
    sridahr

    Hi,
    Did u selected the option filename from the Adapter message specific atribute of file adapter.
    When u  run the whole scneario that time this will work if u run the scneario using test message tab of message mapping it will give null value only.
    THe AMSA will work when u test it end to end.
    check it out.
    Advance parameter in file adapter dynamic file name
    Problem in dynamic file name in File reciever adapater
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    chirag

Maybe you are looking for

  • ITunes opens to "ALBUMS" instead of "SONGS".

    I want iTunes to open to "SONGS" when I open it and sometimes it does but often it opens to "ALBUMS" instead. Is there a setting for this? Thanks.

  • Different apple ids for family members?

    I thought the Apple ID was perfectly clear, but now I'm not so sure. My wife and I are sharing 1 Apple ID. But, now that icloud seems to link up 1 user's devices and libraries, it looks as if we should have separate accounts. If one of us creates a n

  • Mac Mail downloads all my old messages with IMAP

    Hi, How do I stop this happening? I just want to download messages from now onwards. But I'm getting thousands of old emails downloading to my inbox and no way to stop it seemingly. I'm on Mac OSX 10.6.8, using Mail 4.6. I have an @hotmail.com email

  • Adobe Reader 8.1.1 does not remember Duplex setting

    Restarting the old thread. Some techinical issues have rendered the earlier post read only. Johnapp - 12:03pm Oct 9, 2007 Pacific I am printing with CUPS under Ubuntu Feisty and I have defined a HP Laserjet-4Si-4Si-MX-600-dpi printer/driver and set t

  • Email client missing

    Hey in my nokia there was an inbuilt email client..... Now it has dissapeared i think because i updated it....now i want it back....pls any one help me...