0

Load zul pages which have zscript

asked 2013-10-15 04:28:22 +0800

Weasley gravatar image Weasley
11 2

updated 2013-10-15 05:58:31 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

I have a Component : mainContent, i want to load children into it so i use

Executions.createComponents("report1.zul", mainContent, args);

I have 2 report so:

Executions.createComponents("report1.zul", mainContent, args);
Executions.createComponents("report2.zul", mainContent, args);

Only one report loaded at a time, so when I load the report2, I use function mainContent.getChildren().clear() to clear the report1

My problem is: on the report1.zul, zscript part: I declared a variable

LineChartEngineWithDateAxis lineEngine = new LineChartEngineWithDateAxis();

On the report2.zul, zscript part: I declared a variable

LineChartEngine lineEngine = new LineChartEngine();

And ZK show this message:

Typed variable declaration : Typed variable: lineEngine was previously declared with type: class vng.zingme.stats.chart.LineChartEngineWithDateAxis ...

I want to completely clear all the variable in report1.zul page. What I need to do?

delete flag offensive retag edit

Comments

Why are using Zscript? While you can choose with visible or with some attribute which report you want to load?

sjoshi ( 2013-10-15 06:05:24 +0800 )edit

I have a group of reports, whenever i click on the report name, it will load the report content. I have over 1000 reports, so I don't want to write view model class for each report.

Weasley ( 2013-10-15 10:16:08 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-27 04:56:24 +0800

vincentjian gravatar image vincentjian
2245 6

Hi Weasley,

Please use different variable name for lineEngine, it seems that the issue is about beanShell project, however, it is not update anymore.

Also, it is not recommended to use zscript in production environment.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-10-15 04:28:22 +0800

Seen: 15 times

Last updated: Nov 27 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More