Getting an error in textbox while copy & paste

Forum to discuss the new web client version of Servoy.

Getting an error in textbox while copy & paste

Postby smilanshah » Wed Sep 27, 2017 1:16 pm

Hi Team

We are getting an error in textbox control.

The case is something that when we open the application first time and one form is there where textbox control are. When we copy & pat anything into it then below error is coming.

servoyformat.js:643 Uncaught TypeError: Cannot read property 'length' of undefined.

Can you please look into it and revert back to us.
smilanshah
 
Posts: 18
Joined: Sat May 20, 2017 11:41 am

Re: Getting an error in textbox while copy & paste

Postby smilanshah » Wed Sep 27, 2017 1:17 pm

Attached image for the reference purpose.
You do not have the required permissions to view the files attached to this post.
smilanshah
 
Posts: 18
Joined: Sat May 20, 2017 11:41 am

Re: Getting an error in textbox while copy & paste

Postby kwpsd » Wed Sep 27, 2017 6:56 pm

Hi, smilanshah.

The error message indicates that the expression:

Code: Select all
value.length


cannot be evaluated, because the argument 'value' passed to the function for is null. Consider using the built-in debugger in Developer to track down the arguments you are passing to the function.

I hope this helps!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Getting an error in textbox while copy & paste

Postby ROCLASI » Wed Sep 27, 2017 7:04 pm

Hi smilanshah,

Are you sure you have a dataprovider attached to this form element?

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Getting an error in textbox while copy & paste

Postby smilanshah » Thu Sep 28, 2017 9:12 am

Hi

We found the root cause and value set as balnk in servoyformat.js -> function input(e) {
var currentValue = element.val();
...
}

In above code, element.val() is coming "" BLANK. and due to that it cause an issue.

Instead of above if we replace it with below then value is coming,

element.children().children()[0].value

Let me attach one snap for your reference too.
You do not have the required permissions to view the files attached to this post.
smilanshah
 
Posts: 18
Joined: Sat May 20, 2017 11:41 am

Re: Getting an error in textbox while copy & paste

Postby smilanshah » Sat Oct 07, 2017 1:01 pm

waiting response from your side.
smilanshah
 
Posts: 18
Joined: Sat May 20, 2017 11:41 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 7 guests