3
Indiquez l’intérêt que vous portez à cette question
0

Boucle sur table externe avec #GET

BernardF

Bonjour,

Je cherche comment passer le résultat d’une boucle évènement en critère d’une boucle sur une table externe. Voici le code que j’utilise et qui ne fonctionne pas :

_ <BOUCLE_agenda(EVENEMENTS){age<0}{par date_debut}{fusion YEAR(date_debut)}{statut=publie}>
	#SET{an,#DATE_DEBUT|annee}
	#GET{an}<br/>   
	<BOUCLE_formation_blocs(formcal:Blocs) {where Blocs.Code_session="#CODE_SESSION" and Blocs.An=#GET{an} } >
.../..
_ </BOUCLE_formation_blocs>
</BOUCLE_agenda>

#GETan affiche bien l’année

Par contre la boucle suivante fonctionne :

_ <BOUCLE_agenda(EVENEMENTS){age<0}{par date_debut}{fusion YEAR(date_debut)}{statut=publie}>
	#SET{an,#DATE_DEBUT|annee}
	#GET{an}<br/>   
	<BOUCLE_formation_blocs(formcal:Blocs) {where Blocs.Code_session="#CODE_SESSION" and Blocs.An="2019" } >
.../..
_ </BOUCLE_formation_blocs>
</BOUCLE_agenda>

L’ajout de " comme Blocs.An="#GETan" provoque une erreur mysql.

Je coince là-dessus depuis 2 jours aussi si quelqu’un sait comment faire...

Bonne journée,

BernardF