sc_link macro error when used dynamically

hi,

I have a grid application and in onrecord event i have an if statement that if the statement is true, then sc_link macro will be used else sc_link macro should not be used. Example, my first 2 rows returned false so no sc_link macro. then 3 row returned true so sc_link macro was used. heres the error: the remaining records or rows returns either false or true. however, regardless if true or false, all the remaining rows or records, sc_link macro is being used which should not be the case.

anyone experiencing the same?

share the code