E
Ed Thurber
Hello all:
hope someone can help me with this. I have an element that has a default
value of
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
OC,
my
rom_Prj_dts/my
OC) > 0 and my
rty <= 10 and my
ev_Grp =
current()/../../my
ev_Grp])
which sets the element to a count of items in a repeating group that meet a
certain criteria. This works fine.
There are also rules set up on this this element that state if the count = 0
then set the value in another element to somthing, and if the count > 0 to
set the value in the other element to something else. This also works.
I want to get rid of the first element and use rules on the second element
to set the value directly. I thought I could just paste the above equasion,
with the proper logical operator at the end, into the condition as an
expression and it would work.
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
OC,
my
rom_Prj_dts/my
OC) > 0 and my
rty <= 10 and my
ev_Grp =
current()/../../my
ev_Grp]) = 0
or
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
OC,
my
rom_Prj_dts/my
OC) > 0 and my
rty <= 10 and my
ev_Grp =
current()/../../my
ev_Grp]) > 0
It does not.
No errors thrown, just does not set the value.
Any trick to using expressions?
Ed
hope someone can help me with this. I have an element that has a default
value of
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
my
current()/../../my
which sets the element to a count of items in a repeating group that meet a
certain criteria. This works fine.
There are also rules set up on this this element that state if the count = 0
then set the value in another element to somthing, and if the count > 0 to
set the value in the other element to something else. This also works.
I want to get rid of the first element and use rules on the second element
to set the value directly. I thought I could just paste the above equasion,
with the proper logical operator at the end, into the condition as an
expression and it would work.
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
my
current()/../../my
or
count(../../../my:Header[msxsl:string-compare(my:Curr_Prj_Dts/my
my
current()/../../my
It does not.
No errors thrown, just does not set the value.
Any trick to using expressions?
Ed