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 empty int fields

Hey Folks -
I'm trying to write a rule that looks at an INT field and checks to see if it's greater than 0. The problem is if the field is left blank the rule doesn't seem to return true or false. If I fill in the field with an integer the rule fires and I get true/false as expected. Delete the int from the field and the rule doesn't fire at all again. Here is the Rule:


I_RANDO_RIGNORE















Multiple Agent Variable Dosing

(SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 ne "" and SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 gt 0)



Steps I took to test this:
1. Set I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 on the BLJ_ENROLLME_6512 form to 1 and save form
2. Load the event with I_RANDO_RCESDSCORE
3. Change some values and click save
4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
5. Go back to the BLJ_ENROLLME_6512 form and delete the value for I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 and save form
6. Go back to the even with I_RANDO_RCESDSCORE
7. Change some values and click save
8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12" instead of "Not Multi V12"
9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is updated with "Not Multi V12"
I'm stumped as to why leaving the field blank means a rule won't fire against it. I thought that was what the ne "" would fix, but it didn't. I know I must be doing something wrong, but what is it? Any help is GREATLY appreciated. I'm running OpenClinica Community version 3.1.4.
Thanks folks!
-Brian

Comments

  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    Hi Brian,
    It's not totally clear from the description that this is the issue at play, but keep in mind / be aware that rules are only evaluated for firing or not firing when the target item has a value submitted for it ( e.g. it's yellow before saving ). Exceptions: import and batch mode ( aka Run all rules for this CRF ).
    Best regards, Lindsay
    On Oct 17, 2013 6:34 PM, "Brian Johnson" wrote:
    Hey Folks -
    I'm trying to write a rule that looks at an INT field and checks to see if it's greater than 0. The problem is if the field is left blank the rule doesn't seem to return true or false. If I fill in the field with an integer the rule fires and I get true/false as expected. Delete the int from the field and the rule doesn't fire at all again. Here is the Rule:


    I_RANDO_RIGNORE















    Multiple Agent Variable Dosing

    (SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 ne "" and SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 gt 0)



    Steps I took to test this:
    1. Set I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 on the BLJ_ENROLLME_6512 form to 1 and save form
    2. Load the event with I_RANDO_RCESDSCORE
    3. Change some values and click save
    4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    5. Go back to the BLJ_ENROLLME_6512 form and delete the value for I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    6. Go back to the even with I_RANDO_RCESDSCORE
    7. Change some values and click save
    8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12" instead of "Not Multi V12"
    9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is updated with "Not Multi V12"
    I'm stumped as to why leaving the field blank means a rule won't fire against it. I thought that was what the ne "" would fix, but it didn't. I know I must be doing something wrong, but what is it? Any help is GREATLY appreciated. I'm running OpenClinica Community version 3.1.4.
    Thanks folks!
    -Brian
  • ServerSageServerSage Posts: 32
    Hey Lindsay -
    Good point, should have been more clear. I am changing the value of the target every time I save the form. I can get the rule to fire only if the field in the RuleDef has a value. If it's blank nothing happens.
    Thanks.
    -Brian
    Lindsay Stevens wrote:
    > Hi Brian,
    > It's not totally clear from the description that this is the issue at
    > play, but keep in mind / be aware that rules are only evaluated for
    > firing or not firing when the target item has a value submitted for it (
    > e.g. it's yellow before saving ). Exceptions: import and batch mode (
    > aka Run all rules for this CRF ).
    > Best regards, Lindsay
    >
    > On Oct 17, 2013 6:34 PM, "Brian Johnson" > wrote:
    >
    > Hey Folks -
    >
    > I'm trying to write a rule that looks at an INT field and checks to
    > see if it's greater than 0. The problem is if the field is left
    > blank the rule doesn't seem to return true or false. If I fill in
    > the field with an integer the rule fires and I get true/false as
    > expected. Delete the int from the field and the rule doesn't fire
    > at all again. Here is the Rule:
    >
    >
    >
    >
    > I_RANDO___RIGNORE
    >
    >
    > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    >
    >
    >
    >
    >
    > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    >
    >
    >
    >
    >
    >
    >
    > Multiple Agent Variable Dosing
    >
    >
    > (SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606
    > ne "" and
    > SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606
    > gt 0)
    >
    >
    >
    >
    > Steps I took to test this:
    >
    > 1. Set I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 on the
    > BLJ_ENROLLME_6512 form to 1 and save form
    > 2. Load the event with I_RANDO_RCESDSCORE
    > 3. Change some values and click save
    > 4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    > 5. Go back to the BLJ_ENROLLME_6512 form and delete the value for
    > I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    > 6. Go back to the even with I_RANDO_RCESDSCORE
    > 7. Change some values and click save
    > 8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12"
    > instead of "Not Multi V12"
    > 9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is
    > updated with "Not Multi V12"
    >
    > I'm stumped as to why leaving the field blank means a rule won't
    > fire against it. I thought that was what the ne "" would fix, but
    > it didn't. I know I must be doing something wrong, but what is it?
    > Any help is GREATLY appreciated. I'm running OpenClinica
    > Community version 3.1.4.
    >
    > Thanks folks!
    >
    > -Brian
    >
  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    Hi Brian,
    You might need two rules, instead of one. To take a simplified look at the expression:
    cond1: (enroldrug ne "") AND
    cond2: (enroldrug gt 0)
    when enroldrug = 1
    cond1 = true (it isn't blank)
    cond2 = true (its more than 0)
    rule returns true
    when enroldrug = 0
    cond1 = true (it isn't blank)
    cond2 = false (it isn't more than 0)
    rule returns false
    when enroldrug is blank
    cond1 = false (it is blank)
    cond2 = unknown (null is neither gt nor lt nor eq nor ne anything)
    rule returns unknown (doesn't fire)
    So I think you'd need a rule like you have for when enroldrug has a value, and add another rule to take care of whatever should happen when enroldrug is blank (or not).
    Best regards,
    Lindsay
    On 17 October 2013 20:29, Brian Johnson wrote:
    Hey Lindsay -
    Good point, should have been more clear. I am changing the value of the target every time I save the form. I can get the rule to fire only if the field in the RuleDef has a value. If it's blank nothing happens.
    Thanks.
    -Brian
    Lindsay Stevens wrote:
    Hi Brian,
    It's not totally clear from the description that this is the issue at
    play, but keep in mind / be aware that rules are only evaluated for
    firing or not firing when the target item has a value submitted for it (
    e.g. it's yellow before saving ). Exceptions: import and batch mode (
    aka Run all rules for this CRF ).
    Best regards, Lindsay
    On Oct 17, 2013 6:34 PM, "Brian Johnson" > wrote:
    Hey Folks -
    I'm trying to write a rule that looks at an INT field and checks to
    see if it's greater than 0. The problem is if the field is left
    blank the rule doesn't seem to return true or false. If I fill in
    the field with an integer the rule fires and I get true/false as
    expected. Delete the int from the field and the rule doesn't fire
    at all again. Here is the Rule:


    I_RANDO___RIGNORE















    Multiple Agent Variable Dosing

    (SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606
    ne "" and
    SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606
    gt 0)



    Steps I took to test this:
    1. Set I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 on the
    BLJ_ENROLLME_6512 form to 1 and save form
    2. Load the event with I_RANDO_RCESDSCORE
    3. Change some values and click save
    4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    5. Go back to the BLJ_ENROLLME_6512 form and delete the value for
    I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    6. Go back to the even with I_RANDO_RCESDSCORE
    7. Change some values and click save
    8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12"
    instead of "Not Multi V12"
    9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is
    updated with "Not Multi V12"
    I'm stumped as to why leaving the field blank means a rule won't
    fire against it. I thought that was what the ne "" would fix, but
    it didn't. I know I must be doing something wrong, but what is it?
    Any help is GREATLY appreciated. I'm running OpenClinica
    Community version 3.1.4.
    Thanks folks!
    -Brian
  • tdpurnattdpurnat Posts: 126
    Hi Brian,
    I'm not sure of the purpose for your validation... What are you trying to achieve?
    If there is no answer in the field, why would you want the rule to evaluate against an empty value? It is not gte or lte anything.
    If a user does not answer the question, what you might care about is that this is a required field and that the user must/should answer. You would model this by setting item to required in Excel CRF definition, or writing a rule evaluating to true: item eq ""
    Tina
    ----------
    Tina D Dannemann Purnat, M.Sc., PMP, CCDM
    Skype tdpurnat | Office +49 89 38 03 89 67 | http://www.linkedin.com/in/tinadpurnat
    Why are my emails so terse? emailcharter.org
    2013/10/17 Brian Johnson
    Hey Folks -
    I'm trying to write a rule that looks at an INT field and checks to see if it's greater than 0. The problem is if the field is left blank the rule doesn't seem to return true or false. If I fill in the field with an integer the rule fires and I get true/false as expected. Delete the int from the field and the rule doesn't fire at all again. Here is the Rule:


    I_RANDO_RIGNORE















    Multiple Agent Variable Dosing

    (SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 ne "" and SE_ENROLLMENT.F_BLJ_ENROLLME_6512.IG_BLJ_E_UNGROUPED_7499.I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 gt 0)



    Steps I took to test this:
    1. Set I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 on the BLJ_ENROLLME_6512 form to 1 and save form
    2. Load the event with I_RANDO_RCESDSCORE
    3. Change some values and click save
    4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    5. Go back to the BLJ_ENROLLME_6512 form and delete the value for I_BLJ_E_ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    6. Go back to the even with I_RANDO_RCESDSCORE
    7. Change some values and click save
    8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12" instead of "Not Multi V12"
    9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is updated with "Not Multi V12"
    I'm stumped as to why leaving the field blank means a rule won't fire against it. I thought that was what the ne "" would fix, but it didn't. I know I must be doing something wrong, but what is it? Any help is GREATLY appreciated. I'm running OpenClinica Community version 3.1.4.
    Thanks folks!
    -Brian
  • GerbenRienkGerbenRienk Posts: 838 ✭✭✭
    Hello Brian,
    When I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 is empty, the first half of
    your expression (ne "") can be evaluated, but the second half (gt 0) not.
    In this case no action is fired.
    To say this in a different way: OpenClinica must be able to evaluate all
    components of your expression, otherwise nothing will happen.
    We "as humans" evaluate in a different way: the value is empty, so the first
    half of the expression is false so then the whole expression must be false.
    Not so with OC.
    Hope this clarifies,
    Gerben Rienk
    http://www.trialdatasolutions.com
    ps. Is this really the rule-file you were able to upload? I ask because your
    target is not part of the expression and you refer to
    __I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and all the ItemOIDs I've seen so
    far start with I_
    -----Oorspronkelijk bericht-----
    Van: [email protected] [mailto:[email protected]]
    Namens Brian Johnson
    Verzonden: donderdag 17 oktober 2013 11:29
    Aan: [email protected]
    Onderwerp: Re: [Users] Rules on empty int fields
    Hey Lindsay -
    Good point, should have been more clear. I am changing the value of the
    target every time I save the form. I can get the rule to fire only if the
    field in the RuleDef has a value. If it's blank nothing happens.
    Thanks.
    -Brian
    Lindsay Stevens wrote:
    > > Hi Brian,
    > > It's not totally clear from the description that this is the issue at
    > > play, but keep in mind / be aware that rules are only evaluated for
    > > firing or not firing when the target item has a value submitted for it
    > > ( e.g. it's yellow before saving ). Exceptions: import and batch mode
    > > ( aka Run all rules for this CRF ).
    > > Best regards, Lindsay
    > >
    > > On Oct 17, 2013 6:34 PM, "Brian Johnson" > > wrote:
    > >
    > > Hey Folks -
    > >
    > > I'm trying to write a rule that looks at an INT field and checks to
    > > see if it's greater than 0. The problem is if the field is left
    > > blank the rule doesn't seem to return true or false. If I fill in
    > > the field with an integer the rule fires and I get true/false as
    > > expected. Delete the int from the field and the rule doesn't fire
    > > at all again. Here is the Rule:
    > >
    > >
    > >
    > >
    > > I_RANDO___RIGNORE
    > >
    > >
    > > > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    > >
    > >
    > >
    > >
    > >
    > > > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > Multiple Agent Variable Dosing
    > >
    > >
    > >
    (SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENR
    OLLDRUG2CYCLINGDAYSON_4606
    > > ne "" and
    > >
    SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENRO
    LLDRUG2CYCLINGDAYSON_4606
    > > gt 0)
    > >
    > >
    > >
    > >
    > > Steps I took to test this:
    > >
    > > 1. Set I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 on the
    > > BLJ_ENROLLME_6512 form to 1 and save form
    > > 2. Load the event with I_RANDO_RCESDSCORE
    > > 3. Change some values and click save
    > > 4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    > > 5. Go back to the BLJ_ENROLLME_6512 form and delete the value for
    > > I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    > > 6. Go back to the even with I_RANDO_RCESDSCORE
    > > 7. Change some values and click save
    > > 8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12"
    > > instead of "Not Multi V12"
    > > 9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is
    > > updated with "Not Multi V12"
    > >
    > > I'm stumped as to why leaving the field blank means a rule won't
    > > fire against it. I thought that was what the ne "" would fix, but
    > > it didn't. I know I must be doing something wrong, but what is it?
    > > Any help is GREATLY appreciated. I'm running OpenClinica
    > > Community version 3.1.4.
    > >
    > > Thanks folks!
    > >
    > > -Brian
    > >
  • ServerSageServerSage Posts: 32
    Good idea, not sure why I didn't think to try that. Thank you!
    -Brian
    Lindsay Stevens wrote:
    > Hi Brian,
    >
    > You might need two rules, instead of one. To take a simplified look at
    > the expression:
    >
    > cond1: (enroldrug ne "") AND
    > cond2: (enroldrug gt 0)
    >
    > when enroldrug = 1
    > cond1 = true (it isn't blank)
    > cond2 = true (its more than 0)
    > rule returns true
    >
    > when enroldrug = 0
    > cond1 = true (it isn't blank)
    > cond2 = false (it isn't more than 0)
    > rule returns false
    >
    > when enroldrug is blank
    > cond1 = false (it is blank)
    > cond2 = unknown (null is neither gt nor lt nor eq nor ne anything)
    > rule returns unknown (doesn't fire)
    >
    > So I think you'd need a rule like you have for when enroldrug has a
    > value, and add another rule to take care of whatever should happen when
    > enroldrug is blank (or not).
    >
    > Best regards,
    > Lindsay
    >
    >
    >
    > On 17 October 2013 20:29, Brian Johnson > wrote:
    >
    > Hey Lindsay -
    >
    > Good point, should have been more clear. I am changing the value of
    > the target every time I save the form. I can get the rule to fire
    > only if the field in the RuleDef has a value. If it's blank nothing
    > happens.
    >
    > Thanks.
    >
    > -Brian
    >
    > Lindsay Stevens wrote:
    >
    > Hi Brian,
    > It's not totally clear from the description that this is the
    > issue at
    > play, but keep in mind / be aware that rules are only evaluated for
    > firing or not firing when the target item has a value submitted
    > for it (
    > e.g. it's yellow before saving ). Exceptions: import and batch
    > mode (
    > aka Run all rules for this CRF ).
    > Best regards, Lindsay
    >
    > On Oct 17, 2013 6:34 PM, "Brian Johnson"
    > >> wrote:
    >
    > Hey Folks -
    >
    > I'm trying to write a rule that looks at an INT field and
    > checks to
    > see if it's greater than 0. The problem is if the field is
    > left
    > blank the rule doesn't seem to return true or false. If I
    > fill in
    > the field with an integer the rule fires and I get
    > true/false as
    > expected. Delete the int from the field and the rule
    > doesn't fire
    > at all again. Here is the Rule:
    >
    >
    >
    >
    > I_RANDO_____RIGNORE
    >
    >
    > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    > V12" />
    >
    >
    >
    >
    > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    >
    > V12" />
    >
    >
    >
    >
    >
    > Multiple Agent Variable Dosing
    >
    >
    >
    > (SE_ENROLLMENT.F_BLJ_ENROLLME_____6512.IG_BLJ_E_UNGROUPED___7499.__I_BLJ_E_____ENROLLDRUG2CYCLINGDAYSON_4606
    > ne "" and
    >
    > SE_ENROLLMENT.F_BLJ_ENROLLME_____6512.IG_BLJ_E_UNGROUPED_7499.____I_BLJ_E_____ENROLLDRUG2CYCLINGDAYSON_4606
    > gt 0)
    >
    >
    >
    >
    > Steps I took to test this:
    >
    > 1. Set I_BLJ_E_____ENROLLDRUG2CYCLINGDAYSON_4606 on the
    > BLJ_ENROLLME_6512 form to 1 and save form
    > 2. Load the event with I_RANDO_RCESDSCORE
    > 3. Change some values and click save
    > 4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    > 5. Go back to the BLJ_ENROLLME_6512 form and delete the
    > value for
    > I_BLJ_E_____ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    > 6. Go back to the even with I_RANDO_RCESDSCORE
    > 7. Change some values and click save
    > 8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi
    > V12"
    > instead of "Not Multi V12"
    > 9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is
    > updated with "Not Multi V12"
    >
    > I'm stumped as to why leaving the field blank means a rule
    > won't
    > fire against it. I thought that was what the ne "" would
    > fix, but
    > it didn't. I know I must be doing something wrong, but
    > what is it?
    > Any help is GREATLY appreciated. I'm running OpenClinica
    > Community version 3.1.4.
    >
    > Thanks folks!
    >
    > -Brian
    >
  • ServerSageServerSage Posts: 32
    Thanks Gerben, you and Lindsay hit the nail on the head and I think I'll be able to move forward now. Thanks!
    -Brian
    Gerben Rienk wrote:
    > Hello Brian,
    >
    > When I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 is empty, the first half of
    > your expression (ne "") can be evaluated, but the second half (gt 0) not.
    > In this case no action is fired.
    > To say this in a different way: OpenClinica must be able to evaluate all
    > components of your expression, otherwise nothing will happen.
    > We "as humans" evaluate in a different way: the value is empty, so the first
    > half of the expression is false so then the whole expression must be false.
    > Not so with OC.
    > Hope this clarifies,
    >
    > Gerben Rienk
    > http://www.trialdatasolutions.com
    >
    > ps. Is this really the rule-file you were able to upload? I ask because your
    > target is not part of the expression and you refer to
    > __I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and all the ItemOIDs I've seen so
    > far start with I_
    >
    > -----Oorspronkelijk bericht-----
    > Van: [email protected] [mailto:[email protected]]
    > Namens Brian Johnson
    > Verzonden: donderdag 17 oktober 2013 11:29
    > Aan: [email protected]
    > Onderwerp: Re: [Users] Rules on empty int fields
    >
    > Hey Lindsay -
    >
    > Good point, should have been more clear. I am changing the value of the
    > target every time I save the form. I can get the rule to fire only if the
    > field in the RuleDef has a value. If it's blank nothing happens.
    >
    > Thanks.
    >
    > -Brian
    >
    > Lindsay Stevens wrote:
    >> Hi Brian,
    >> It's not totally clear from the description that this is the issue at
    >> play, but keep in mind / be aware that rules are only evaluated for
    >> firing or not firing when the target item has a value submitted for it
    >> ( e.g. it's yellow before saving ). Exceptions: import and batch mode
    >> ( aka Run all rules for this CRF ).
    >> Best regards, Lindsay
    >>
    >> On Oct 17, 2013 6:34 PM, "Brian Johnson"> > wrote:
    >>
    >> Hey Folks -
    >>
    >> I'm trying to write a rule that looks at an INT field and checks to
    >> see if it's greater than 0. The problem is if the field is left
    >> blank the rule doesn't seem to return true or false. If I fill in
    >> the field with an integer the rule fires and I get true/false as
    >> expected. Delete the int from the field and the rule doesn't fire
    >> at all again. Here is the Rule:
    >>
    >>
    >>
    >>
    >> I_RANDO___RIGNORE
    >>
    >>
    >> > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    >>
    >>
    >>
    >>
    >>
    >> > DoubleDataEntry="true" ImportDataEntry="false" Batch="false" />
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >> Multiple Agent Variable Dosing
    >>
    >>
    >>
    > (SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENR
    > OLLDRUG2CYCLINGDAYSON_4606
    >> ne "" and
    >>
    > SE_ENROLLMENT.F_BLJ_ENROLLME___6512.IG_BLJ_E_UNGROUPED_7499.__I_BLJ_E___ENRO
    > LLDRUG2CYCLINGDAYSON_4606
    >> gt 0)
    >>
    >>
    >>
    >>
    >> Steps I took to test this:
    >>
    >> 1. Set I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 on the
    >> BLJ_ENROLLME_6512 form to 1 and save form
    >> 2. Load the event with I_RANDO_RCESDSCORE
    >> 3. Change some values and click save
    >> 4. I_RANDO_RCESDSCORE gets set as expected with "Is Multi V12"
    >> 5. Go back to the BLJ_ENROLLME_6512 form and delete the value for
    >> I_BLJ_E___ENROLLDRUG2CYCLINGDAYSON_4606 and save form
    >> 6. Go back to the even with I_RANDO_RCESDSCORE
    >> 7. Change some values and click save
    >> 8. I_RANDO_RCESDSCORE is not updated, still reads "Is Multi V12"
    >> instead of "Not Multi V12"
    >> 9. Repeat 1-3 but set the field to 0 and I_RANDO_RCESDSCORE is
    >> updated with "Not Multi V12"
    >>
    >> I'm stumped as to why leaving the field blank means a rule won't
    >> fire against it. I thought that was what the ne "" would fix, but
    >> it didn't. I know I must be doing something wrong, but what is it?
    >> Any help is GREATLY appreciated. I'm running OpenClinica
    >> Community version 3.1.4.
    >>
    >> Thanks folks!
    >>
    >> -Brian
    >>
This discussion has been closed.