@Prompt([Ok];“Status changes” ; “Status on credit will alternate between YES and NO when you push this button” + @Char(13) + @Char(13) + "status is now: " +tmp1 );
As you see this code alternate the variable to be YES or NO, and sets the value which I use in a formula in a column in my view. this value I show as a icon with this code:
@If(CuCred = “NO” ; 0 ; 11)
My problem is that when I (or other) open the document and do some changes or add more information and save the document, the icons disappear from the view.
The field “CuCred” is not changed, but still the icons disappear.
Sorry, but that is not the problem. The form has a field with two text values (YES and NO).
The code behind the button check for this value and turn it to NO if it YES and YES if it is NO.
It works fine when the account dept. use the button from the view (the icon becomes visible). It’s when another person in the workflow add or change some other information the icons disappear from the view.
The YES or NO field in the form is not changed, but still the column formula in the view seems to think this value has been set to something else.
Look again; the value in CuCred must be changed when the doc is edited. Use the document properties box to examine the contents of the field after editing the doc; it must be changing as a result of some formula written somewhere in that form. (Or, possibly, an update-triggered agent.)