get report title and force a specific Locale [message #769222] |
Wed, 21 December 2011 10:47  |
Eclipse User |
|
|
|
I'm trying to get the report title text from the design API. I written a function like the one below to retrieve the text :
public String getReportTitle(String rpt) {
SessionHandle session = DesignEngine.newSession(ULocale.ITALIAN);
ReportDesignHandle reportTitleDesign = session.openDesign(rpt);
LabelHandle labelTitle = (LabelHandle) reportTitleDesign.findElement("reportTitle");
return labelTitle.getText();
}
The function work correctly but retrieve the default title that is in English locale, while i want to retrieve the Italian one ... I've tried setting the locale as shown in the function above but it didn't worked ...
The reportTitle label is placed in the header of masterpage ...
How can i get a text of a label in a given locale ? Is what i'm doing the right way to do it ?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.47315 seconds