Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Duplicate row ids when loading from XML
18/09/2010
22:42
Avatar
macbutch
San Francisco
Member
Members
Forum Posts: 3
Member Since:
18/09/2010
sp_UserOfflineSmall Offline

Hi there,

I'm sure this is my fault but I can't find anything in the documentation to help me. When I'm loading grid data from xml I get duplicate row ids. In my current attempts I have 2 rows loaded from xml (with ids 1 and 2) but the grid has 2 blank rows. Using firebug I can see that there are actually ids 1, 2, 2 and 4. You can see the xml data here:

http://app.codequan.com:4072/weights.xml

And a very rough and ugly (please excuse) page that tries to load that into a grid:

http://app.codequan.com:4072/weights

Seems to be the same in firefox and chrome. I've not tried IE. I found some references to handling ids in the forums but nothing that helped me work out what I've done wrong. It is easy enough for me to change the xml format if that would help. I can't really think of anything else so far.

thanks,

-mark

19/09/2010
01:09
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Mark,

first of all try to remove nested comments from your code (it is not allowed in JavaScript) and remove comma after editurl:

The code like
    editurl: "/weights/post_data",});
is wrong.
Regards
Oleg

19/09/2010
07:22
Avatar
macbutch
San Francisco
Member
Members
Forum Posts: 3
Member Since:
18/09/2010
sp_UserOfflineSmall Offline

Hi Oleg,

Thanks for the pointers - I didn't see any javascript errors in Chrome so I assumed it was 'ok'. Anyway, I've cleaned it up now (at the same URL) - would you be able to take another look? I still have the same problem.

thanks again,

-mark

19/09/2010
09:36
Avatar
macbutch
San Francisco
Member
Members
Forum Posts: 3
Member Since:
18/09/2010
sp_UserOfflineSmall Offline

I should add - I'm not sure the problem is only that there are duplicate ids. In my local app I've added more records and I don't always get duplicate ids (e.g. if all the ids in the XML are >10) but I still get alternate blank rows.

Weird....

02/06/2011
21:43
Avatar
r4raza
Member
Members
Forum Posts: 6
Member Since:
01/06/2011
sp_UserOfflineSmall Offline

I am getting a same issue. Any help would be great

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
43 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information