p.s. I'm setting the value by using:
I believe the dialog you're referring to checks the isDirty attribute on the item to see whether there are any unsaved changes. You can try manually setting this using item.setAttribute("isDirty", "1");.
Aras Labs Software Engineer