IUserAccessiableFilterTopicsByTopics Method (Int32, 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,
int inSourceIdx,
params int[] inValues
)
Parameters
- inTargetQuesIdx
- Type: SystemInt32
Target Question index - inShow
- Type: SystemBoolean
‘true’ for showing topics selected, ‘false’ for showing topics not selected - 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 answers\topics (q2,q3), and I would like q3 to show only the answers 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,2,6);
See Also