Change the mask of the executing (Oracle forms 6i) date field format

Hello

I use Oracle forms 6i. I have a domain where I use to store dates. I need to change the format mask of this date the runtime field.
Y at - it no set_item_property built in that I can use to achieve this?


Kind regards
Bet.

Published by: 1009523 on June 3, 2013 11:11

Part 2, help information on the Format mask item property; you will need to make sure that you set the property correctly.

Sorry, I had to drill two answers but my first attempt surpassed the eligible characters in an answer ;-)

Format Mask property
Description

Specifies the display format and input accepted for data in text items.
Applies to  text item
Set  Form Builder, programmatically

Refer to Built-in

n     GET_ITEM_PROPERTY
n     SET_ITEM_PROPERTY

Required/Optional  optional 

Usage Notes

Valid format masks for character strings, numbers and dates are described in the following tables.
Character Strings
The following table describes valid format masks for character strings. 

Element     Example     Description
FM     FMXX99     Fill mode:  accept string as typed, do not right justify.  Allows end user input string to be shorter than the format mask.
X     XXXX     Any alphabetic, numeric, or special character.  End user input string must be exact length specified by format mask.
9     9999     Numeric characters only.  End user input string must be exact length specified by format mask.
A     AAAA     Alphabetic characters only.  End user input string must be exact length specified by format mask.
Character String Examples

Format Mask     Description
XXAA     Will accept: --ab, abcd, 11ab; will not accept: --11, ab11, or ab--(must use XX to accept hyphens and other special characters).
XXXX     Will accept any combination of alphabetic, numeric, or special characters: --ab, abcd, 11ab, --11, ab11, or ab--.  Will accept 1234 or abcd; will not accept 123 or abc.  (To accept input string shorter than mask, use FMXXXX.)
FMXX99     Will accept ab12, ab1, ab followed by two spaces; will not accept 12ab or abcd.  (To produce the Form Builder Version 3.0 Alpha datatype, use FMAAAAAA.)
n     To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes (").
n     Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them. 

NUMBERS

The following table describes valid format masks for numbers.

Element     Example     Description
9     9999     Number of nines determines display width.  Any leading zeros will be displayed as blanks.
0     0999     Display leading zeros.
0     9990     Display zero value as zero, not blank.
$     $9999     Prefix value with dollar sign.
B     B9999     Display zero value as blank, not "0".
MI     9999MI     Display "-" after a negative value.
PR     9999PR     Display a negative value in .
comma     9,999     Display a comma in this position.  For correct behavior in multilingual applications, substitute G to return the appropriate group (thousands) separator.
period     99.99     Display a decimal point in this position. For correct behavior in multilingual applications, substitute D to return the appropriate decimal separator.
E     9.999EEEE     Display in scientific notation (format must contain exactly four "E"s).
FM      FM999     Fill mode: accept string as typed, do not right justify.
n     When you mask a number with nines (9), Form Builder adds a space in front of the number to accommodate the plus (+) or minus (-) sign.  However, since the plus sign is not displayed, it appears as if Form Builder adds a space in front of the number.  (The minus sign is displayed.)
n     To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes (").
n     Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them. 

NUMBER Examples

Format Mask     Description
FM099"-"99"-"9999     Displays the social security number as formatted, including hyphens, even if end user enters only nine digits.To create a Social Security column, create an 11-character column, set to fixed length, with a format mask of 099"-"99"-"9999.  This mask will accommodate Social Security numbers that begin with zero, accepting 012-34-5678 or 012345678 (both stored as 012345678).
99999PR     Accepts -123; reformats as <123>.
999MI     Accepts -678; reformats as 678-.
9.999EEEE     Displays as 1.00E+20.
How Forms handles length mismatches

If a runtime user enters a numeric string that exceeds the format mask specification, the value will be rejected.  For example:

Format Mask     User enters     Result
99.9     321.0     Invalid
99.9     21.01     Invalid
99.9     21.1     21.1
99.9     01.1     1.1
In contrast, if a numeric value fetched from the database exceeds the format mask specification for its display field, the value is displayed, but truncated, with rounding, to fit the mask.  (The item itself within the Forms application retains its full value.)  For example, if the database held the value 2.0666, and the format mask was 99.9, the value displayed to the user would be 2.1.  However, the value of the item within the form would be the full 2.0666. 

Dates

The following table describes valid format masks for dates.

Element     Description
YYYY or SYYYY     4-digit year; "S" prefixes "BC" date with "-".
YYY or YY or Y     Last 3, 2, or 1 digits of year.
Y,YYY     Year with comma in this position.
BC or AD     BC/AD indicator.
B.C. or A.D.     BD/AD indicator with periods.
RR     Defaults to correct century.  Deduces the century from a date entered by comparing the 2 digit year entered with the year and century to which the computer's internal clock is set.   Years 00-49 will be given the 21st century (the year 2000), and years from 50-99 will be given the 20th century (the year 1900).
MM     Month (01-12; JAN = 01).
MONTH     Name of month, padded with blanks to length of 9 characters.
MON     Name of month, 3-letter abbreviation.
DDD     Day of year (1-366).
DD     Day of month (1-31).
D     Day of week (1-7; Sunday=1).
DAY     Name of day, padded with blanks to length of 9 characters.
DY     Name of day, 3-letter abbreviation.
J     Julian day; the number of days since January 1, 4712 BC.
AM or PM     Meridian indicator.
A.M. or P.M.     Meridian indicator with periods.
HH or HH12     Hour of day (1-12).
HH24     Hour of day (0-23).
MI     Minute (0-59).
SS     Second (0-59).
SSSSS     Seconds past midnight (0-86399).
/. , .     Punctuation is reproduced in the result.
"..."     Quoted string is reproduced in the result.
FM     Fill mode: assumes implied characters such as O or space; displays significant characters left justified.  Allows end user input to be shorter than the format mask.  (Use in conjunction with FX to require specific delimiters.)
FX     All date literals must match the format mask exactly, including delimiters.
n     When you prefix a date mask with FX, the end user must enter the date exactly as you define the mask, including the specified delimiters:  

Date Examples

Format Mask     Description
FXDD-MON-YY     Will accept 12-JAN-94, but will not accept 12.JAN.94 or 12/JAN/94 because the delimiters do not match the mask. Will not accept 12JAN94 because there are no delimiters.  Will accept 01-JAN-94 but will not accept 1-JAN-94.
FMDD-MON-YY     Will accept 01-JAN-94.  Will also accept the entry of other delimiters, for example 01/JAN/94 and 01 JAN 94.  However, will not accept 01JAN94.  Will accept 1-JAN-94, converting it to 01-JAN-94.
DD-MON-YY     Will accept 12.JAN.94, 12/JAN/94 or 12-JAN-94. Note: Any delimiter characters will be accepted, but if delimiters are omitted by the end user, this mask will interpret date characters as a delimiters.  Will accept 12-JAN94, (but will erroneously interpret as 12-JAN-04); but will not accept 12JAN94, because "AN" is not a valid month name.
n     Use of a format mask only affects how the data looks.  Form Builder stores full precision, regardless of how the data is presented.
n     Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them.
n     To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes (").  Note, however, that double-quotes themselves cannot be used as a character.  In other words, trying to achieve output of DD"MM by specifying a mask of DD"""MM would not work.

Format Mask     Description
FMMONTH" "DD", "YYYY     Displays the text item data in the specified date format: JANUARY 12, 1994, including the appropriate blank spaces and comma.
FMDD-MONTH-YYYY     Displays as 12-JANUARY-1994.
DY-DDD-YYYY     Displays as WED-012-1994.  Note: for input validation including day of the week, a mask that allows specific determination of the day is required, such as this example or DY-DD-MM-YY.
n     When you use day of the week formats, be sure that the data  includes day of the week information.  To avoid illogical masks, display also either the day of the year (1-366) or the month in some format. 

Format Mask     Description
DD-MONTH-YYYY     Displays as 12-JANUARY-1994.
DY-DDD-YYYY     Displays as WED-012-1994.
DY-DD-MON-YY     Displays as WED-12-JAN-94.  Be sure to include month.  Avoid masks such as DY-DD-YY, which could generate an error.
NLS Format Masks

The following table describes valid National Language Support (NLS) format masks.

Element     Example     Description
C     C999     Returns the international currency  symbol.
L     L9999     Returns the local currency  symbol.
D     99D99     Returns the decimal separator.
G     9G999     Returns the group (thousands) separator.
comma     9,999     Displays a comma in this position.
period     9.999     Displays a decimal point in this position. Displays a decimal point in this position.
NLS Format Mask Examples

Format Mask     Description
L99G999D99     Displays the local currency symbol, group, and decimal separators:  if NLS_LANG=American, this item displays as $1,600.00; if NLS_LANG=Norwegian, this item displays as Kr.1.600,00.
C99G999D99     Displays the appropriate international currency symbol: if NLS_LANG=American, this item displays as USD1,600.00; if NLS_LANG=French, this item displays as FRF1.600,00. 

Craig...

Tags: Oracle Development

Similar Questions

  • How to change the color of form fields

    I don't know how to change the color of form fields. They default to gray, but I don't know how to make a different color.

    Gray does not match the color scheme of my landing page!

    Thank you!

    I think you have two options when you are working on a landing page with an embedded format:

    • You can change the background color of the entire form field set by selecting the shape, and then clicking on the Toolbox. In the window that opens go to the second (on a paint brush icon) and select the background color you want.
    • You can change the background color of the actual fields in the form by adding CSS styles. Select the Toolbox, go to the last tab (Tools Extract page) and in the middle of this window, you will see "head | CSS | JS"- select this average CSS tab and enter the style code to get the color you want. Here is an example of code you can put in it. Note that #000000 is the color code for black. Here is more information about the code: css - background in the input fields and text color? - stack overflow

  • FRM-13008: cannot find javaBean with the name 'oracle.forms.fd.AddItem '.

    Hello

    I have 10 g forms in my pc (windows xp) location. I have jar jar files with me and associated examples.

    1. inside the My E:\DevSuiteHome_2\forms\java copy the additem.jar

    2 inside of the E:\DevSuiteHome_2\forms\server, I found the formweb.cfg file in the place where the first pot.

    serverApp = default
    # Forms applet archive for JInitiator
    archive_jini = frmall_jinit.jar, AddItem.jar

    and save the file.

    Now when I open the form in forms 10g, I get the following error. Please help me.

    FRM-13008: cannot find javaBean with the name 'oracle.forms.fd.AddItem '.

    Please help me how to solve my problem.

    Iqbal

    If it's only a 'Design' error, you can ignore it.

    Yes, but if you want to get rid of this error, include the full path to the jar file in the registry in the FORMS_BUILDER_CLASSPATH parameter

  • Change the level of confidentiality OTN profile field to yourself

    I think that some of the information that appears in OTN profile are external site home of Oracle. I gave my business information there and it is translated here by OTN with level of protection of personal information for registered users. I tried to change that for yourself, but it always throws error message: Unhandled Exception. So I have to update the name of the company (as is required) in the private sector in oracle's profile page.

    Is this a bug or we cannot change the level of confidentiality for external fields in OTN profile page.

    I wanted everyone to know that I was able to reproduce this error and filed a priority ticket with the technical team. I will keep posted you.

  • Is there a way to allow the end user to change the font color in a text field?

    I didn't know that LiveCycle existed yesterday so I was using the Google a lot.

    I'm building an application form and asked if there was a way to change the font color in a text field. (EXAMPLE: content Original is black.) The notes are in red)

    I have 2 ideas on that, we should type out and highlight, and then click a button to turn red. The other way. I'm more part. Have a radial affecting when turned off, black types. When on, red types. What is the best way to do it or is it still possible?

    Figured it out. Replace 'plain text' 'rich text' and have user support on ctr + e. seems strange to me, but it works.

  • Open word, which is stored in the database: Oracle Forms 10g

    Hi all

    I created an application in the generator of forms of oracle 10g. He got different modules.

    I created a different user manual for each module in Microsoft Word.I to store word documents in the database and need to open this document of the application user's manual. I want to add a help button in the toolbar of the application, so that I can keep the name of the file in the toolbar of the separate modules.

    If I call the word using an annual, I need to save documents in the same order if I'm going to implement the same software based on some other clients, right? So please suggest me some other way and pls share the code...

    Its urgent...

    Thanks in advance...

    What warning? How can I help you if you post just a few lines of code? Do you think we could "guess" your code?

    Please, send ALL the code.

    François

  • How to change name (label) text dynamically in oracle forms

    My requirement is, I want to change the name of text dynamically in the form of oracle. How can do us?  (Not the label of the button (or) box... Looking for a title of text element...)

    Dear Sir

    You cannot change the properties of TEXT elements. Instead, you can use the TEXT_ITEM guests to display the legend.

    Manu.

  • change the configuration of rman in Data Guard envrionemnt

    Hello

    can I change configuration rman on primary and standby without having to stop the replication or swtich?

    the changes are replicated or I have to manually change the two sides? (and what does it matter if im using catlaog or not?)

    v11g

    Thank you

    The changes apply only to primary and standby databases, do not need to change or stop.

    So I highly recommend to read: https://docs.oracle.com/cd/E11882_01/server.112/e41134/rman.htm#SBYDB04700

  • can we change the creator of a record ID field?

    We need to change the creator of a BP to another user.  Is anyway to do after you create the record?

    Hello Mohammad.

    If you have permission "Modify the property manual", you can open the form and click Edit > transfer of ownership. This will open the list of the users of the project, but you can select a user with permission to display on the form. When you select a user, click the form designer OK will change as the new user. In any part of the workflow if you have selected the assignee as dynamic > creation stage Match to this task of step will be sent to the new owner.

  • change /-the font size of a text field on master pages is not possible? (field prop)

    Hello

    I would like to change the font and the font size of a textfield on a master page.

    I wonder if I did anything wrong, because font options (size, fonts, etc.) are simple grayed out / not available, when I click on my text field.

    Apparently, there is a way to customize the font properties of a textfield (only) on the master page.

    Well, I guess it would work with java script in the event init... but really, why the hell it should not possible just use properties/text properties?

    Please correct me if I'm wrong. I'm doing something wrong, or is it really not possible to customize the police of a text field on master pages?

    Import you the form in the designer?

  • Change the value to trigger record data for 1 s sampling frequency of 50 KHz

    Hello

    I have a VI with NI9215 and cDAQ-9178 chassis hardware. The function of the VI came out an instruction to RS232 interface and record 1 second of data every time that the set point is changed.

    The procedure is

    (1) modify the policy to the flow regulator

    (2) wait 2 seconds.

    (3) record of 4 channels for one second to the sampling frequency of 50 KHz.

    At present, the problem is for the first edition of this program, two seconds (rather than) data was saved and corn, the error message 200279.

    II. I revised for the second edition of the structure of the producer and the consumer who can increase the speed of the buffer.

    The question is how to configure the trigger to start the backup of data and limit data save for one second whenever the set point value changes.

    (1) which edition is best for my application?

    (2) how to trigger the data record?

    (3) how to record only a second of data?

    I also checked this announcement and the elapsed time seems not to work for this case.

    Any help would be greatly appreciated!

    Melody

    Hello

    you have not used properly the nodes property.

    1. replace the case structure in the first loop, with DAQmx features, with a structure of the event. Change the event fires for a worth of control of the setpoint change.

    Edit: as stated in your first post, use the structure of the event, but put inside the while loop.

    2. DO NOT connect error output from the stop command property node. Replace it with a local variable for the stop button.

    Try these and let me know.

  • Cannot add the payment method that I can't change the country in Windows store information field.

    Hello

    I want to buy an app in the store windows using my credit card.  I found the section where I can add payment options.  It's all good and Nice, the only problem is that I can't change the country for when I'm in my credit card information.  It is a static field set to the United States.  Fill in the information because I live in the Canada.  If you can let me know if this is something I could do wrong.

    LinkHero

    I discovered what the problem is.  I don't know when this happens or what it is connected to.  As far as I know is if you go in '-> Panel-> clock, language and region change the location ' then change the "location:" in your country.  You should be able to add the payment method.

    Now, it worked for me and I'm guessing that this setting is set by default to the States.  Don't know why it is not requested in the installation where you live, but I guess they have there reasons.
  • Changing the settings to default in 4.0 Format

    I want to change the default color for tables in a diagram.   My instructions say to go to tools-general options - chart - format... except that I don't see a "General Options" entry in 4.0   I've been going crazy trying both 4.0 via Google.   I'm guessing that entry does not exist in 4.0 - but surely there must be a way to change the default format settings in SDDM 4.0.  Can someone help me?  Thank you.

    Right-click on the design, and then select Properties-->--> diagram--> Format settings

  • ESXi 4.1 change the selection of trace on data warehouses

    ESXi 4.1, I have a couple of data warehouses that were not configured correctly. The selection of the path is set to fixed, while the other data stores have alternate-control storage IO. I'm looking for the less risky/disruptive way to change the configuration of these data stores. There are 15 ESX hosts.

    When to change the configuration of the data store is all for example conditions pre move VMs in another data store, stop the virtual machines etc.. Y at - it any disturbance to the ESX host?

    Hello

    Changing paths is not disruptive and can be done online, as long as takes care of the storage and SAN network is in good health.

    Validate it seems that some are on Round Robin and I presume that it is on the same storage array.

    You can do this by running a PowerCli script to modify the path selection: Home

    I don't have the scrip to activate SOIC

    Concerning

    Please allow points to useful/correct answers

  • Change the color of a dynamic text field selection

    Hi all

    Among the requirements of the project, I must provide functionality in my application to be able to change the color of the text box selection. Which does not Flash, I searched the net and found a good example of this with the flash.geom.ColorTransform and TextFormat classes. It works very well with windows. However, it does not work on Mac OS x. I use Flash 8 with ACE 2.0 for development.

    Please see the attached code

    Please advice.
    TIA

    I...

    Flash player version problem... I've upgraded to Adobe Flash Player 9 update 3, version 9.0.115.0 on Mac FF2 number and the color transformation works perfect!

Maybe you are looking for

  • eSurf browse highjacker. How can I remove it?

    I end up having as the first page of the esurf search engine. How can I get rid of him? It is not saved as my home page, I checked. I also deleted my destination in preferences icon of mozilla. I uninstalled a few recent planned control panel where e

  • EliteBook 745 G2: Troubleshooting the AMD video driver

    Hi all! I have reported problems difficult to solve by myself, I found. I have a hp elitebook 745 G2 for my personal use. I've updated to windows 10 a week ago, but since I met many BSOD and PC freezes, so I did a clean Windows 10 operating system in

  • sequence to install driver

    Please give me the sequence to install the driver of hp for computer laptop 15-e026AX...

  • Media Center won't play the .wtv files

    Windows vista 64-bit with amd processeor will not play the .wtv files in media center. play dvr.ms file very well.But if I try to read a .wtv file I get nothing.

  • Open with / Application not found

    I me was a virus called 'Vista Internet Security' told me almost everything on my computer has been infected, and he tried to make me buy a $ 50 allegedly program fix. I knew it was fake, so I used SUPER Anti Spyware Free Edition to get rid of him. H