Tuesday, August 7, 2012

JDev/ADF sample - Difference Between ADF BC Groovy Old Value and Posted Attribute

  • Difference Between ADF BC Groovy Old Value and Posted Attribute. To keep it short - ADF BC Groovy keyword "oldValue" and ADF BC API method getPostedAttribute(index) are not the same thing. I spoke with ADF developer today, who have spent around 5 days debugging and hitting validation bug related to incorrect usage of "oldValue" by Groovy. Both approached - "oldValue" and getPostedAttribute(index) are valid for its own use cases. But you should clearly understand the difference, otherwise may hit some painful bugs in validation rules.
    Download - OldNewValueValidationApp.zip

No comments: