Implementation Guide for Oracle Billing Insight > Using and Customizing Email and SMS Notifications >
Customizing the Default Display Patterns Used in Notifications
You can change the default display patterns Oracle Billing Insight uses to display the following data in email and SMS notifications:
- Date
- Time
- Date and time
- Integers
- Decimals (double)
- Amounts
The default notification display patterns are defined in the notification.cfg.xma.xml file. The valid display patterns are defined in the ApplicationLabels_LanguageCode_Country.properties file, as shown: ## Global Pattens used for reporting engine #representation of integer global.pattern.number.integer=#,##0 #representation of a decimal global.pattern.number.decimal=#,##0.00 #representation of a percentage number global.pattern.number.percent=#0.00% #representation of amount value with currency global.pattern.number.amount=\u00a4#,##0.00 global.pattern.number.amount2=\u00a4#,##0.00;\u00a4(#,##0.00) global.pattern.number.amount3=#,##0;(#,##0) global.pattern.number.amount4=#,##0.00;(#,##0.00) global.pattern.date.short=M/d/yy global.pattern.date.long=MMM/dd/yyyy global.pattern.date.input=MM/dd/yyyy global.pattern.date.jquery=MM/dd/yy global.pattern.time.short=HH:mm global.pattern.time.long=HH:mm:ss global.pattern.date.disp=MMM dd,yyyy global.pattern.date.expiration=MM/yyyy global.pattern.date.details=MM/dd/yyyy hh:mm aaa global.pattern.thousands=, global.pattern.decimalPlaces=2 global.pattern.date.medium=MM/dd/yyyy global.pattern.date.time=MM/dd/yyyy HH:mm:ss global.pattern.decimalPoint=. #The separator and order of hh, mm and ss can be changed, but letters hh, mm, ss can not be changed. global.pattern.duration=hh:mm:ss #The letter, separator and the order of the string can be changed. But the order and separator need to be consistent with the value of global.pattern.duration global.pattern.durationDesc=hh:mm:ss
The defaults set in the notification.cfg.xma.xml are used in all Oracle Billing Insight applications: Self-Service, Assisted Service, Command Center, and Web Services. For example, you can change the default date pattern from global.pattern.date.medium (MM/dd/yyyy), to global.pattern.date.long (MMM/dd/yyyy). To customize the default display patterns used in email notifications
- Edit the notification.cfg.xma.xml file, located in the following directory:
- UNIX.
EDX_HOME/ xma/config/com/edocs/common/notification\
- Windows.
E DX_HOME \xma\config\com\edocs\common\notification\
- Edit the appropriate values in the patternConfig property in the <bean id="GlobalConfigurationBean" JavaBean. Specify one of the display patterns defined in the ApplicationLabels_LanguageCode_Country.properties file:
<property name="patternConfig"><map merge="default"> <entry key="defaultDatePattern"><value>global.pattern.date.medium</value> </entry> <entry key="defaultTimePattern"><value>global.pattern.time.long</value> </entry> <entry key="defaultDateTimePattern"><value>global.pattern.date.time</value> </entry> <entry key="defaultIntPattern"><value>global.pattern.number.integer</value> </entry> <entry key="defaultDoublePattern"><value>global.pattern.number.decimal</value> </entry> <entry key="defaultAmountPattern"> <value>global.pattern.number.amount</value> </entry> </map> </property>
|