[SOLVED] passing varibles for drilldown (correted)
What I want to do is to be able to pass multiple varibles that has been changed by selecting radiobuttons. I have use this information on http://forums.informationbuild...511084403#9511084403 but it did not worked for me. The used code is :
DEFINE FILE CAR
LNE1/A100 = 'Select car:';
LNE2/A100 = '<input type="radio" name="CARCDE" value="CARA" CHECKED>Audi';
LNE3/A100 = '<input type="radio" name="CARCDE" value="CARB">BMW';
LNE4/A100 = '<input type="radio" name="CARCDE" value="CARC">Jaguar';
LNE5/A100 = 'Select model:';
LNE6/A100 = '<input type="radio" name="MODCDE" value="MODA">100 LS 2 DOOR AUTO';
LNE7/A100 = '<input type="radio" name="MODCDE" value="MODB">2002 2 DOOR';
LNE8/A100 = '<input type="radio" name="MODCDE" value="MODC">2002 2 DOOR AUTO';
LNE9/A100 = '<input type="radio" name="MODCDE" value="MODD">V12XKE AUTO';
END
TABLE FILE CAR
PRINT CAR NOPRINT
WHERE CAR = 'JAGUAR'
HEADING
"Selection page"
" "
"Make a choice to show the variables"
"<LNE1"
" "
"<LNE2"
"<LNE3"
"<LNE4"
" "
"<LNE5"
" "
"<LNE6"
"<LNE7"
"<LNE8"
"<LNE9"
" "
"Show variables"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
SQUEEZE=ON,
TOPMARGIN=.25,
LEFTMARGIN=.25,
$
TYPE=HEADING,
LINE=17,
STYLE=BOLD,JAVASCRIPT=document.form.submit(),
$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>Demo voor drilldown</title>
</head>
<body>
<form name="form" action="/ibi_apps/WFServlet" target="_blank">
<input type="hidden" name="IBIF_ex" value="showvars.fex" />
<input type="hidden" name="IBIAPP_app" value="baseapp" />
!IBI.FIL.HTMLFILE;
</form>
</body>
</html>
-HTMLFORM END
The showvars fex just contains "-? &CARCDE" and "-? &MODCDE" to display the variables.This message has been edited. Last edited by: Kerry,
March 26, 2009, 07:15 AM
Danny-SRL
MrM,
Note the slight differences...
-* File MrM.fex
DEFINE FILE CAR
LNE1/A100 = 'Select car:';
LNE2/A100 = '<input type="radio" name="CARCDE" value="CARA" CHECKED>Audi';
LNE3/A100 = '<input type="radio" name="CARCDE" value="CARB">BMW';
LNE4/A100 = '<input type="radio" name="CARCDE" value="CARC">Jaguar';
LNE5/A100 = 'Select model:';
LNE6/A100 = '<input type="radio" name="MODCDE" value="MODA">100 LS 2 DOOR AUTO';
LNE7/A100 = '<input type="radio" name="MODCDE" value="MODB">2002 2 DOOR';
LNE8/A100 = '<input type="radio" name="MODCDE" value="MODC">2002 2 DOOR AUTO';
LNE9/A100 = '<input type="radio" name="MODCDE" value="MODD">V12XKE AUTO';
END
TABLE FILE CAR
PRINT CAR NOPRINT
WHERE CAR = 'JAGUAR'
HEADING
"Selection page"
" "
"Make a choice to show the variables"
"<LNE1"
" "
"<LNE2"
"<LNE3"
"<LNE4"
" "
"<LNE5"
" "
"<LNE6"
"<LNE7"
"<LNE8"
"<LNE9"
" "
"Show variables"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS MMM FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
SQUEEZE=ON,
TOPMARGIN=.25,
LEFTMARGIN=.25,
$
TYPE=HEADING,
LINE=17,
STYLE=BOLD,JAVASCRIPT=document.form.submit(),
$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>Demo voor drilldown</title>
</head>
<body>
<form name="form" action="/ibi_apps/WFServlet" target="_blank">
<input type="hidden" name="IBIF_ex" value="mrmshow.fex" />
<input type="hidden" name="IBIAPP_app" value="focalpoint" />
!IBI.FIL.MMM;
</form>
</body>
</html>
-HTMLFORM END
-* File MrMshow.fex
-? &
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF