data not saving

Forum to discuss the new web client version of Servoy.

data not saving

Postby ashutoslenka426 » Thu Jan 28, 2016 1:51 pm

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 .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: data not saving

Postby gganea » Thu Jan 28, 2016 2:01 pm

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.
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: data not saving

Postby ashutoslenka426 » Thu Jan 28, 2016 2:19 pm

Hi George,

Thanks for your reply . I am doing the same thing . But sorry it is not saving.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: data not saving

Postby gganea » Mon Feb 01, 2016 2:02 pm

Does this work from the developer and not from a war deployment? Or not even from developer?
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: data not saving

Postby jcompagner » Thu Feb 04, 2016 5:35 pm

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: data not saving

Postby Andrei Costescu » Thu Feb 04, 2016 6:32 pm

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.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests