help-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Append only field


From: Stuart Stevens
Subject: Append only field
Date: Thu, 26 Aug 2004 13:15:19 -0700

I am interested in having an append only field.  When edited, the field would be blank and any new text would be added to the field with the date and user name.  The entries would have the newest first.  Perhaps the order would be an attribute.  A template can be used to define the separation of each entry.

This can be achieved partially by using on-change and a one line change to gnatsweb.pr.  Editpr users would have to clear the "Comments" field for every submission.  Is anybody working on an append only field?  Is there any interest in such a field?


field "Comments" {
    multitext {
        default ""
    }
    on-change "Comments!=\"\"" {
        set-field "Comments" {
"================================================\n%D  %s\n\n%s\n\n%s\n"
                "$CurrentDate" "$EditUserEmailAddr" "$NewValue" "$OldValue"

        }
    }
    on-change "Comments==\"\"" {
        set-field "Comments" {
            "%s" "$OldValue"
        }
    }
}



Stuart Stevens
Firmware Engineer
Sierra Logic Inc.
9083 Foothills Blvd., Suite 300, Roseville, CA 95747
916 772-1234 x146,  916 772-1811 Fax
address@hidden   www.sierralogic.com

NOTICE:  This email message is for the sole use of the intended recipients and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]