Question

setting a field value on load of edit page

Hi All,

I want to set a field every time when edit page loads through esq. when i do so through onEnitityInitalized method, save and cancel button gets enabled in edit mode. Is it possible to force save the record without existing validations or is there any other way to do the same?

 

Thanks,

Gokul

Like 0

Like

1 comments

I believe the normal save function eventually calls this.saveEntity(), you can try calling it directly to avoid the validation.

You might need to also pass in the onSaved callback for things to function properly, like this: 

this.saveEntity(this.onSaved, this);

BTW, these are just some ideas, I've not tested that.

Ryan

Show all comments