cancel
Showing results for 
Search instead for 
Did you mean: 

issue with import com.sap.webi.client.toolkit.reporting.ReportDictionaryHelper

Former Member
0 Kudos

I am using following code and it's resulting in unreadable format for definition of variable. Using 4.0 SDK

List<Variable> vars = ReportDictionaryHelper.getDocumentVariables(context,doc);


if (vars.size() > 0) {


            System.

out.println("\n VARIABLES:");


           

for (Variable var:vars) {


              System.

out.println(var.getName());


              System.

out.println(var.getQualification());


              System.

out.println(var.getDefinition());           


            }

Sample output

Var_Webi_BOCalendarDateFormat


MEASURE


qMl$f301$f348$f456$f468$f456$oDP1.DO1881$f457$f458$lam/pm$f458$la$f457$

Please find that the text "am/pm" is coming correctly as it is in variable definition, but the objects and functions usage in variable definition are being replaced with IDs of object or function, i believe.

Please let me know if any more inputs are required. Please suggest me the change required

Regards,

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Experts,

The following code change has reolved the issue.

List<Variable> vars = ReportDictionaryHelper.getDocumentVariables(context,doc);


if (vars.size() > 0) {


            System.

out.println("\n VARIABLES:");


           

for (Variable var:vars) {


              System.

out.println(var.getName());


              System.

out.println(var.getQualification());


              System.

out.println(var.getDefinition());           

String objectvarformula = ReportDictionaryHelper.getVariableFormulaText(context, doc, var);

                 System.out.println(objectvarformula);

}

Regards,

Praveen

Answers (0)