I have inherited a Notes db in which users enter data on a form which is displayed in a table. When saved, a radio button displays on the lower part of the form which is not accessible to the user but which I have access to and would like to use to approve or reject rows in the table. The table has a status column which allows for this with icons set up for "submitted," "authorized," or "rejected. My problem is I can't get the radio button to approve or reject. It is "stuck" on submitted (the status of which occurs when the user presses a "submit" button). Here is the code I have (which doesn't work) in order to change the status to "authorized" (same for rejected with appropriate text replacements). I'm hoping someone can clue me in as to why it doesn't work. Thanks in advance, for any help. --Ed
@Command([EditDocument];"1");
@If(@IsValid;"";@Return(""));
FIELD ChangeDate := @Today;
FIELD Status := "Authorized";
FIELD ChangeLog := ChangeLog + @NewLine + "Authorized on " + @Text(@Now);
@Command([ViewRefreshFields]);
@If(@PostedCommand([FileSave]))
@Command([EditDocument];"1");
@If(@IsValid;"";@Return(""));
FIELD ChangeDate := @Today;
FIELD Status := "Authorized";
FIELD ChangeLog := ChangeLog + @NewLine + "Authorized on " + @Text(@Now);
@Command([ViewRefreshFields]);
@If(@PostedCommand([FileSave]))