IFROUTE and MATRIX

Martin Ertl <[email protected]>
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Is it right that IFROUTE doesn't work with MATRIX?

Imagine two columns (yes and no) and a few lines.
So the aim was to do routing dependent on answers.
For example user clicked "no" everywhere or
user clicked "yes" everywhere

If this really doesn't work we have to talk about it
on devel list...


If DEFAULT parameter is set, default.survey is called,
independent of userselection
If DEFALUT parameter is left blank, data is submitted
and nothing else happens (also independent of userselection)...



<MATRIX NAME="myMatr" CAPTION="TestMatrix" >
	<MATRIXCOLUMN VALUE="0" CAPTION="no"/>
	<MATRIXCOLUMN VALUE="1" CAPTION="yes"/>
	<MATRIXROW CAPTION="line0"/>
	<MATRIXROW CAPTION="line1"/>
	<MATRIXROW CAPTION="line2"/>
</MATRIX>


<IFROUTE DEFAULT="default.survey">
	<IF BOOLOP="and" THEN="yes.survey">
		<EQUALS VALUE="1" VARIABLE="line0"/>
		<EQUALS VALUE="1" VARIABLE="line1"/>
		<EQUALS VALUE="1" VARIABLE="line2"/>
	</IF>
	<IF BOOLOP="and" THEN="no.survey">
		<EQUALS VALUE="0" VARIABLE="line0"/>
		<EQUALS VALUE="0" VARIABLE="line1"/>
		<EQUALS VALUE="0" VARIABLE="line2"/>
	</IF>
</IFROUTE>



Martin

Skickat av Martin Ertl <[email protected]>
till survey-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.