(entityState != 1)
See Image below
Then add this attribute to your view object and use it in an expression to highlight rows that have been modified and not yet commited,.
inlineStyle="#{row.isDirty ? 'background-color:#FFF9B3;' : ''}"
Here's another Groovy expression that will display the original posted value of any attribute in your entity that has been modified but not yet posted
adf.object.getPostedAttribute(adf.object.getAttributeIndexOf("Name"))
For an overview of using Groovy expression in ADF see this white paper by Grant Ronald
This is a clean way to get the isdirty() without code, but only works if you change rows. I found that if you set autosubmit to true and set the partial page triggers for the changed field to the attribute ID it updates automatically.
ReplyDeleteAlso note that inline style applies to output text fields, while the contentStyle applies to input text fields.
ReplyDelete