Questions tagged [jaydata]

JayData is a standards-based, cross-platform Javascript library and a set of practices to access and manipulate data from various online and offline sources.

JayData is a standards-based, cross-platform Javascript library and a set of practices to access and manipulate data from various online and offline sources.

243 questions
0
votes
1 answer

Unique constraint JayData

Is there a way to specify that a field has to be unique with JayData (same as SQL)? For example: $data.Entity.extend("Test", { Id: { type: "int", key: true, computed: true }, Name: { type: "string", required: true, unique: true, maxLength:…
Maxbester
  • 2,435
  • 7
  • 42
  • 70
0
votes
1 answer

JayData create object not working as expected

I find it very hard to find any info about this so I'm asking it on SO. I want to create a new "Connection" with the JayData Entity API. A Connection has 2 DevicePorts, both linked with a Device and a Port. So: Connection(Sender: DevicePort(Device,…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
0
votes
1 answer

JayData "Uncaught RangeError: Maximum call stack size exceeded"

Have a Model where I want to be able to log the devicetypes of a connection by doing this: var connections = DataLayer.context.ConnectionSet.filter(function(item) { return item.Id == id; }, {id: 1}); connections.forEach(function(item) { …
HansElsen
  • 1,639
  • 5
  • 27
  • 47
0
votes
3 answers

Jaydata when there are sequential add operations not working

I'm using Jaydata with it's Indexeddbprovider, I've a problem in adding scenario. When there are multiple adds, just the first one works! $data.Entity.extend("Person", { Id: { type: "int", key: true, computed: false }, Task: { type: String,…
Mohsen Asfia
  • 235
  • 1
  • 3
  • 12
0
votes
2 answers

Backbone Jaydata Odata

I have an OData(v3) endpoint that will be used with a mobile Backbone application. I am trying to integrate Jaydata to avoid building the OData queries. I am still developing my Backbone skills and I am not sure how to integrate Jaydata with my…
thedev
  • 2,816
  • 8
  • 34
  • 47
0
votes
1 answer

JayData: Trying to insert with a 1 to Many, getting DEFAULT ERROR CALLBACK

I have stripped down my application and database context to the simplest bits. I have two tables, Maps and Markers. Many Markers exist for each map. With an existing Map, I can't seem to insert new Markers; I am getting the default error…
Adam Casey
  • 949
  • 2
  • 8
  • 24
0
votes
2 answers

ko.mapping.fromJS with an array of JayData objects

When I use an array of custom jaydata objects the result is bizarre. var arr = []; arr.push(new Northwind.Employee()); arr.push(new Northwind.Employee()); var newarr = ko.mapping.fromJS(arr); If the debug is observed, the variable newarr looks…
0
votes
1 answer

Two distinct associations instead of one

I have two related entities (I've added all possible data annotations, but it seems that ODataConventionModelBuilder ignores them): public class Examination { [InverseProperty("Examination")] public virtual ICollection Variables {…
Denis
  • 1,167
  • 1
  • 10
  • 30
0
votes
1 answer

webSQL transactions with JayData

This question came to the JayData forum but I decided to share it here as this is an interesting topic and maybe others can benefit from it too. by V3nom » Tue Oct 23, 2012 2:06 pm I struggle to find information on websql transactions in JayData.…
Peter Aron Zentai
  • 11,482
  • 5
  • 41
  • 71
0
votes
1 answer

Asp.net MVC with Jaydata

How does asp.net mvc fit with Jaydata? Being that Jaydata is a javascript based query language than asp.net mvc and jaydata are not used together? i.e. with controllers and so on? Thanks
Matt
  • 3,305
  • 11
  • 54
  • 98
0
votes
1 answer

JayData one to many projections

I want to use jaydata JSLQ (JavaScript Language Query) to flatten a list of Post with one-to-many PostData into my ViewModel My EF Entity looks like this: public partial class Post { public Post() { this.PostData =…
Stefan
  • 1,486
  • 2
  • 13
  • 19
0
votes
1 answer

Database events with JayData

Is there a way to register for events or receive any other kinds of notifications when EntitySet is changed in any way? (objects updated, inserted, deleted, etc) I want Knockout to listen for these changes and be able to update EntitySet from…
Kostas
  • 2,434
  • 3
  • 19
  • 18
0
votes
2 answers

JayData - Server side validation (CRUD)

I want to create an application with JayData + WCF/RIA Services but i need to detect the changes in the client side (Javascript) entities to put the business logic on the server side. E.g: if i change a name of a customer, i want to do some…
Kaffee Bohne
  • 1,457
  • 3
  • 14
  • 17
0
votes
1 answer

Insert data to sqlite from json

I'm new in Mobile programming and I want to find how to store data from json in sqlite the json file will be send from the server,so how can i get it and insert data to sqlite i'm using phonegap and jquerymobile and my application is hybrid. my…
user1393958
  • 35
  • 2
  • 8
0
votes
2 answers

Multiple items in one objectStore

I am trying to do simple application with Indexed DB. I want to store multiple items in one objectStore. Is it possible? I tried something like that, but it does not work: itemsDB.indexedDB.addTodo = function(Name, Desp) { var db =…
Ali Ismayilov
  • 1,707
  • 3
  • 22
  • 37
1 2 3
16
17