DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: how to stick a number(amount format) to a session

  1. #1
    Join Date
    Dec 2002
    Posts
    110

    how to stick a number(amount format) to a session

    Hi

    I have a change requirement from the client where
    now he wants all amount figures returned from oracle
    procedures through resultsets with a comma & 2 decimal
    format.

    my solution was to pad all amounts with to_char(amt,'99,99,99,999.00')

    Is there anyway i can set the number format for a session
    something on the line of how we can set a date format using
    nls_date_format parameter with a logon trigger.

    Regards
    Sushant

  2. #2
    Join Date
    Feb 2003
    Location
    Pak
    Posts
    64
    try this one:

    Write this code in the triggers of PRE-TEXT-ITEM and POST-TEXT-ITEM
    at form level.

    BEGIN

    -- DESC : DEFINE NUMBER FORMAT
    ---------------------------------------------------------------------

    IF Get_item_property(:system.current_item,DATATYPE) = 'NUMBER' Then
    Set_Item_Property(:system.current_item,FORMAT_MASK,'99,99,99,999.00');
    END IF;

    END;

    May be it helps u.
    Namet ullah Kalair

  3. #3
    Join Date
    Dec 2002
    Posts
    110
    My front end is Java. We are using servlets - JSP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width