Welcome Guest Search | Active Topics | Log In | Register

Making a field with spaces editable Options
blcArmadillo
#1 Posted : Wednesday, July 28, 2010 9:51:06 AM
Rank: Newbie

Groups: Registered

Joined: 7/28/2010
Posts: 1
I'm trying to inline editing on a field that has spaces in the value. For example say the contents of the cell are 'CAN 938'. When I turn on editing for the row I get the following javascript error:

Code:
unterminated string literal
    [Break on this error] $.fn.fmatter.rowactions('CAN


Any ideas?
tony
#2 Posted : Thursday, July 29, 2010 12:56:52 AM
Rank: Administration

Groups: Registered

Joined: 1/8/2010
Posts: 635
Location: Sofia, Bulgaria
Hello,
Sorry, but no ideas with so little information.
Could you please send us a link to the problem, or if this is not possible send us the grid configuration file again with the response which causes the problem.
Thank you

Best Regards
Tony Tomov
TriRand Inc
tony
#3 Posted : Thursday, July 29, 2010 1:03:34 AM
Rank: Administration

Groups: Registered

Joined: 1/8/2010
Posts: 635
Location: Sofia, Bulgaria
Hello,
After looking into the JS code maybe I see where is the problem.

You do not set a Primary Id key.
If this key is not set the grid try to obtain the key, if the primary key can not be obtained we use the first one.
It seems like the grid can not find the primary key and uses the first one.
The values of the first key has spaces, which is not allowed id value.

Please set

$grid->setPrimaryKeyId("mykey");

And your problem will be solved.

Regards
Tony Tomov
TriRand Inc
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.081 seconds.