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

Fiddle with jaydata and kendoui grid MVVM - filter doesn't work

The following fiddle is using jaydata and kendoui grid MVVM. The data loads nicely but filtering does not work. Why? Will kendoui and jaydata combination be able to use the kendoui grid grouping functionality any time…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

Using durandal with jaydata and kendoui

I created a new VS2012 project using the hottowel template, which in return uses durandal, knockout and breeze. I want to use jaydata instead of breeze and for the ui layer I want to use the excellent asKendoDataSource() functionality to power a…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
2 answers

Unable to resolve type:System.Data.Spatial.DbGeography with sql server geography data type returned in odata

I have a table in sql server with geography type. I use entity framework and EntitySetController to return a [Queryable] list of the entity containing the geography column. Here is an example of the returned data: { "d":{ …
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

Complex Field Manipulation in Jaydata

I have a database structure like this. Every employee belongs to a department, every stock belongs to a department, every department has a list of employees and list of stocks associated with it. I initialize the database with this…
0
votes
2 answers

JayStorm data services insert/update/delete/query interception

If I wanted to inject some code in to my odata insert/update/delete/query end points is there a way to do this? For example: On query I want to inject a security based further restraint (like if role is x then return subset of data). On update I…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
0 answers

call to odata webservice returns 401 using jaydata.js

I make a call to an odata webservice using jaydata.js but it returns 401 Unauthorized. Even if browse to the service and authenticate first manually in a second browser tab, is still get 401 in the first tab. This is my code :
voilbak
  • 39
  • 4
0
votes
1 answer

Relational Data in JayData

I'm re-writing an existing application from WebSql to JayData. The app is built on WebSql which, being, depricated, needs to be replaced (sooner or later at least). I re factored all the WebSql into its own Adapter and am now attempting to write…
Jon Wells
  • 4,191
  • 9
  • 40
  • 69
0
votes
1 answer

Breeze & OData: Trouble expanding a collection

What works: In Breeze I can execute this query: Q1 breeze.EntityQuery.from('accounts').where('id', 'eq', account_id) which results in this request: R1 http://localhost:8000/odata/findash.svc/accounts ?$filter=id eq…
0
votes
1 answer

Jaydata indexedDb database creation issues

I have this problem on jayData: I try to create this simple database: var x=$data.Entity.extend("Person", { ID: {type: "int", key:true, required: true}, Name: {type: "string", required: true} }); $data.EntityContext.extend("PersonDatabase", { …
0
votes
1 answer

OData, JayData, and node.js: Cannot find ExpressionVisitor.js

I ran npm install odata-server, but calling require('odata-server') fails with the following: Using JayLint for code parsing module.js:340 throw err; ^ Error: Cannot find module './Types/Expressions/Visitors/ExpressionVisitor.js' …
rovaughn
  • 1,213
  • 15
  • 24
0
votes
1 answer

JayData upload file

I have a WCF Data Services running and JayData as a client. I now want to upload a file en put it in a blob in the database. I created a entity with a binary scalar property and a string property for the file name. JaySvcUtil creates my…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
0
votes
1 answer

Using JayData to fetch the data from sql server into websql browser

I am trying to add the entity which is related to another entity onlinedb.DemoShifts.filter("it.EmployeeID ==="+empID).toArray(function (DemoShift) { DemoShift.forEach(function (demoShift) { …
0
votes
1 answer

How to manually hookup a jaydata model to a (non-O-Data) restful service

I like all the features that JayData provides. I am wondering for when I occasionally have a non-O-Data restful service if there is a way to manually hookup CRUD ops to my existing jaydata entity definitions so that I can take advantage of all the…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

JayData.js how to pass variable to the request header

I'm trying to call API controller which validates request's header (X-Session-id). How to configure oDataProvider to pass variable to request header? var context = new JayData.SomeEntities({ name: 'oData', oDataServiceHost:…
AndreyDG
  • 25
  • 4
0
votes
1 answer

Delete cascade JayData

Following my previous question here, is there a way to have the same behaviour as ON DELETE CASCADE (MySQL) with JayData? If I delete a Test I would like all linked Chapters and Checks to be deleted. I tried this code: myDB.onReady(function(){ …
Maxbester
  • 2,435
  • 7
  • 42
  • 70