Welcome! Log In Create A New Profile



Posted by gga 
November 11, 2018 07:02PM
I must confess... loopers have me mystified!
I want to display a list of items to order. Each item may have several suppliers and I want the user to be able to select which vendor(s) to request a quote from. So, I expect I have to present the table in a looper... but I can't for the life of me figure out how to do it.
I want something like this:

Item 1 Vendor 1 {check box} 1st record
Item 2 Vendor 1 {check box}
........... Vendor 2 {check box} 2nd record
........... Vendor 3 {check box}
Item 3 Vendor 1 {check box} 3rd record
.......... Vendor 2 {check box}
Can someone give me a hint?

Edited 1 time(s). Last edit at 11/12/2018 02:53PM by gga.
Re: Loopers
November 12, 2018 10:39AM
Hi Garry,

AFAIK you cannot put a table or a looper inside a looper.
However, you can use a looper with breaks to accomplish what you want:
Set a break for the item an put the item name in the break header using a static or formatted display control.
Link the controls in the header to a corresponding looper attribute.
The vendors and check boxes go in the looper lines.
The break footers can be made invisible if you don't need them.

Kind regards,

Edited 1 time(s). Last edit at 11/12/2018 10:46AM by pietvanz.
Re: Loopers
November 12, 2018 02:59PM
That must have been very confusing! I forgot that multiple spaces get collapsed when a message is posted. I have edited the original post and used periods instead of spaces to hopefully make it clearer what I want to do. I don't think I need a double looper: I just want each record in the table to show a list of the available vendors for that product.
Re: Loopers
November 12, 2018 07:11PM
Hello Garry,

I would use a treeview table instead of a looper for something like that.

Re: Loopers
November 13, 2018 02:35AM
Thanks Bart.
Yet another part of WinDev (treeview table) that I haven't investigated!
I will give it a try.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.