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
2 answers

Not sure how to add record if not exists jaydata sqllite

I am trying to accomplish the following task. I have a json array returned from a remote database and I want to iterate over it, check if a record with the ID of the object exists in the local database. If exists, I want to update the record, if…
Dave Stringer
  • 349
  • 4
  • 15
0
votes
3 answers

Wrapper to support both webSql and indexedDB?

My application should support offline mode on the following browsers: IE Chrome Firefox Safari (supports WebSQL only) and also application using KendoUI for UI. I have looked at JayData which looks good fit for my requirement but I heard JayData…
Raj
  • 21
  • 2
0
votes
1 answer

How to filter data in jaydata for indexeddb by date?

I have a data model as follows in jaydata Model.js $data.Entity.extend('Expense', { Id: { type: 'int', key: true, computed: true }, Name: { type: 'string' }, Date: { type: Date }, Price: { type: 'number' } …
0
votes
1 answer

How to add a property to an entity dynamically?

How do you add a property to an entity dynamically? I've been looking, but haven't found anything. For example, I have this model definition (I'm using the WebSQL provider): $data.Entity.extend('$db.Types.Person', { id: { type: 'int', key:…
Jose Alonso Monge
  • 1,014
  • 1
  • 16
  • 29
0
votes
1 answer

How to do a synchronous call with jaydata

I'm a bit confused about the asynchous call to the DataBase. I just want to have a javasctipt adapter class for the calls to the web sql. But I'm not quite sure how to do this. Propably somebody have a good hint for me. The function…
0
votes
1 answer

JayData entity relations

How I create relations between entities on JayData? This is my table schema: $data.Entity.extend("OrdemServico", { Status: { type: String }, SafAnoSafra: { type: "int" }, LancObservacao: { type: String }, LancDtPrevIni: { type: Date…
DontVoteMeDown
  • 21,122
  • 10
  • 69
  • 105
0
votes
1 answer

Using JayData with dynamic init

i am new with JayData, i have an OData service which i want to consume with JayData i have this function $data.initService('/odata') .then(function (context) { // manage your data through context with JSLQ …
li-raz
  • 1,678
  • 2
  • 29
  • 57
0
votes
2 answers

Best way to related models

I am mapping two related models by storing the primary key of related model in the first and then computing the actual model at runtime. This cause my model to access the view-model list. Is there any better way of relating these models function…
goto
  • 433
  • 3
  • 13
0
votes
1 answer

jaydata indexedDb joined database

I have created a sample database and test scripts with it. The database structure is: I have created a JSFiddle for it: fiddle Click all the buttons except stress test on the top, then click the tests. The problem is, it perfectly works with…
0
votes
1 answer

Jaydata .forEach only iterating 50 times

My Jaydata and OData endpoint are completely functional. :) When I have a database with less than 50 entries, everything works perfect. But for ALL of my databases with 50+ entries, JayData's .forEach only iterates through the first 50. At first I…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
0
votes
1 answer

Adding manually defined service operations inside initService for odata service

I have a WebApi controller derived from ApiController that has a service operation: public class Airports2Controller : ApiController { protected airportEntities db = new airportEntities (); [Queryable] [HttpGet] …
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

Unable to parse odata json responses containing root property "d" using wcf client services 5.3 generator

I am starting this new thread as a continuation of comments in: Consume Odata Service and get result in JSON The issue that I am facing is that I have upgraded to wcf data services 5.5 and wcf client tools 5.3 as recommended in the thread. And I am…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

GeoLocation data type incompatibility between odata service and it's .Net generated client side proxy

I am trying to do a proof of concept with the odata compliant cloud database feature of JayStorm. So far it's going great, but I have one big problem that fits in the category of odata service client proxy serialization category. My odata service…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
2 answers

KendoUI DataSource binding to MVVM grid in durandal (using hottowel template) doesn't seem to work

I am using Visual Studio 2012 Update 2 hottowel template with updated durandal and jquery nuget packages... Here is my code: Durandal main.js: require.config({ paths: { "text": "durandal/amd/text" } }); define(['durandal/app',…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

JayData exception on saving GeographyPoint to JayStack database

The following code throws the following exception on SaveChanges(): System.Data.Services.Client.DataServiceRequestException was unhandled HResult=-2146233079 Message=An error occurred while processing this request. …
t316
  • 1,149
  • 1
  • 15
  • 28