Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






mongoDB Rest URL

UserPost

12:09
07/06/2012


MrBean

New Member

posts 1

Post edited 12:10 – 07/06/2012 by MrBean


I'm trying to use the MongoDB Rest URL as a datasource for jqGrid. I have read the documentation for the jsonreader, but i have found no option to config it for the MongoDB structure.

MongoDB Rest URL Output:

{
  "offset" : 0,
  "rows": [
    { "_id" : { "$oid" : "1234" }, "KEY1" : "VALUE", "KEY2" : "VALUE" } ,
    { "_id" : { "$oid" : "1235" }, "KEY1" : "VALUE", "KEY2" : "VALUE" } ,
    { "_id" : { "$oid" : "1236" }, "KEY1" : "VALUE", "KEY2" : "VALUE" } ,
  ],

  "total_rows" : 3 ,
  "query" : {} ,
  "millis" : 0
}

my jsonreader:


jsonReader: {

root: "rows",
records: "total_rows"
}
Firebug returns invalid label "offset" : 0, Is it possible to config jqGrid to use the MongoDB Rest URL?

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

110 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9663

Posts: 28952

Membership:

There are 10357 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1167

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7043 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information