Welcome! Log In Create A New Profile

Advanced

Example for looper with variable columns

Posted by Wielyanto.pcs.crosspost 
Wielyanto.pcs.crosspost
Example for looper with variable columns
June 10, 2009 11:28AM
Hi

does anyone have an example for looper with variable columns that can be shared?
or if anyone know how to use a looper inside a looper that would be the best.

I have a situation here where, I need to show multiple employee leave record for the past few months.

following is the sample of the design that I want to achieve.


Name: Employee 1
Address: George Rd Ave 9
Telephone: 12345678

Month | Paid Leave | Unpaid Leave | MC
2009/06 | 1 | 2 | 3
2009/05 | 2 | 0 | 0
2009/04 | 0 | 0 | 0


Name: Employee 2
Address: Newton Ave 3
Telephone: 23456789

Month | Paid Leave | Unpaid Leave | MC
2009/06 | 2 | 1 | 1
2009/05 | 1 | 0 | 0
2009/04 | 1 | 0 | 2

* note that I used the separator | because I can not use space or tab in here for the alignment
* the employee data that needs to be shown depends on the user search parameter
* the month needed to be shown depends on the user input

Any suggestion of how this could be achieved, would be deeply appreciated

Regards,
Wielyanto

Message forwarded from pcsoft.us.windev
Piet van Zanten
Re: Example for looper with variable columns
June 10, 2009 11:39AM
Hi Wielyanto,

Both loopers and tables (WD14) can have headers and footers.
A very simple solution is to put the employee name and address in the header.

Regards,
Piet



Edited 1 time(s). Last edit at 06/10/2009 11:40AM by Piet van Zanten.
Al
Re: Example for looper with variable columns
June 10, 2009 01:17PM
Hello Wielyanto

In the list of other sites in the header of this forum is a link to Ken Knights Windev Tutorial site. It has a calender example that uses loopers and may help you.

Regards
Al
Author:

Your Email:


Subject:


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.
Message: