When I add a controller class and specify a caption with label, the parameter dialog's caption is changed to Japanese.
but when I change to the user language to ja-JP in user options, the caption always displays in Japanese:
What my problem is the caption to change as the user's language changes.
Forgive me if I didn't make myself clear before.
I would use the debugger to see what exactly is happening.
Thank you for your time and answer.
I appended the following code to the controller, but it doesn't seem to have any effect. Is there any problem with my code appended?
public ClassDescription caption()
{
return "@MyLabel111";
}
SysOperationsaContoller stores the caption in usage data and loads it together with parameters from the last run. If you don't want it, you can (for example) override caption() and always return your label, regardless of the value of dialogCaption variable.
Just for this one.
But the other report that I customized is ok because I add the code bellow in my UI Builder class,
public void postRun() { Dialog dialogLocal = this.dialog(); dialogLocal.dialogForm().formRun().design().caption("@labels:123456"); }
but for this report, as you can see from the image of the project structure, there is no UI Builder file, because I created an extension from a standard report.
Is it a problem with all reports, or is it just about your customization?
Does it mean that you changed the language to something else than ja-JP?
-> Yes, I changed the language to ja-JP when I want to confirm the Japanese. And en-US or en-SG for English.
1.en-US
2.ja-JP
Thank you for these details, but could you also answer my questions, please?
This is my code structure.
We have 3 label txt file en-SG, en_US, ja-JP
and this is the menu item's property.
and this is my controller:
public class CP_CustSalesOpenLinesbyCustController extends SrsReportRunController { ////// Report Controller /// /// public static void main(Args _args) { //define the new object for controller class CP_CustSalesOpenLinesbyCustController ssrsCustSalesRC; ssrsCustSalesRC = new CP_CustSalesOpenLinesbyCustController(); //pass the caller args to the controller ssrsCustSalesRC.parmArgs(_args); //set the report name and report design to run ssrsCustSalesRC.parmReportName(ssrsReportStr(CustSalesOpenLines_Extension, ByCust_Extension)); ssrsCustSalesRC.parmDialogCaption("@CP_Labels:CP01780"); //execute the report ssrsCustSalesRC.startOperation(); } }
and this is my report property:
Does it mean that you changed the language to something else than ja-JP?
Is it a problem with all reports, or is it just about your customization? It it's the latter, please share your code with us.
Thank you. Martin.
Sorry I didn't make my question clear.
My problem is that when the user changes the language, the parameter dialog's caption of the report doesn't change.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156