Is there a way to change the language a report would be generated in programmatically? I would like to have the ability to print a report in a language other than the user's set language/culture so that it can be printed in that language for others that don't have access to the system.

 

I have already set up the report and the translations and confirmed that if I manually change the culture of my user account the report properly prints in the correct language.

 

But it seems that trying to change the user's culture in a process doesn't actually change for the user.

 

Here is how I have the process element set up:

Like 2

Like

2 comments
Best reply

Dear Alexander,

Unfortunately, at the moment, there is no option to generate the report based on the values of certain field.  As a workaround, you can manually change the system language to the required for the person who is generating the report. 

We already created an idea for our R&D team for possible implementation in the future. 

Thank you for making Creatio better!

Dear Alexander,

Unfortunately, at the moment, there is no option to generate the report based on the values of certain field.  As a workaround, you can manually change the system language to the required for the person who is generating the report. 

We already created an idea for our R&D team for possible implementation in the future. 

Thank you for making Creatio better!

Alina Yakovlieva,

Thank you for your quick reply. I am aware that we can do so manually, but thank you for making sure I knew about the method.

Show all comments

Hello,

I am trying to validate a section data using custom code and entity event layers.

Since the current user can belong to different regions across the world, the validation error message must be thrown in different languages.

 

I understand we can use Localizable Strings, but I am unable to Get the value of the localizable string.

 

If I create a Localizable string called "MessageToUser", how can I access its value in C#?

 

Thanks in Advance!

Like 0

Like

3 comments

Hi Shivani,

You are correct, in this situation you need to use Localizable strings.

In the source code you can create it in the left panel, and if you want to add them to event logic, you can find them in the "Resource" section:

You can find an example on how to access this string in this article.

 

Dmytro Vovchenko,

 

Thank you. Unfortunately, the line of code to get localizable string :

 var bodyTemplate = UserConnection.GetLocalizableString(ClassName, "BodyTemplate");

gives the following error in Visual Studio

'UserConnection' does not contain a definition for 'GetLocalizableString'



I had referred this link earlier, and since the definition was absent, I was wondering if I am missing something or there is any other way to get the localizable string in Source Code Schema

 

Just to be sure, did you use all on them in your code?

using System.Collections.Generic;
using Terrasoft.Common;
using Terrasoft.Core;

 

Show all comments