Get Detail Field before save

Hello Community!

Is posible get a field in js from detail before save them? I need them to make a validation before save.

I'm using BaseFildsDetail.

Regards,

 

Like 0

Like

3 comments

You need to override the saveAsyncValidate method on the page and read the value from the database via ESQ in the method. Then you need to send the validation result on callback of the ESQ. You an find an example in the BaseEntityPage module in the saveAsyncValidate method. 

Eugene Podkovka,

I'm using a field detail so the detail field is wait to save when the edit page is save. Is posible save the detail before save the edit page?

I don't know what is "field detail". If  you are about an editable grid, then the previous answer will work. 

Show all comments