Hello,
I write my code in the Events and set my arrays. In onFinish the code is:
for($x=0; $x < count([total_chked]) ; $x++){
echo $x."-";
$P_Key= [total_chked][$x];
$sql ="SELECT Flaschenversorgung, vertrag.Vertragsname FROM vertrag_flaschen INNER JOIN vertrag ON (vertrag_flaschen.vertrag_id = vertrag.vertrag_id) WHERE (vertrag_flaschen.vertrag_flaschen_id = ".[total_chked][$x].")";
sc_lookup(dataset, $sql );
} //for
My loop breaks when I call sc_lookup. When I comment out this part, then the loop works. But why I can not use the lookup?