Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Language Setting for a Field (Run Time)


Language Setting for a Field (Run Time)

Author
Message
Bajrang
Bajrang
Say Hey Kid
Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)

Group: General Forum Members
Points: 672 Visits: 244
Hello all,
I am trying to set Language setting for a filed in my table dynamically. I have an expression which decides which language should be there for that field depending on the parameter passed...

Code looks something similar to this.

=iif(Parameters!Curr_Code.Value="USD","English (United States)", IIF(Parameters!Curr_Code.Value="GBP","English (United Kingdom)", "French"))

When I run the report and pass "GBP" or "EUR", it gives me USD sign for currency. it is not giving me Pound or Euro sign for this currency field.

If i set it static: Pound or Euro; then i am able to see Pound and Euro sign, but not the case with an expression.

Anybody had this issue before?

Thanks!!

-RP

-RP
Bajrang
Bajrang
Say Hey Kid
Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)Say Hey Kid (672 reputation)

Group: General Forum Members
Points: 672 Visits: 244
Well,
I couldn't get any help on this anywhere on web., What I found on the web is, we have to set language property design time only. We can not change it while running the report.

But, I found an intermediate solution for time being. I created two separate columns in order to hold GBP and EUR currencies and based on parameters I am setting Visible property to True/False and solved my issue right away.

Thanks for taking your time to read anyway.

Keep supporting.

Thx

-RP

-RP
High Plains Grifter
High Plains Grifter
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 121
Hi,

This is not exactly the same subject, but pretty close...

I have 6 reports, all of which are identical in meaning, but each in a different language. I need to display the execution time at the top of the report and have been told that using purely number formats is confusing (some countries using dd/MM/yy and some using MM/dd/yy etc).

It took me a bit of searching before this thread solved my problem - changing the language of the report changes the spelling of the months appropriately.

Figured this was the place to leave my thanks and information, even if the previous post makes it pretty obvious.

Thanks,
Mark
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search