IUserAccessiableFilterTopicsByTopics Method (Int32, Boolean, Boolean, Int32, Int32) |
Hides or shows the topics in Matrix, Single Choice Grid, Stopper and Counter (inTargetQuesIdx) that their mathcing (by index) topic in Single Choice Grid, Matrix and Counter (inSourceIdx) has one of the values in (inValues)
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax void FilterTopicsByTopics(
int inTargetQuesIdx,
bool inShow,
bool inReset,
int inSourceIdx,
params int[] inValues
)
Parameters
- inTargetQuesIdx
- Type: SystemInt32
Target Question index - inShow
- Type: SystemBoolean
‘true’ for showing answers selected, ‘false’ for showing answers not selected - inReset
- Type: SystemBoolean
‘true’ for re-setting previous filtering, ‘false’ for not re-setting - inSourceIdx
- Type: SystemInt32
Source Question Index - inValues
- Type: SystemInt32
Specific values to trigger the filtering in the source topics
Remarks Assumes that the Target question's topic list is the same as the source question's topic list
Examples If I have two questions with the same set of topics (q2,q3), and I would like q3 to show only the topics selected in q2’s topics which had value 6 and filter out the answers not selected, I can write this in q3 start script:
FilterTopicsByTopics(CurrQues,true,false,2,6);
See Also