Hi,
the following code in script is not working
test1 = doc.DivName(0)
test2 = Evaluate({@If(@Contains(SysACO_1;"<division>");@ReplaceSubstring(SysACO_1;"<division>";test1);"")}, sysdetsdoc)
The current value of SysACO_1 is
All ACOs
<division> ACO
<division> DMT
AST
<division> All Staff
<site> All Staff
All Probation Grade Staff
but after test2 i am getting the following in the debugger
All ACOs
ACO
DMT
AST
All Staff
<site> All Staff
All Probation Grade Staff
for some reason it is not putting in the value of test1, when it is used in the evalute method of test2
What am i doing wrong..i was advised to:
You must use the CONTENT of test1 in the formula string
test2 = Evaluate({@If(@Contains(SysACO_1;"<division>");@ReplaceSubstring(SysACO_1;"<division>";}+test1+{);"")}, sysdetsdoc)
but after using the debugger this returned nothing
thanks in advance

Get doc value within Evaluate State... (Nadeem Shaikh 29.Apr.04)
. . 