Page 1 of 1

Loop and iteration by zone

Posted: Fri Sep 23, 2022 12:50 pm
by tldang
Hello,

Does anyone know how to define a zone/section (which can be any type) that iterate/loop all elements in this zone/section?

If elements are cut/shown partly, the zone iteration should detect the border and iterate/loop only the part which is shown in zone/section.

Here is an image of what I want to achieve.

For more information, I tried bands but it's not exactly what I want.

Thank you.

Cheers

Re: Loop and iteration by zone

Posted: Fri Sep 23, 2022 1:49 pm
by Lech Kulikowski
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.

Re: Loop and iteration by zone

Posted: Sun Sep 25, 2022 9:11 pm
by tldang
hello,

Ye, sure.

I was asked to implement a function where user can define a zone of iteration in the report template.

This zone should be repeated as counted by the counter that user defines.

Here, I can use DataBand (or some kind of Band with the property CountData).

That's ok until the demand is further than what DataBand can handle.

Roughly, user should be able to define any shape that intercepts the Band and the Band should only iterate the zone that is inside the Band.

As you see in the previous images, the iteration zone is defined by red border. it cuts 2 square "initial overlap" and "final overlap".

The counter is 2 (iterate 2 times).

So the iteration take only what are inside the defined zone and the result should be as describe in this attached image.

Can you help me with that?

Thank you so much.

Re: Loop and iteration by zone

Posted: Mon Sep 26, 2022 11:19 am
by tldang
hello,

I found also a strange behavior when I try to preview the rendered report with this MRT.

Can you give it a look please?

Thank you a lot.

Re: Loop and iteration by zone

Posted: Mon Sep 26, 2022 3:05 pm
by Lech Kulikowski
Hello,

There are no standard ways to implement it. You can try to implement that task in scripts of report or in code. We can not provide any specific solution without detailed information.

> I found also a strange behavior when I try to preview the rendered report with this MRT.

You should use Rectangle (Flowchart) instead of the Rectangle (Basic), or Text with borders.

Thank you.

Re: Loop and iteration by zone

Posted: Sun Oct 09, 2022 7:30 am
by tldang
hello Lech,

Do you have any example of how to use the script in the report please?

Thanks.

Re: Loop and iteration by zone

Posted: Sun Oct 09, 2022 8:55 am
by Lech Kulikowski
Hello,

Unfortunately, we do not have such samples.

You can add necessary components in the report then open the Code tab and check the code.

Thank you.