PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → example for looper with variable columns
example for looper with variable columns
Débuté par Wielyanto, 10 juin 2009 13:28 - Aucune réponse
Posté le 10 juin 2009 - 13:28
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