I have a req where in the below cube, user has to enter comment in 'edit comment' field. When ever higher official likes the comment, he has to enter 'Y' in Approve field so that comment from edit comment will be copied to Comment filed. I used the foll rule
Code: Select all
['Comment']=S:(IF(DB('Test Comment',!Test Date,!Test KRI,'Approve')@='Y', DB('Test Comment',!Test Date,!Test KRI,'Edit Comment'), STET));
I want to gray out(non editable) the EditComment field when ever Y is typed in Approve field.
I tried to assign some rule so that it grays out if Approve is Y, But am getting error.
Rule is used
Code: Select all
['Edit Comment']=S:(IF(DB('Test Comment',!Test Date,!Test KRI,'Approve')@='Y',DB('Test Comment',!Test Date,!Test KRI,'Edit Comment'),STET));
['Comment']=S:(IF(DB('Test Comment',!Test Date,!Test KRI,'Approve')@='Y', DB('Test Comment',!Test Date,!Test KRI,'Edit Comment'), STET));
Thanks
Daya