Hi Jyothi,
What is the datatype of the field? Setfocus does not make any field dirty.
please run the following code on "onsave" and see if you are getting any alert when you click save after setting focus. This method will tell you the dirty fields.
function extractBlackSheeps() {
var attributes = Xrm.Page.data.entity.attributes.get();
var dirtys = '';
for (var i in attributes) {
var attribute = attributes[i];
if (attribute.getIsDirty())
dirtys = dirtys + attribute.getName() + " ";
}
if (dirtys != '')
alert(dirtys);
}
Regards,
Jithesh