You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Anil Patel <to...@gmail.com> on 2006/12/19 00:53:52 UTC

Find default currency for a user. This will make UI more friendly

Hi,
Please if somebody can suggest way to figure out preferred locale currency
for the user. This will help to provide it as first option in Currency UomId
Dropdown's that are provided in different Forms.
I am working on FixedAssetStdCost forms. Trying to make them little more
user friendly.

Regards
Anil Patel

Re: Find default currency for a user. This will make UI more friendly

Posted by Jacopo Cappellato <ti...@sastau.it>.
David, Anil,

in the meantime (Rev. 488565) I've used the default system currency 
(from the property file) to preselect the currency in that foem; I think 
for now it's a good compromise (already used in other parts of the system).

Jacopo

David E Jones wrote:
> 
> This is something that is fairly core and not an arbitrary/custom 
> preference, so there is a UserLogin.lastCurrencyUom field that is meant 
> to track this.
> 
> There are methods in the UtilHttp class to get the locale based on this, 
> and there should be (if they aren't there) methods for getting the 
> currency too.
> 
> -David
> 
> 
> On Dec 18, 2006, at 5:18 PM, Adrian Crum wrote:
> 
>> Anil,
>>
>> You can set/retrieve user preferences with this patch:
>>
>> https://issues.apache.org/jira/browse/OFBIZ-495
>>
>>
>> Anil Patel wrote:
>>> Hi,
>>> Please if somebody can suggest way to figure out preferred locale 
>>> currency
>>> for the user. This will help to provide it as first option in 
>>> Currency UomId
>>> Dropdown's that are provided in different Forms.
>>> I am working on FixedAssetStdCost forms. Trying to make them little more
>>> user friendly.
>>> Regards
>>> Anil Patel


Re: Find default currency for a user. This will make UI more friendly

Posted by David E Jones <jo...@undersunconsulting.com>.
This is something that is fairly core and not an arbitrary/custom  
preference, so there is a UserLogin.lastCurrencyUom field that is  
meant to track this.

There are methods in the UtilHttp class to get the locale based on  
this, and there should be (if they aren't there) methods for getting  
the currency too.

-David


On Dec 18, 2006, at 5:18 PM, Adrian Crum wrote:

> Anil,
>
> You can set/retrieve user preferences with this patch:
>
> https://issues.apache.org/jira/browse/OFBIZ-495
>
>
> Anil Patel wrote:
>> Hi,
>> Please if somebody can suggest way to figure out preferred locale  
>> currency
>> for the user. This will help to provide it as first option in  
>> Currency UomId
>> Dropdown's that are provided in different Forms.
>> I am working on FixedAssetStdCost forms. Trying to make them  
>> little more
>> user friendly.
>> Regards
>> Anil Patel


Re: Find default currency for a user. This will make UI more friendly

Posted by Adrian Crum <ad...@hlmksw.com>.
Anil,

You can set/retrieve user preferences with this patch:

https://issues.apache.org/jira/browse/OFBIZ-495


Anil Patel wrote:
> Hi,
> Please if somebody can suggest way to figure out preferred locale currency
> for the user. This will help to provide it as first option in Currency 
> UomId
> Dropdown's that are provided in different Forms.
> I am working on FixedAssetStdCost forms. Trying to make them little more
> user friendly.
> 
> Regards
> Anil Patel
>