data not saving

Hi All,

I have placed a webcomponent in the form . There are some model dataproviders . These fields are editable . When I am editing these fields , the data should be automatically gets updated in the db . But the data is not saving . This is a simple stuff . Please advise me .

Hi Ashutos,

The data should be written in the db if you navigate to a different record.
If your form is an absolute layout form, you can also click on an empty part of the form to save the data in the db.

Hi George,

Thanks for your reply . I am doing the same thing . But sorry it is not saving.

Does this work from the developer and not from a war deployment? Or not even from developer?

is this your own webcomponent?
If so what does the spec looks like?

do you really allow the dataprovider to be pushed to the server?

So if you look at our textfield spec:

“dataProviderID” : { “type”:“dataprovider”, “pushToServer”: “allow”

that says that the textfield allows the data to be pushed back to the server

If it’s your component then besides what Johan said you also have to use svy-autoapply directive or call svyServoyapi.apply(…) (Servoy provided API) from javascript.
See a similar discussion here (see point 3 of that post, ignore all the foundset type related things :) ): https://www.servoy.com/forum/viewtopic.php?f=69&t=21153#p113555

There is a case in the support system about documenting this better.