Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Locale Object ClassThis topic describes the methods that Siebel Open UI uses with the Locale Object class. It includes the following information:
FormattedToString MethodThe FormattedToString method removes the formatting of a string. It returns the unformatted string. It uses the following syntax: FormattedToString(type,value,format)
SiebelApp.S_App.LocaleObject.FormattedToString("date","11/05/2012","M/D/YYYY") GetCurrencyList MethodThe GetCurrencyList method returns the currency list that the client computer supports. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetCurrencyList() GetDateFormat MethodThe GetDateFormat method returns the date format for the locale. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDateFormat() GetDayOfWeek MethodThe GetDayOfWeek method returns a string that identifies the day of the week. It uses the following syntax:
SiebelApp.S_App.LocaleObject.GetDayOfWeek(20,"M/D/YYYY") GetDispCurrencyDecimal MethodThe GetDispCurrencyDecimal method returns the decimal point symbol that the client uses for currency, such as a period (.). It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispCurrencyDecimal() GetDispCurrencySeparator MethodThe GetDispCurrencySeparator method the number separator that the currency uses to separate digits in a currency, such as a comma (,). It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispCurrencySeparator() GetDispDateSeparator MethodThe GetDispDateSeparator method returns the symbol that the client uses to separate the days, weeks, and months of a date. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispDateSeparator() GetDispNumberDecimal MethodThe GetDispNumberDecimal method returns the symbol that the client uses for the decimal point. For example, a period (.). It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispNumberDecimal()) GetDispNumberScale MethodThe GetDispNumberScale method returns the number of fractional digits that the client displays. For example, 2. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispNumberScale() GetDispNumberSeparator MethodThe GetDispNumberSeparator method returns the symbol that the client uses to separate digits in a number. For example, the comma (,). It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispNumberSeparator()) GetDispTimeAM MethodThe GetDispTimeAM method returns the localized string for AM. For example, AM. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispTimeAM() GetDispTimePM MethodThe GetDispTimePM method returns the localized string for PM. For example, PM. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispTimePM() GetDispTimeSeparator MethodThe GetDispTimeSeparator method returns the symbol that the client uses to separate the parts of time. For example, the colon (:) symbol. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetDispTimeSeparator() GetExchangeRate MethodThe GetExchangeRate method calculates the exchange rate between two currencies. It returns the exchange rate as a double precision, floating point number. It uses the following syntax: GetExchangeRate(input_value, output_value, exchange_date)
SiebelApp.S_App.LocaleObject.GetExchangeRate("USD", "INR", "11/05/2012") GetFuncCurrCode MethodThe GetFuncCurrCode method returns the currency code that the client uses. For example, USD. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetFuncCurrCode() GetLocalString MethodThe GetLocalString method returns the localized string of a key. It uses the following syntax: GetLocalString(pStringKey : string_name : message_key)
For example, the following code uses the GetLocalString method when using Siebel Open UI with a connected client: SiebelApp.S_App.LocaleObject.GetLocalString("IDS_SWE_LOADING_INDICATOR_TITLE") For another example, the following code uses the GetLocalString method when using Siebel Open UI with Siebel Mobile disconnected: SiebelApp.S_App.OfflineLocaleObject.GetLocalString("IDS_SWE_LOADING_INDICATOR_TITLE") GetMonth MethodThe GetMonth method returns the month that the locale uses. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetMonth() GetScale MethodThe GetScale method returns the scale of the number that Siebel Open UI must display. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetScale() GetStringFromDateTime MethodThe GetStringFromDateTime method formats a date and time string. It returns this formatted date and time in a string. It uses the following syntax: GetStringFromDateTime(input_date, input_format, output_format)
SiebelApp.S_App.LocaleObject.GetStringFromDateTime(2012-12-05, DD/MM/YYYY, M/D/YYYY) GetTimeFormat MethodThe GetTimeFormat method returns the time format that the locale uses. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetTimeFormat() GetTimeZoneList MethodThe GetTimeZoneList method returns a list of time zones that the locale uses. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetTimeZoneList() GetTimeZoneName MethodThe GetTimeZoneName method returns the current time zone that the locale uses. It uses the following syntax: SiebelApp.S_App.LocaleObject.GetTimeZoneName() SetCurrencyCode MethodThe SetCurrencyCode method sets the currency code that the locale uses. It returns nothing. It uses the following syntax: SetCurrencyCode(currency_code) SiebelApp.S_App.LocaleObject.SetCurrencyCode("USD") SetExchDate MethodThe SetExchDate method sets the exchange date that the currency uses. It returns nothing. It uses the following syntax: SiebelApp.S_App.LocaleObject.SetExchDate("11/05/2012") SetScale MethodThe SetScale method sets the scale of the number. It returns nothing. It uses the following syntax: SiebelApp.S_App.LocaleObject.SetScale("0") StringToFormatted MethodThe StringToFormatted method adds formatting characters to a string. It returns a formatted string. It uses the following syntax: StringToFormatted(type,value,format) The StringToFormatted method uses the same arguments that the FormattedToString method uses. For more information, see FormattedToString Method. SiebelApp.S_App.LocaleObject.StringToFormatted("date","11/05/2012","M/D/YYYY") |
![]() ![]() |
Configuring Siebel Open UI | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |