Error in code when creating new record through deeplink

Forum to discuss the Web client version of Servoy.

Error in code when creating new record through deeplink

Postby derk.hulshof » Thu Apr 03, 2014 10:12 am

Hi all,

I am using a deeplink in third party webapplication to show a form from a Servoy solution.
Using : {serverUrl}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}/a/{value}

In the method I do some coding to retrieve some information from table A. The form / foundset which is displayed is using table B.
Now I use
var idx = forms.uren.foundset.newRecord(false);
to make sure that I have a new record in the foundset.
When this line is called Servoy generates an error depending on not null columns in table B.

---- error ---
Kan form data niet opslaan / Can't save form data
> com.servoy.j2db.dataprocessing.DataException: ORA-01400: Kan geen NULL invoegen in ("[SCHEMA/USERNAME]"."TABLE B"."COLUMN").
> com.servoy.j2db.dataprocessing.DataException: ORA-01400: Can't insert null value into ("[SCHEMA/USERNAME]"."TABLE B"."COLUMN").
--- end error --------

How can I fix this, or anyone an idea?

It works all fine, only this error is raising, where I want to get rid of.

Tnx in advance

version:
Servoy v7.3.1 and/or 7.4
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: Error in code when creating new record through deeplink

Postby Harjo » Thu Apr 03, 2014 10:40 am

has this really something todo with using a deeplink?
or do you get the same error, when you show the same form, and someone hit's a button?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Error in code when creating new record through deeplink

Postby derk.hulshof » Thu Apr 03, 2014 11:13 am

Hi Harjo,

Tnx for the reply. It also happens when when I put the var idx = forms.uren.foundset.newRecord(false); line within an onAction call outside the deeplink.
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: Error in code when creating new record through deeplink

Postby Hans Nieuwenhuis » Thu Apr 03, 2014 12:54 pm

what if You use databaseManager.nullColumnValidatorEnabled = false;

I set this in the onOpen method of my solution
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Error in code when creating new record through deeplink

Postby derk.hulshof » Thu Apr 03, 2014 1:03 pm

Hi Hans,

Tnx for the reply.
Nope is not the answer.

Looks like Servoy initiated a foundset (empty record) or something, which it would like to save on the newRecord call.
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: Error in code when creating new record through deeplink

Postby derk.hulshof » Thu Apr 03, 2014 2:49 pm

Solved: it was the autoSave option
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 7 guests