I am using ZK freamework.
I am preparing a project which copies Data from one server and pastes Data to another server. Till end project is working fine and even this is doing the work as per my expectations. I want to show a process bar with the percentage of data copying process. I am using ZK framework, Java Spring, and Mysql.
My requirement is to show the percentage of copying done and a progress bar in zk Framework. please help me through this.
Thanks in advance.
for(long j=1;j<=rowCount;j++){
sum = sum + j/rowCount;
if(j==rowCount){
sum=100;
}
progressMeter.setValue(sum);
countLabel.setValue((rowCount-1)+" Rows are inserted");
BindUtils.postNotifyChange(null, null, countLabel, "_value");
In ZK framework you need to use Progressmeter component. In your example.zul you need to add the following code :
And in your project class you need to update value of this component.