How to create a userdefined non Iso standard Locale
Hi
I m able to create a non standard locale with following code
new locale("en_IDC")
where IDC is the non standard Country but i want to specify some settings or parameter for this locale
I want that for IDC I must be able to speciify
"LocaleString" , "Languages", "Countries", "DateTimePatterns", etc...
For std locale eg. fr_FR jvm read it from the LocaleElements_fr_FR class.
How its possible for non standard en_IDC locale
shall create the LocaleElements_en_IDC java file.
Pls help me
Thanks in advance.
Novin
Hi John,
Thanks for ur valuable reply.
I want to make one thing clear like for
suppose i have set the default locale as "fr_FR" and when i try to use any of the formater for e.g Numberformat
Here is the code
Locale objLocale = new Locale("fr","FR");
Locale.setDefault(objLocale);
double value = 12345.56;
NumberFormat nf = NumberFormat.getInstance(objLocale);
String formattedValue = nf.format(value);
System.out.println("formattedValue="+formattedValue);
The jvm automatically pick up the "java.text.resources.LocaleElements_fr_FR" resourcebudle from the cache and the number format class fetch the "NumberPatterns" keys value from the resource budle and apply it to the double.
Above thing managed by the jvm
Is the same thing is possible for userdefined Locale class which extend the ListResourcebudle
for eg. I had created following locale where
Language="xx" (fake or non existing language)
Country ="IDC"( fake or non existing language)
where i had defined some "NumberPatterns" "##,##0.###"
class LocaleElements_xx_IDC extends ListResourceBundle
getcontent(){
new Object[] {
"NumberPatterns", new String[] { "#,##0.###;-#,##0.###", "\244#,##0.00; (\244#,##0.00)", "#,##0%"
when i use follwoing code for the xx_IDC locale its not formating the double value with the NumberPatterns i had specified in the class
Locale objLocale = new Locale("xx" , "IDC");
Locale.setDefault(objLocale);
double value = 12345.56;
NumberFormat nf = NumberFormat.getInstance(objLocale);
String formattedValue = nf.format(value);
System.out.println("formattedValue="+formattedValue);
when i try the above code jvm is not responding in the same way in comparision to "fr_FR" locale
Its not picking up the "NumberPatterns" which i had specified.
///according to ur reply the above thing is not possible uptill jDK 1.5 but it is possible in jdk1.6
So u want to say that the "xx_IDC" implementation is possible in jdk1.6
Pls reply
Thanks a lot.
Novin
Similar Messages
-
How to create a secure & non editable PDF? So that it cannot be modified by any of the secondary tools available online for security breaks and editing of PDF document
I put all the security options but still there are tools to break the security (even password) leading to editing of document
Need to avoid any such situationIf the document is important, and there is something to be gained by modifying it - then someone will just make a new copy of it (e.g. print and scan, screen capture), and make a new document, then change it.
If protecting the integrity of the document - proving it is unchanged - is the thing, look at digital signatures. Forget security, the signed file can be freely edited, but the signature will always show it is changed. -
How to create an search help for standard Screen
Hi,
Can any one help me out ... How to create a search help for standard screen field.......
thanks & regards,
Naveen...Hi Naveen.
I would like to suggest a couple of references,
[SDN - Standard Reference for create a search help for own fields in selection screen |How to create a search help for my own fields in selection screen;
[SDN - Standard Reference for Attaching search help to standard screen|Attach search help to standard screen;
[SDN - Reference for want to add a field in standard search help screen|want to add a field in standard search help screen;
[SDN - Reference for Attaching a search help to a standard screen - Case 2 |attaching a search help to a standard screen;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
How to create XA and non XA data source in Jdeveloper?
I wonder if somebody can help me with this:
I need step by step guidance how to create
1) Oracle data source without transaction support
2) Oracle data source with XA transaction support
for both embedded OC4J and standalone OC4J. I am using JDeveloper 9i
thanks,For non XA datasource create a JDBC Connection with data source class
oracle.jdbc.pool.OracleDataSource
For xa datasource create a JDBC connection with data source class
oracle.jdbc.xa.client.OracleXADataSource -
I want to create a log file in ApplicationData local folder.
m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(m_Name.Replace(" ", "_") + ".log",
CreationCollisionOption.OpenIfExists);
First time when my app is launched, the file gets created and logs are written.
When I close my app, and re run the app once again, the log file that was created is now hidden and when i try to call
the code : m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(m_Name.Replace(" ", "_") + ".log",
CreationCollisionOption.OpenIfExists);
m_StorageFile is NULL.
How can i prevent the file from becoming Hidden or ReadOnly.
ThanksHere is a very simple sample that works fine. Start with this and see what you are doing different.
XAML:
<Page
x:Class="LocalStorage.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:LocalStorage"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Loaded="Page_Loaded">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<TextBox x:Name="outputTxt" HorizontalAlignment="Left" Margin="76,82,0,0" TextWrapping="Wrap" VerticalAlignment="Top" AllowDrop="True" PlaceholderText="No Data read from local file" Width="791"/>
<Button Content="Store Data" HorizontalAlignment="Left" Margin="73,145,0,0" VerticalAlignment="Top" Click="Button_Click" />
</Grid>
</Page>
C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Storage;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace LocalStorage
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
public MainPage()
this.InitializeComponent();
private async void Button_Click(object sender, RoutedEventArgs e)
if (m_StorageFile != null)
try
string userContent = outputTxt.Text;
if (!String.IsNullOrEmpty(userContent))
await FileIO.WriteTextAsync(m_StorageFile, userContent);
else
// should be some info to write
catch (FileNotFoundException)
// do something
private StorageFile m_StorageFile;
private async void createFileOrGetFile()
m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync("sample.log", CreationCollisionOption.OpenIfExists);
private async void Page_Loaded(object sender, RoutedEventArgs e)
createFileOrGetFile();
if (m_StorageFile != null)
try
string fileContent = await FileIO.ReadTextAsync(m_StorageFile);
outputTxt.Text = fileContent;
catch (FileNotFoundException)
// do something!
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions
@WSDevSol
Getting Started With Windows Azure Mobile Services development?
Click here
Getting Started With Windows Phone or Store app development?
Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support) -
How to create and use templete or standard network / activity and wbs
dear
i have define the structure for my project which have WBS elements, network and activties. the strucutre is same for all the projects that i define.
i wanna know whether to use templete or standard wbs network and activities as templete for the project.
for a network there are almost 150 activties across 10 wbs elements i want this structure as a templete what can i do create it.
Further, how can i use LSMW to create relationship for ativities?
regards
saqib usmanI have create std wbs level 1 5 wbs further i create std nwrk and activities and assignMENT are as follows
h1.*Create std wbs from CJ91 *
STD DEFINITION IS
E00-BSS-CO-BTS-0000 STANDARD BTS
LEVEL 1 WBS ELEMENTS
E00.BSS.CO.BTS.0000.RFP RADIO FREQUENCY PLANNING
E00.BSS.CO.BTS.0000.SA SITE ACQUISITION
E00.BSS.CO.BTS.0000.TXN TRANSMISSION
E00.BSS.CO.BTS.0000.CW CIVIL WORKS
E00.BSS.CO.BTS.0000.PMO PMO
RELEASE THE STD PROJECT OPTIONAL BY EDIT > STATUS > RELEASE
h1.CREATE STD NETWORK FORM "CN01" tcode
NEWORK HEADER WITH FOLLOWING SETTING
9000000 STD NETWORK CORPORATE BTS 0001
Network usage UNIVERSAL
Planner group 1 1
Network status RELEASE (GENERAL)
Std.WBS element E00.BSS.CO.BTS.0000.BSS
Predefined plnt CO01
press activity overview button or (shiFt+F7)
I ASSIGN ACTIVITY TO STD WBS ELEMENTS
ACTIVITY OPR. SHORT DESC STD WBS ELEMENT
A01 ZERO VERIFICATION E00.BSS.CO.BTS.0000.RFP
A02 DESIGN DOCUMENT E00.BSS.CO.BTS.0000.RFP
B01 SITE SURVEY 1 E00.BSS.CO.BTS.0000.SA
B02 SITE SURVEY 2 E00.BSS.CO.BTS.0000.SA
C01 CIR Doc Input E00.BSS.CO.BTS.0000.CW
C02 CIR CW Input by RM E00.BSS.CO.BTS.0000.CW
D01 CIR Doc Input E00.BSS.CO.BTS.0000.TXN
D02 CIR TXN Input by RM E00.BSS.CO.BTS.0000.TXN
E01 Rollout Month E00.BSS.CO.BTS.0000.PMO
E02 ON Air Date E00.BSS.CO.BTS.0000.PMO
h1.PREREQUISITE FOR ASSIGNMENT OF STD NETWORK and WBS are:
PROCESS TRANSACTION "CJ20N" TO INCLUDE STD NETWORK ALONG WITH ASSIGNED ACTIVITIES AND STD WBS.
FURTHER, I WANT TO COPY STD NTWORK SEVERAL TIMES with different network number. EACH TIME I COPY STD NWK TO OPERATIVE STRUCTURE THE SYSTEM SHOULD PROMPT NEW NUMBER FOR NETWORK AND ALSO PROMPT TO ENER ASSIGNED STD WBS ELEMENTS WITH REPLACE OPTION for operative WBS NUMBER.
STANDARD WBS OPERATIVE WBS
E00.BSS.CO.BTS.0000.RFP REPLACE BY E00.BSS.CO.BTS.0003.RFP
E00.BSS.CO.BTS.0000.SA REPLACE BY E00.BSS.CO.BTS.0003.SA
E00.BSS.CO.BTS.0000.TXN REPLACE BY E00.BSS.CO.BTS.0003.TXN
E00.BSS.CO.BTS.0000.CW REPLACE BY E00.BSS.CO.BTS.0003.CW
E00.BSS.CO.BTS.0000.PMO REPLACE BY E00.BSS.CO.BTS.0003.PMO
IN MY OPERATIVE STRUCTURE
I HAVE TWO LEVEL FOR WBS I.E.:
E00.C0.BSS LEVEL 1
E00.BSS.CO.BTS.0001 LEVEL 2 ASSIGNED NWK 0001 WITH ACTIVITIES AND WBS
E00.BSS.CO.BTS.0002 LEVEL 2 ASSIGNED NWK 0001 WITH ACTIVITIES AND WBS
E00.BSS.CO.BTS.0003 LEVEL 2 WHERE I WANT TO ASSIGN STD NWK AND WBS
(I HAVE CREATED EXTERNAL NUMBER FOR NETWORK)
I GO TO THE TEMPLETE AREA AND CLICK ON STD NETWORK BUTTON AND DRAG STD NETWORK 09000001-1 TO E00.BSS.CO.BTS.0003. ENTER NAME FOR NETWORK "BTS 0003". SYSTEM PROMPT TO ENTER EXTERNAL NETWORK NUMBER I.E.
Enter network number
WBS elem:E00.BSS.CO.BTS.0003
Copy from network:
E00-BTS-0003
h1.CLICK CONTINUE BUTTON NOW REAL PROBLUM COMES A DIALOG BOX APPEARS
Include standard network
You want to include a standard network that has assignments to standard WBS elements. However, the selected WBS element does not correspond to the standard WBS element.
Copy Assignment Ignore Assignment
In case, if i select button Copy assignment or select Ignore Assignment then:
New network created E00-BTS-0003 under WBS E00.BSS.CO.BTS.0003 with all assigned activitites but no WBS elements i.e.
STANDARD WBS OPERATIVE WBS
E00.BSS.CO.BTS.0000.RFP REPLACE BY E00.BSS.CO.BTS.0003.RFP
E00.BSS.CO.BTS.0000.SA REPLACE BY E00.BSS.CO.BTS.0003.SA
E00.BSS.CO.BTS.0000.TXN REPLACE BY E00.BSS.CO.BTS.0003.TXN
E00.BSS.CO.BTS.0000.CW REPLACE BY E00.BSS.CO.BTS.0003.CW
E00.BSS.CO.BTS.0000.PMO REPLACE BY E00.BSS.CO.BTS.0003.PMO
After all my finding i am not able to bring activity assigned WBS elements. Kindly help and provide information to resolve the problum. -
How to create groups with non-local addresses
I want to create a mailing group that consists of non-local addresses like [email protected], [email protected]
How to do this ? I know that editing /etc/aliases redirects to local accounts only. The above is possible by editing /etc/postfix/virtual and do a postmap on this file. Is there any alternate way ?I use an include file for my groups - easier to modify...
In /etc/postfix/aliases...
some_groupname: :include:/path_to/groupname.txt
In the 'groupname.txt' file (textedit, plaintext file), a list of the members...
localemailuser
[email protected]
After any edit of the group file... sudo newaliases
-david -
How to Create Authorization Group for SAP Standard Tables
All,
I have 10 standard tables which are required to maintain by the user in Production environment.
Is there any way to create a custom auth group for the standard table?
Is it possible to assign same table in two different auth groups?
Please advice
Thanks,
KoteshMultiple tables can be linked to an auth group, but one table can be linked to only one auth group.
You cannot link one table to more than one auth group.
It is always advised to try to find an existing auth group having tables of same functinality and criticality, before creating a new auth group.
In case you don't have any such auth group, I feel you can create a Z auth group using se16->tbrg.
You can also create auth group using tcode se54. -
How to create a bat file by abap?
hi~
i ask a elementary question.how to create a bat file in my local pc?how to write some message in this bat file ?thank you !execute bat-files
Reward Points if it is helpful
Thanks
Seshu -
How can ftp service on non-standard port be load balanced using Cisco ACE.
How can ftp service on non-standard port be load balanced using Cisco ACE.For example ftp service required on tcp 2000 port
Hi Samarjit,
you can do this by specifying the port number in the class map that you create . Please find the below mentioend config guide where you can specify the tcp/udp port , range or ports or even the wild card to match the port.
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/administration/guide/mapolcy.html#wp1318826
Regards
Abijith -
How to create a custom task in SRM for the standard task
Hi Gurus,
How to create a custom task in SRM for the standard task eg: TS10407929
regards,
George.from PFTC itself. Same.
-
How to create one ISO file large than 2G
hi,
here when I create one ISO with 3G(larger than 2G) on solaris 10 machine, I met below error:
mkisofs: File too large. cannot fwrite 32768*1
Anyone has suggestion for this problem? How to create one ISO files larger than 2G?
See the detail logs information:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
mkisofs -o my.iso -A "Software DVD" -D -L -P "Study "-p CBC/XLE -r -T -V R50 -v iso
mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
mkisofs: The option '-P' is reserved by POSIX.1-2001.
mkisofs: The option '-P' means 'do not follow symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-P'.
mkisofs: Use -publisher in future to get old mkisofs behavior.
Warning: creating filesystem that does not conform to ISO-9660.
mkisofs 2.01 (sparc-sun-solaris2.10)
Scanning iso
Scanning iso/rac_stage3
Using RAC_S000 for /rac_stage2 (rac_stage1)
Using RAC_S001 for /rac_stage1 (rac_stage3)
Using INSTA000.1;1 for ..
Writing: The File(s) Start Block 48
0.42% done, estimate finish Thu Feb 1 16:12:35 2007
0.84% done, estimate finish Thu Feb 1 16:12:36 2007
1.26% done, estimate finish Thu Feb 1 16:12:36 2007
1.69% done, estimate finish Thu Feb 1 16:12:36 2007
2.11% done, estimate finish Thu Feb 1 16:12:36 2007
�
87.65% done, estimate finish Thu Feb 1 16:14:54 2007
88.07% done, estimate finish Thu Feb 1 16:14:54 2007
mkisofs: File too large. cannot fwrite 32768*1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks!does it matter "copy protection" ? for the problem that i have?
my computer is alwyes get stuck while i trying to made a dvd or image
i made few disks wite menu in the past & i had not problems at all -
How to create F4 for the standard transaction
Hi all ,
How to create F4 for the standard transaction for a particular field .
ByeSantosh,
You can create F4 values for a field in a standard Transaction .
1. First search for a standard search help meeting your requirement .
2. If you don't find one, create your own custom (z) serach help .
( 1 is preferable )
After that, include that serch help to the standard field in the transaction .
For this u need to go to the screen
( F1->F9-> screen-> Field )
Click on the property of the field and include the search help .
You ll require the access key from the basisi guys as u r changing standard .
Hope it helps,
~ laxmi
Reward for helpful answers -
How to create a standard report that allows filtering?
Hi Guys and Gals,
Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
Allowing the user to specify the number of rows displayed would be peachy-keen too.
Thanks,
Kim
P.S. I'm running Apex 4.1 with Oracle 11g.Kim2012 wrote:
Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
>
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
>
Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
More good advice: Re: Newbie question-how does the tabular form work? How to populate prim key? and—if based on decent database design—out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app. -
How to create a Generic Object Services for a standard tcode.
Hi,
We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Object Services" in transaction code ABAA.
Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Services. This is a very critical issue, any help will be very help ful.
Please let me know should you require more information on this topic.
Thanks,
AshishInstead of copyg the std fm to z, do the following,
1. Go to se37 open FM VIEW_KURGV in display mode.
2. Click on the spiral icon on the top.
3. Then in menu go edit->enhancment options -> show implicit enhancement
4. """""""""""""""""""""" kind of lines will appear in the cde, just rt click on the line at the place u want to insert the code and select
enhancement implementation create.
5. Give apropriate name for thi , it will inset a n place to write your code.
This is an std sap methodology and is supported in upgradde also.
Maybe you are looking for
-
Disk crash on Mac mini from 2009, 160GB
Are there any particular type of disk I need to fit in the Mac mini? Are there any difficulties changing the disk or do I need to send it to support? Does the controller support SSD?
-
Cisco Desktop Agent\Supervisor & Windows 7 Compatibility
We are on Customer Response Solutions V 5.0(2). In order to install the Desktop Agent on Windows 7 we need to install DA v 7.5(8). We have been told by our VAR that we need to upgrade not only our CRA but also our CallManager to verison 8. This is
-
How do I write out the time a measurement was taken
Hi everybody. I have written a VI in labview 6 which samples analogue inputs at a scan rate of about 40kHz. What I want to do is write this data to an excel sheet with the time the data was measured written out next to it????? I know that time info i
-
Using getMethod while the class is being constructed
While executing the constructor, I want to get some of its methods. But I get a "java.lang.NullPointerException", when I copy the code to a method and call it after the class is "constructed" it works just fine. Is it not possible to get them while t
-
Why doesn't Editor open either from organizer or on the start screen?
In Elments 11, all worked well after install. Now, weeks later, Editor will not open. Suggestions please! Thanks much