Thursday, July 7, 2011

Store format mask for ADF BC in Jdeveloper


If you have some format mask that you want to use on multiple occasions you can store them in formatinfo.xml file which resides at following location

C:\Documents and Settings\<Username>\Application Data\JDeveloper\system<jdev-version>\o.BC4J


Suppose we would like to display some dates in “July, 7 2011” format to use in different applications

We will follow the below steps to achieve this

  1. Open format.xml file
  2. Add the following entry under “DOMAIN CLASS="oracle.jbo.domain.Date" entry  <FORMAT text="MMM, dd yyyy"  />        
  3. Open Jdeveloper and entity object contains Date attribute
  4. Go to UI Hints tab, choose format type to Simple Date and you can see the newly added format mask is available in the list


This could safe some amount of time in big projects

Hope you like it happy Jdeveloping

Zeeshan Baig

1 comment:

  1. Hello,

    I am working with Oracle ADF Release 2, I am wondering why I can't edit "Format Type" and "Format" Fields in the UI Hints Tab.
    Any idea why they are disabled?