Hello,
i have a problem with the handing over of variables. My code is the following:
DEFINE FILE wg_kd_betreuung
OPTOrt/A40 = '<option>'|ORT|'</option>';
END
TABLE FILE wg_kd_betreuung
SUM OPTOrt
BY ORT NOPRINT
ON TABLE HOLD FORMAT ALPHA AS DYNAMLST
END
TABLE FILE wg_kd_betreuung
-SET &COUNTER=1;
-SET &T=' ';
-IF &Team0.EXISTS THEN GOTO LOOP1 ELSE GOTO DONE;
-LOOP1
-SET &T = 'AND (TEAM EQ ''&Team'')';
-IF &Team0.EXISTS NE 1 THEN GOTO OUTLOOP;
-REPEAT OUTLOOP FOR &COUNTER FROM 2 TO &Team0;
-SET &T = &T | 'AND (TEAM EQ ''&Team.&COUNTER'')';
-OUTLOOP
-DONE
END
On my page you can see the drill-down list with all teams out of the table "kd_betreuung" but if you want to select more than one team, you can see in the URL that the Teams are included but in the graphic they are not shown, espacially there is no graphic shown because the teams are not committed.
In the source code it is said:
TABLE FILE wg_kd_betreuung
-SET &COUNTER=1;
-SET &T=' ';
-IF 1 THEN GOTO LOOP1 ELSE GOTO DONE;
-LOOP1
-SET &T = 'AND (TEAM EQ ''HAM WG3/M'')';
-IF 1 NE 1 THEN GOTO OUTLOOP;
-REPEAT OUTLOOP FOR COUNTER FROM 2 TO 2;
-SET &T = AND (TEAM EQ '&Team') | 'AND (TEAM EQ ''HAM WG3/P'')';
-REPEAT OUTLOOP FOR COUNTER FROM 2 TO 2;
-OUTLOOP
-DONE
END
and in the definition of the graphic stands:
GRAPH FILE WG_VIEW_KD_PERFORMANCE
SUM WG_VIEW_KD_PERFORMANCE.UC09AUNS AS 'COUNT'
ACROSS myDATUM AS 'DATE'
BY TEAM AS 'TEAM'
WHERE (myDATUM GE TStart) AND (myDATUM LE TStart )
AND (TEAM EQ '&Team')AND (TEAM EQ '&Team2');
I do not know why in the last phrase stands " AND (TEAM EQ '&Team')AND (TEAM EQ '&Team2');" because there should be the names of the teams, or not? Perhaps I have made a mistake in the whole part.
I hope you can help me out and thanks a lot!
Katy