"#before" does not work properly for create audit

Posted by Rollbase User on 30-Oct-2012 07:57

Hi Sir, can you help on my problem?I'm using a trigger to add details on my audit trail but seems not working properly for me. Here's the code:  And here's the output:  as you can see on the output, instead of showing the actual value of the status it shows the numeric value of the status. Is this a bug?Thanks

All Replies

Posted by Admin on 30-Oct-2012 12:02

This is how it works: #before suffix gives you raw record field values, which is numeric ID in case of status.



To get status name instead you can try EVAL:



#EVAL[rbv_api.getCodeById("my_objectr", "status", {!status#before})]

Posted by Admin on 18-Dec-2012 01:21

Thanks Sir.!:))

This thread is closed