We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!

Rules on multi-select items in OC 3.1.1

Hi,
we started using OC 3.1.1 for our next study but have found a problem with rules on multi-select items (checkbox). The rules don't fire.
When I test the expression in the test module everything works as intended. The test module only accepts single values for the target, not multiples, but with those single values the logic works and the test results indicates that the rule fires.
The target I_AAR00_ALFACHNG is response type checkbox, data type INT, I_AAR00_ALFAREPDAT is a date field. The rule: see below.
I have tried the rule without quotation marks in the expression and with quotation marks, with eq as operator in the expression and with ct as operator. Nothing will get the rule to fire. The same rule (with eq and ") works fine for tagets of type radio.
Can anyone see something that I am doing wrong? Has anyone had success with a rule on a mulit-select item? Any hints are greatly appreciated.


I_AAR00_ALFACHNG



"Please enter date of intervention










Rule to show or hide date of re-intervention

I_AAR00_ALFACHNG ct "2"
or
I_AAR00_ALFACHNG ct "3"



Thanks,
Claudia Trepte
Data Manager
Sequana Medical
(formerly NovaShunt AG)

Comments

  • GerbenRienkGerbenRienk Posts: 838 ✭✭✭
    Hi Claudia,

    When you use a list of options with checkboxes, your data type should be ST (ring). The answer will be a list of the checked options, separated by comma’s. If you define it like that, you can test your expression by supplying values like “1,3,4”.
    You can find an example on
    http://www.trialdatasolutions.com/tds/howto/ctoperator.jsp

    Hope this helps.

    Gerben Rienk

    Van: [email protected] [mailto:[email protected]] Namens Claudia Trepte
    Verzonden: vrijdag 30 september 2011 12:34
    Aan: User Forum OC
    Onderwerp: [Users] Rules on multi-select items in OC 3.1.1

    Hi,
    we started using OC 3.1.1 for our next study but have found a problem with rules on multi-select items (checkbox). The rules don't fire.
    When I test the expression in the test module everything works as intended. The test module only accepts single values for the target, not multiples, but with those single values the logic works and the test results indicates that the rule fires.
    The target I_AAR00_ALFACHNG is response type checkbox, data type INT, I_AAR00_ALFAREPDAT is a date field. The rule: see below.
    I have tried the rule without quotation marks in the expression and with quotation marks, with eq as operator in the expression and with ct as operator. Nothing will get the rule to fire. The same rule (with eq and ") works fine for tagets of type radio.
    Can anyone see something that I am doing wrong? Has anyone had success with a rule on a mulit-select item? Any hints are greatly appreciated.


    I_AAR00_ALFACHNG



    "Please enter date of intervention










    Rule to show or hide date of re-intervention

    I_AAR00_ALFACHNG ct "2"
    or
    I_AAR00_ALFACHNG ct "3"



    Thanks,
    Claudia Trepte
    Data Manager
    Sequana Medical
    (formerly NovaShunt AG)
  • ctreptectrepte Posts: 100
    Hi Gerben,
    Thanks for the hint. I changed the data type to ST by the rule still does not fire. I have a cuple of other rule too that don't fire. All of them work just fine when testen in the rule tester in OC, but in real action they don't. All of them involve either radio items (type INT) or checkboxes (type ST) or single-select items (type INT or ST). But not all rules involving these type of itmes fail, some work. I am unable to find a common difference between the ones that work and the ones that don't.
    I have attached a simple CRF and two rules that don't work. I would appreciate any further hints.
    Thank you,
    Claudia Trepte
    Am 30.09.2011 14:23, schrieb Gerben Rienk:
    >
    > Hi Claudia,
    >
    >
    >
    > When you use a list of options with checkboxes, your data type should be ST (ring). The answer will be a list of the checked options, separated by comma’s. If you define it like that, you can test your expression by supplying values like “1,3,4”.
    >
    > You can find an example on
    >
    > http://www.trialdatasolutions.com/tds/howto/ctoperator.jsp
    >
    >
    >
    > Hope this helps.
    >
    >
    >
    > Gerben Rienk
    >
    >
    >
    > Van: [email protected] [mailto:[email protected]] Namens Claudia Trepte
    > Verzonden: vrijdag 30 september 2011 12:34
    > Aan: User Forum OC
    > Onderwerp: [Users] Rules on multi-select items in OC 3.1.1
    >
    >
    >
    > Hi,
    >
    > we started using OC 3.1.1 for our next study but have found a problem with rules on multi-select items (checkbox). The rules don't fire.
    >
    > When I test the expression in the test module everything works as intended. The test module only accepts single values for the target, not multiples, but with those single values the logic works and the test results indicates that the rule fires.
    >
    > The target I_AAR00_ALFACHNG is response type checkbox, data type INT, I_AAR00_ALFAREPDAT is a date field. The rule: see below.
    >
    > I have tried the rule without quotation marks in the expression and with quotation marks, with eq as operator in the expression and with ct as operator. Nothing will get the rule to fire. The same rule (with eq and ") works fine for tagets of type radio.
    >
    > Can anyone see something that I am doing wrong? Has anyone had success with a rule on a mulit-select item? Any hints are greatly appreciated.
    >
    >
    >
    > I_AAR00_ALFACHNG
    >
    >
    >
    > "Please enter date of intervention
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > Rule to show or hide date of re-intervention
    >
    > I_AAR00_ALFACHNG ct "2"
    > or
    > I_AAR00_ALFACHNG ct "3"
    >
    >
    >
    >
    >
    > Thanks,
    >
    > Claudia Trepte
    > Data Manager
    > Sequana Medical
    > (formerly NovaShunt AG)
    >
    >
    >
  • GerbenRienkGerbenRienk Posts: 838 ✭✭✭
    Hello Claudia,
    Thank you for sending the CRF and Rule-files.
    What I find is that if you hide items with SimpleConditionalDisplay, you
    then can not use them in a Rule.
    If you remove the SCD from items INCOMPLT and INCOMPLTSPC, your rules fire
    OK.
    I'm not sure if this is a bug a expected behaviour: anyone of Akaza?
    Kind regards,
    Gerben Rienk
    ps. try to avoid using dashes in the name of your CRF: anything following
    the dash will be ignored when trying to filter in the CRF-list; your CRF
    was called "AAR-003-Termination", but if you save it under that name, it
    will not turn up if you filter on "termination".
    > > Hi Gerben,
    > >
    > > Thanks for the hint. I changed the data type to ST by the rule still does
    > > not fire. I have a cuple of other rule too that don't fire. All of them
    > > work just fine when testen in the rule tester in OC, but in real action
    > > they don't. All of them involve either radio items (type INT) or
    > > checkboxes (type ST) or single-select items (type INT or ST). But not all
    > > rules involving these type of itmes fail, some work. I am unable to find a
    > > common difference between the ones that work and the ones that don't.
    > >
    > > I have attached a simple CRF and two rules that don't work. I would
    > > appreciate any further hints.
    > >
    > > Thank you,
    > >
    > > Claudia Trepte
    > >
    > > Am 30.09.2011 14:23, schrieb Gerben Rienk:
    > >
    > > Hi Claudia,
    > >
    > >
    > >
    > > When you use a list of options with checkboxes, your data type should be
    > > ST (ring). The answer will be a list of the checked options, separated by
    > > comma’s. If you define it like that, you can test your expression by
    > > supplying values like “1,3,4”.
    > >
    > > You can find an example on
    > >
    > >
    > > http://www.trialdatasolutions.com/tds/howto/ctoperator.jsp
    > >
    > >
    > >
    > > Hope this helps.
    > >
    > >
    > >
    > > Gerben Rienk
    > >
    > >
    > >
    > >
    > > _____
    > >
    > >
    > > Van: [email protected] [mailto:[email protected]]
    > > Namens Claudia Trepte
    > > Verzonden: vrijdag 30 september 2011 12:34
    > > Aan: User Forum OC
    > > Onderwerp: [Users] Rules on multi-select items in OC 3.1.1
    > >
    > >
    > >
    > > Hi,
    > >
    > > we started using OC 3.1.1 for our next study but have found a problem with
    > > rules on multi-select items (checkbox). The rules don't fire.
    > >
    > > When I test the expression in the test module everything works as
    > > intended. The test module only accepts single values for the target, not
    > > multiples, but with those single values the logic works and the test
    > > results indicates that the rule fires.
    > >
    > > The target I_AAR00_ALFACHNG is response type checkbox, data type INT,
    > > I_AAR00_ALFAREPDAT is a date field. The rule: see below.
    > >
    > > I have tried the rule without quotation marks in the expression and with
    > > quotation marks, with eq as operator in the expression and with ct as
    > > operator. Nothing will get the rule to fire. The same rule (with eq and ")
    > > works fine for tagets of type radio.
    > >
    > > Can anyone see something that I am doing wrong? Has anyone had success
    > > with a rule on a mulit-select item? Any hints are greatly appreciated.
    > >
    > >
    > >
    > > I_AAR00_ALFACHNG
    > >
    > >
    > > > InitialDataEntry="true" DoubleDataEntry="true" ImportDataEntry="false"
    > > Batch="false" />
    > > "Please enter date of intervention
    > >
    > >
    > >
    > > > InitialDataEntry="true" DoubleDataEntry="true" ImportDataEntry="false"
    > > Batch="false" />
    > >
    > >
    > >
    > >
    > >
    > > > re-intervention">
    > > Rule to show or hide date of
    > > re-intervention
    > >
    > > I_AAR00_ALFACHNG ct "2"
    > > or
    > > I_AAR00_ALFACHNG ct "3"
    > >
    > >
    > >
    > >
    > >
    > > Thanks,
    > >
    > > Claudia Trepte
    > > Data Manager
    > > Sequana Medical
    > > (formerly NovaShunt AG)
    > >
    > >
    > >
    > >
    > >
This discussion has been closed.