Format Mask Property

I have a field “cat_no. varchar2 (9)” now I want the values should be save in this field such as 11-23-765, 23-45-876 etc. I use Format mask property of this field as
FM99"-"99"-"999, but It can not save with dash (-) such as 11-23-344, it save as 1123344, but I want it should be save in the database as 11-23-344.
So kindly send me the solution of this problem.
Best regards,
Shahzad

I use Format mask property of this field as FM99"-"99"-"999, but It can not save > with dash (-) FM99-99-999 is not a valid Format Mask because of that you cann't save it.
I'm not sure that you can use Format Mask Property for that purpose.
Write a function which returns formated sting instead of using Format Mask Property.
Cheers!

Similar Messages

  • Getting format mask property in PJC

    I am developing a PJC that extends oracle.forms.ui.VTextField.
    I would like to read out the "format mask" property set in Oracle forms.
    How to get it? Maybe this.getProperty(ID.??) or is there a memeber function that I can use?
    Thanks in advance.
    Mario

    You don't need to change the NLS_LANGUAGE; the separators are determined by NLS_NUMERIC_CHARACTERS:
    CHE_TEST@tcp_asterix_impl> alter session set nls_numeric_characters='.,';
    Session altered.
    CHE_TEST@tcp_asterix_impl> select 1/2 from dual;
           1/2
            .5
    CHE_TEST@tcp_asterix_impl> alter session set nls_numeric_characters=',.';
    Session altered.
    CHE_TEST@tcp_asterix_impl> select 1/2 from dual;
           1/2
            ,5So what you would want is to set NLS_NUMERIC_CHARACTERS to ',.'
    cheers

  • Date format Mask for CHAR datatype

    hi
    i want to assign a format mask like 'dd/mm/yyyy' to a field which has char datatype can i ?

    The quickest answer to your question is to try it! :-) If you click on the Format Mask property of your Text Item and then press F1 Forms will display the Format Mask Help information for this property. All of the valid combinations for a Text Field Format Mask will be displayed.
    To answer your question, you can put a format mask on a Text Item that can enforce the basic format of 'DD/MM/YYYY', but you could get data like: 99/99/9999. You would have to write code in a When-Validate-Item trigger that would ensure the user has entered a valid date.
    Hope this helps.
    Craig...

  • Justification property is not working when using a format mask

    Hi all,
    I have a text item with number data type and right to left reading order,
    I put the justification property to right.
    I used a format mask to set two decimal places for the entered number.
    The problem is the justification property is not aligning right, I noticed that it's aligning right only if i removed the format mask or changed the reading order to (left to right).
    I hope there is a solution for this
    Thanks

    Format mask and justification will not work for Non english character sets.
    To support bidirectional languages such as Arabic, do not use Left or
    Right justification (numeric text items can use Right justification). Use
    Start and End instead.
    Rajesh ALex

  • Page Item / Source / Format Mask  -  Table Column Numeric

    Form page to maintain a table row, the item is for a numeric column. Selected/Entered the format mask "999G999G999G999G990D00" for the Page Item / Source. I was under the impression that this would result in the page item being formatted with the mask when navigating out of the item. I can enter non-numeric values and navigate out with no error being raised/reported ... is this expected behaviour?
    Thanks

    APEX was touted at being a MS Access application killer and a RAD tool. If the user is presented with having to understand the complexities of session state variables, page item variables, etc. then a lot of developers/users will be switched off. APEX was supposed to appeal to the masses as the pipes and plumbing coding behind having a web application front end on an Oracle database backend was being hidden. The converse seems to apply when implementing functionality like a format mask being applied both on entry and display of several page items. So I may be able to implement the required format validation using Javascript but if I have to apply this functionality to more than one page item in now way does APEX lend itself to RAD, e.g. In Oracle Forms you could select multiple Block/Items and then change a property to apply to all the selected items.

  • List item format mask

    hi dear
    possible to used format mask in list item DATE. i want that date will appear only 2007. possible this 'YYYY'
    but i tried to put in intial values but dont work error. i put $$YYYY$$.. anyone knows?

    There is no Format Mask for list items in the property palette. But you can enter years by clicking on Elements in List. Then type in each year (e.g., 2007) in both the List Element and List Element Value.
    Also look in the property palette for Initial Value and enter the desired year.
    If you don't want to hardcode the year(s), then you can populate the list item dynamically at runtime using built-ins. See "Manipulating List Items at Runtime" in the Help documentation for examples.

  • BC4J Date format mask

    After specifying a date format for an attribute of an entity object using Entity Object Editor - Control hints on the attributes.
    Format type: Simple Date
    Format: dd/MM/yyyy
    When inputting the date manually rather than using the date picker, if only 2 digits are supplied for the year i.e 01/01/02 the resulting date is 01/01/0002, is there any way to force this so the user has to input 4 digits for the year?
    Thanks

    In a form you can set the format mask item property
    whatever you want.
    Usually we try to use DD-MON-YYYY without enclosing it single quotes. but you can try
    ' . . ' or simplly . .
    and see what happens.
    Suresh

  • Numeric Format Masks on Text Items

    Hello all.
    I've been struggling to find the best way to use format masks for numbers on text items.
    So far, I've found that the property "Format Mask" on the SOURCE group does not work. Am I correct?
    I am trying to use To_Char to format the number, but I always get "NUmeric or Value Error".
    In short, what is the easiest and most widely used way to format numbers (my language is pt-br). Ex.: 12500.00 becomes 12.500,00.
    Thanks

    Peter's solution shows you the syntax for to_char to get what you want; just replace the hard-coded number in his example with the value (or the expression giving the value) you're trying to format. So, something along the lines of:
    select to_char(t.value, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') val,
        to_char(t.factor, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') rslt
    from table t
    where...Or, in a slightly more readable manner (I don't like having to constantly escape quote marks):
    select to_char(t.value, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') val,
        to_char(t.factor, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') rslt
    from table t
    where...-David

  • Format Mask display #########

    Dear members,
    i have field with length 9, datatype char, but the value is numeric like 112223333 i want to display 11-222-3333.
    i set the Format Mask to FM99"-"999"-"9999 when i give the 9 digits it display
    when i give 7 digit it is right.
    but when > 7 then #########.
    then
    i set the width = 11 but now it accepts the 11 digits i wants the user only can enter the 9 digits and the cursor jump to the next field.
    i set the automatic skip property = yes but it accept 11 digits then jump to the next item.
    what's the problem?
    thanks
    Muhammad Nadeem
    [email protected]
    Message was edited by:
    Muhammad Nadeem

    Dear members,
    the text box length is 9, the format mask is FM99"-"999"-"9999 now when i enter the 112223333 it display #########
    when i give 7 digit for example 1234567 it display 12-345-67
    but when more than 7 then #########.
    after that i increase the length to 11,
    now it is okey but the user can enter 11 digit which give error. my column length is 9. when the user enter 9 digits. like 123456789 it display 12-345-6789. but the user can enter 11. so it will give error.
    thanks
    Muhammad Nadeem.

  • Number format mask of text item is not applied

    Hello all,
    I want to format a number like 999G999G999G999G990D00
    Is specify the format mask under source of the item. But it is not applied and I don't understand why.
    See http://apex.oracle.com/pls/otn/f?p=53873:2 for example
    Btw. is it possible to set the format for all numbers in the application at once? I want to have a thousand separator in most cases.
    Message was edited by:
    Jacob_B

    Hello Jacob,
    Btw. is it possible to set the format for all numbers
    in the application at once? I want to have a thousand
    separator in most cases.I am using substitution strings for things like that. You can define some "global" substitution strings on page application definition.
    So you just have to put in the format (999G999G999G999G990D00 ) in there once and give it a name. Let's say NUMBER_THOUSAND.
    Afterwards you can reference it wherever you need the format e.g. this way:
    to_char(10000,'&NUMBER_THOUSAND.').
    This way you just have one place where to change the format model.
    Regards,
    Tine

  • Problem with date format mask 'D'

    I am experiencing an extremely thorny problem with the date format mask ‘D’. I am trying to use it to check whether today is a Monday. The variable v_temp_day is set to sysdate. For the last 4 weeks the code has behaved erratically – giving a different result at 02:00 than at 10:30 even though it is only taking account of the date. In desperation I inserted a debug statement formatting the date in a variety of ways – with interesting results. Oracle is somehow managing to tell us that today is simultaneously Monday and Tuesday depending on which format mask you choose. Anyone got any thoughts or suggestions?
    PROC_ID TO_CHAR(STAMP_TIM
    EVENT_SQLERRM
    RRHKP010 17092007 02:00:00
    TO_NUMBER( TO_CHAR( v_temp_day, D ) ) = 2. TO_CHAR( v_temp_day, D ) = 2. TO_CHAR( v_temp_day, DY ) = MON. TO_CHAR( v_temp_day, DAY )
    = MONDAY . TO_CHAR( v_temp_day, Day DD-MON-YYYY HH24MISS ) = Monday 17-SEP-2007 020000. TO_CHAR( v_temp_day, D ) = 2.
    SQL> select to_char( sysdate, 'D' ) from dual ;
    T
    1

    My book says the trunc(d,'iw') will return "same day of the week as Jan 1st of that year"It's bad book.
    Please read about [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96540/functions176a.htm#80159]TRUNC & 'IW' Format Model and [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96529/ch3.htm#50331]Database Globalization Support Guide: First Calendar Week of the Year in the manual.

  • Changing the format mask of a numberic field in a  report

    Hi,
    I'm fethcing some numeric values from the DB and displaying them in the report. I'd like to use comma as the decimal separator but I can't get it to work. I'm very lost with all the NLS settings. I've tried using the format mask ad '9999990D00' but it still displays as dot as the decimal separator. What do I have to do in order to use comma as the decimal separator?
    Thanks

    Try putting
    SRW.DO_SQL('alter session set NLS_NUMERIC_CHARACTERS='', ''');
    in the Before Report Trigger.
    The setting might be reused for the next report if Reports is set to reuse the database connection.
    To avoid this, I guess you change it back to default in the After Report Trigger.
    Hope this helps!
    Morten

  • Using a datepicker with format mask MM/YYYY gives error on submit

    I'm trying to use a datepicker with the format MM/YYYY.
    The item is linked to a database column of type DATE.
    The items displays correctly (month and year), but when submitting the page, I get an "ORA-01843: not a valid month" error from the built-in DML process.
    Shouldn't Apex apply the same date format mask to the item value when trying to save it to the database?
    - Morten
    http://ora-00001.blogspot.com

    Hi Mike,
    I can/need to do that for my own PL/SQL processes, but the problem is with the Built-In DML Process....
    - Morten
    http://ora-00001.blogspot.com

  • Date format mask in Enter-Query mode

    Hi,
    I'm developing a Form which is able to query the masterblock from a detail-item.
    The queryable detail-item is a date field and has a datatype: DATETIME. When a new record is entered the values in the date field are stored in the database like "18-10-2002 15:04:02"
    When the form is in enter_query mode the user must be able to enter 18-10-2002 (DD-MM-YYYY format mask, so without time mask). When execute the query with this date format the query is not able to find data.
    I used a Key-Execute-Query on the detailblock like this:
    SELECT 1.COLUMN
    , 2.COLUMN
    INTO :1.COLUMN
    , :2.COLUMN
    FROM TABLE.1
    , TABLE.2
    WHERE 1.COLUMN = 2.COLUMN
    AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    Can anyone please help me?
    Regards,
    Ronny.

    Hi Ronny,
    I'm not sure to have got exactly your issue (especially why you have to use that select in master-detail query), but I suggest you to substitute
    ...AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    with
    ...TRUNC(1.COLUMN) = TO_DATE(:avg.datum,'dd-mm-yyyy');
    To be fair, I would use it in the where clause, even if you set it dinamically.
    Let us know,
    Marco

  • Applying date and number format mask

    I have specified a date format for an attribute and a number format for another attribute of an entity object using Entity Object Editor - Control hints for the attributes.
    The date format is:
    Format type: Simple Date
    Format: dd.MM.yyyy
    The number format is:
    Format type: Currency
    Format: 0,000.00 km
    When using <c:out value="${bindings.MyDate}"></c:out> the format mask for the date is applied and it looks good, but when using
    <c:forEach var="Row" items="...">
    <c:out value="${Row.MyDate}"></c:out>
    </c:forEach>
    the format mask is not applied.
    When it comes to the number format it is not applied no matter what I use.
    I have tried setting the format for the view object attributes as well but the result is the same. How do I make this work?

    Can it have something to do with <html:form> ? Since it works using <c:out value="${bindings.MyDate}"></c:out> inside a html:form.

Maybe you are looking for

  • Error while inserting xml data into table

    Hello I am running thid stored procedure and this compiles correctly , but when I try to execute it gives me a error, I have been trying this form the past 3 days , could anyone please help me ASAP SQL> CREATE OR REPLACE PROCEDURE loadxml12 AS 2 fil

  • Chmsee will not open chm files.

    I have 3 seperate chm files, I've tried opening them using chmsee, everytime I try and open or view the chm file this is all that shows up each time. Mammon slept. And the beast reborn spread over the earth and its numbers grew legion. And they procl

  • How to install a USB Microsoft keyboard

    I would like to install a USB Micorosoft Sculpt Ergonomic keyboard & mouse on my TouchSmart 520 PC. How can I disconnect the HP keyboard & mouse ? Thank you.

  • How make LOV in JDeveloper 10g by ADF

    How make LOV in JDeveloper 10g by ADF please help guys ?

  • Dell D620-Intel 3945 + PEAP

    Has anyone noticed an issue with Dell D620 Laptops using the Intel 3945 card and WinXP with regards to PEAP authenication (mschapv2)? We are migrating to a LWAPP enviroment, but current we have a large autonomous AP enviroment. We have a very mobile