on 06-30-2009 3:27 PM
Hi,
we use MII Version 11.5SR4 and I have a client which use a german localization on his PC.
When the user call an irpt page with an iGrid then this iGrid is displaying numbers for this german client allways with a comma for a decimal delimiter like this example 3,14159 (Pi).
I need to change this iGrid to display allways a dot and ignores the client settings for the decimal delimiter like this 3.14159.
The MII documentation has here something for localization but I did not find a solution which allows me to change this.
I tried with the NumberFormat Parameter e.g. <param name="NumberFormat" value="###.00" />,
but the result is allways the same for the german client, it displays the comma instead of the dot.
FYI: When I change the regional settings (Windows XP) for this client to english / us then it works as expected.
I hope there exists an parameter or way to initialize this applet to work allways as an english/us applet. e.g. like: this
<param name="Language" value="en" />
To change the query to display a customized string is not an option, because there is too much to change in the background.
Decompiling the java source code and rebundling your own version of the illum8.zip archive is of course not-supported (probably violates your license agreements too).
I'm confused - your client is configured for DE so the typical display for numbers would be #.##,00 but you want this to be the opposite #,##.00 ?
What is the normal situation? Is this just a specialized exception for certain columns in an iGrid on select pages?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeremy,
the issue is that we have an application was build for the US area.
Now we migrate it to a site in EU and it's a special case, unfortunately we have to manipulate a lot of irpt, xsl, and Javascript files to fix it.
Maybe it would be a nice thing to have the flexibility to overwrite the applet parameter for numbers similar what we can do for the DateFormat parameter?
Specific to the iGrid is the ColumnFormats property (http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/iGrid_Reference.htm#iGrid Layout)
You may be encountering the fact that the NumberFormat parameter is common to both the underlying query template and the display template, so when you overload this in the html applet tags the grid has no way of knowing which template is applicable.
Try building a display template and provide the desired formats to the associated columns, etc. If you skip a column in the config table shown in the Template Editor it will revert to either the NumberFormat or DateFormat general tab setting, depending upon the datatype of the results.
Hi Jeremy,
Many thanks for your ideas.
I used a template but without any success.
I reviewed the igrid src and I think there is not possible to format the numbers as I like to have it.
Maybe something what SAP can implement for one of the next releases of MII if they like?
I'm not sure if you can address this to the right responsible
Many thanks to all for your help
Hi,
Call the query which is giving this kind of result in BLS transction.
And use this column values with available function and modify with your requirement.
Use this method :
stringreplace( String , search, replace ) ex:("3,14159", ",", ".")
Use Doc and Row action block to get the desired output and use Xacute query in your irpt page.
Hope this helps you.
-Suresh
Edited by: Suresh Hiremath on Jul 4, 2009 9:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this is a really good idea!
Currently it's not not an option for me, because I have a lot of existing code / irpt pages which must be changed in this way, but maybe I have no other option...., but many thanks again.
I found in the meantime a way to manipulate the neccessary iGrid class in the way I need it. Unfortunately I have to replace some classes in illum8.zip archive where the igrid applet will be created.
The disadvantage here is that SAP will never support this customization...
With other words:
There exists no simple way to set the locale for the number format under MII V11.5
Hi Pedro,
yes that's also an option, but not possible for us, because the issue is that the are running a lot of other localized application in parallel which may confuse the users too.
One idea what we had was to start a little app before we start the MII app and this will change the Regional Settings to the english and later back to the german client, but as described before it make no sens for us.
The only simple solution would be to have an applet parameter like:
<param name="LocalizedNumber" value="en" />
where we can overwrite the default number formatting.
But I did not found such or similar parameter under MII V11.5.
Do you know if this is what V12.x is supporting?
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.