otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Branding, Screen Sets, XSL/CSS and Translations Customizing and Branding the UI of OTM / G-Log for your site, using Custom Screen Sets, Menu Managers, XSL/CSS customizations, Translations and more.

Tags: ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 30th, 2007, 06:38
Junior Member
 
Join Date: May 2007
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Rajashree is on a distinguished road
Country Codes

Is it possible to change how Country Codes are displayed? For example, while creating a new Location, when we click on 'l' in Country Code field, we get a list of 3-character codes. From that, for eg, FRA can be selected. I need FRA to be displayed as FR-France. This can be done by creating a new Country Code, but if new Country Code is created, it will not be associated with a time zone. My need is that it should be associated with the time zone as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old August 30th, 2007, 15:40
Senior Member and Blogger
 
Join Date: Nov 2006
Location: San Diego, CA
Posts: 76
Blog Entries: 2
Thanks: 0
Thanked 18 Times in 17 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
AlejandroBarba is on a distinguished road
Re: Country Codes

Rajashree,

Are you entering the respective Country Zone ID when you create the new Country Code that you mentioned?

Hope this helps,

Alejandro B.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to AlejandroBarba For This Useful Post:
Rajashree (October 5th, 2007)
  #3 (permalink)  
Old May 27th, 2008, 11:19
Junior Member
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
laxman is on a distinguished road
Re: Country Codes

I face a similar situation.

I key in "FR" in country_code field and it list "FRA". But I would like it to list only "FR". Are there any property file where I can set it as two digit country code?

Can anyone help me out?

Laxman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old May 27th, 2008, 11:37
Junior Member
 
Join Date: May 2007
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Rajashree is on a distinguished road
Re: Country Codes

Hi

Are you also getting FR in the list along with FRA? I don't think there are any properties like that because you can only add new countries. However, if it is okay for you, you can delete the 3 char countries and create 2 char countries. Then you can turn autocomplete.start=2 in glog.ui properties.

Hope it helps.
Rajashree

Last edited by Rajashree : May 27th, 2008 at 11:40.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old May 27th, 2008, 11:44
Junior Member
 
Join Date: May 2007
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Rajashree is on a distinguished road
Re: Country Codes

Hi Alejandro

I found the answer to that one. We need to associate the newly created country with a timezone in Time zone locale. This is in Power data of Transportation Planning and Execution.

Thanks
Rajashree
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old May 27th, 2008, 12:05
Junior Member
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
laxman is on a distinguished road
Re: Country Codes

Hi,

Thank you for your reply.

I do not want to create a new country code.

In "country_code" table in the back end you can find two column "COUNTRY_CODE3_GID" and "COUNTRY_CODE2".

COUNTRY_CODE3_GID is three character country code
COUNTRY_CODE2 is two character country code.

How to associate with two character country code.


Eg. I want two list only "FR" when I type "FR". I do not want the three digit code to be listed.

I have set the autocommit property already so that when I type "FR" its listing as only "FRA". I want it to list only "FR".

I hope clearly stated my requirement?

Laxman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old May 28th, 2008, 06:40
Junior Member
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
laxman is on a distinguished road
Re: Country Codes

Any input on my last post?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old May 28th, 2008, 08:21
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
AntonyC is on a distinguished road
Send a message via AIM to AntonyC Send a message via Skype™ to AntonyC
Re: Country Codes

Hi Laxman,
I don't know of any property or setting that allows you to change from 3 to 2 digits.

The only way i've seen this done before at another client was they updated all the 3 digit country codes in the country_code table with the 2 digit equivalant (as DBA.ADMIN). To associate the country codes with a time zone you will also need to update the country_code3_gid in the time_zone_locale table.

Word of caution though, the scripts to do this will have to form part of your post upgrade process as any upgrade to the db will overwrite the changes.

Rgrds,
Antony
__________________
Antony Carter
Mavenwire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old May 29th, 2008, 11:58
Junior Member
 
Join Date: May 2007
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Rajashree is on a distinguished road
Re: Country Codes

Hi

It could be because the field calls the CountryCodeQuery, which fetches the country code3 gid (glog.server.query.servprov.CountryCodeQuery). How you want it would be a query which calls all the country code2. I am not sure how that can be done unless there is a query for that. Does OTM allow creation of custom queries? I am not sure.

The other way it could possibly be done is to customize the manager layout and change the field to a drop down with the custom countries.

Hope this helps
Rajashree

Last edited by Rajashree : May 29th, 2008 at 12:02.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old June 2nd, 2008, 15:38
Member
 
Join Date: Oct 2007
Posts: 33
Thanks: 2
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
neoandr is on a distinguished road
Re: Country Codes

Hi ,
All locations are mapped with 3 letter country codes. So if you want it to be displayed in 2 characters then either u need to create new country codes with 2 letters or ...u can modify the 'Picklist' template to drop down in XSL (JSPx) and using 'options' you can display it as 2 letters which is actually mapped with 3 letter codes.

<options>
<option name='FR' value='FRA'>FR</option>
<option name='US' value='FRA'>US</option>
</options>

you can customise ur XSL with above code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to model TL and LTL rates based on zip codes otmrookie Rating 5 December 7th, 2007 15:59
Country Code with Time Zone Nisha Branding, Screen Sets, XSL/CSS and Translations 1 September 5th, 2007 14:53
[SOLVED] General Ledger codes Anitha J Rating 3 June 12th, 2007 07:00
[SOLVED] Integration Status Codes - Beginner chrisplough Integration and Data Mapping 0 February 15th, 2007 14:45



All times are GMT. The time now is 20:37.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37