on 06-06-2013 7:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.