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

Jaydata web api with OData provider -- provider fallback failed error

I'm developing an application with jaydata, OData and web api. Source code is given below: $(document).ready(function () { $data.Entity.extend('$org.types.Student', { Name: { type: 'Edm.String', nullable: false, required: true,…
1
vote
1 answer

Jaydata update not working correctly for webapi v2 odata

I have initialized a jaydata context: $data.initService('/odata/$metadata', { dataServiceVersion: '3.0' }).then(function (context) { if (!mycontext) mycontext= context; //this is a hack mycontext.prepareRequest = function (r) { …
CoffeeCode
  • 4,296
  • 9
  • 40
  • 55
1
vote
1 answer

JayData incorrect behaviour with WebApi v2 Odata during entity update the Patch endpoint get invoked

While trying to update the entity, JayData triggers the PatchEntity method on the WepAPI backend. I find this as an invalid behaviour as for the UpdateEntity should be invoked. The add and delete entity functionality works OK. On the backend I have…
CoffeeCode
  • 4,296
  • 9
  • 40
  • 55
1
vote
1 answer

TypeScript compile errors with JayData library and JaySvcUtil generated code

Just started to play with JayData lib. and want to take the benefits of TypeScript. I've included in my VS2013 project following files: - jaydata.js - jaydata.d.ts - JayDataContext.js, created with JaySvcUtil (v. 1.3.5) - JayDataContext.d.ts,…
1
vote
1 answer

What's a best practice for using custom entities in jayData?

I've a customized mechanism to define classes in JavaScript as below: Tools.User = Tools.Class.define("Tools.User", Tools.Entity, { Id: { type: "int", key: true, computed: true }, IsActive: { type: Boolean }, IsAdmin: { type: Boolean }, …
Yaser Moradi
  • 3,267
  • 3
  • 24
  • 50
1
vote
1 answer

Inconsistent behavior in AngularJS views populated with Jaydata

I am attempting to build a proof of concept application using AngularJS and Jaydata. I am loosely following the MVC pattern on the AngularJS home page (http://angularjs.org/) under "Wire up a Backend". Instead of Firebase, I'm using WebSQL via…
agileMike
  • 453
  • 3
  • 14
1
vote
1 answer

Jaydata and Ember Set weirdness

It seems that JayData EntitySet does not catch property changes when set through Ember like this: //init at start controller.set('todo', todoDB.Todos.attachOrGet({ Id:1})); //later in app controller.set('todo.Completed', true); //in the…
Jmorvan
  • 1,020
  • 11
  • 31
1
vote
1 answer

Getting error when using µ symbol in angularjs

Getting this error i am retriving data from web sql using jaydata. Error: Lexer Error: Unexpected next character at columns 27-27 [µ] in expression [foodDetail.FoodItem.Vit_C__µg_]. My code is as below
  • Vitamin C
    Asad Fida
    • 555
    • 3
    • 10
  • 1
    vote
    3 answers

    How to set total count of kendo pager manually

    I've used JayData to load data from OData enabled asp.net web api within following query: .withInlineCount().filter('it.IsArchived != true').orderBy('it.dVehicle_01').take(6) As a result, I have an array of entities, that have a property named…
    Yaser Moradi
    • 3,267
    • 3
    • 24
    • 50
    1
    vote
    2 answers

    Jaydata with requirejs

    I am getting the following error while using require.js with Jaydata: $.data is not defined Here,is my code.. $data.Entity.extend("schedule_common", { 'ScheduleCommonId' : { key:true,type:'int',nullable:false,required:true } }); I…
    xTMNTxRaphaelx
    • 1,387
    • 3
    • 11
    • 14
    1
    vote
    1 answer

    Insert data in a loop in jaydata

    I have an array of objects and want to insert them in a table but only first one record is inserted and rest are not data.forEach(function(obj){ mydb.tasks.add(obj); mydb.saveChanges(); }); here is what I am actually…
    1
    vote
    0 answers

    jaydata "automatic attach of related entities" not working?

    According to http://jaydata.org/blog/release-notes, below "JayData 1.3.1 Interoperability Edition", there is an item titled "Auto-attach of included child objects" In my code, i tried this: smarterpjs.localdb.Clientes …
    Javier Castro
    • 321
    • 3
    • 12
    1
    vote
    0 answers

    Updating many-to-many relations in JayData

    My OData model contains a pair of entities with many-to-many relationship (Parents-Children). I am trying to add a child entity to a parent's Children navigation property, but calling saveChanges() afterwards has no effect at all. The code looks…
    Johan Hirsch
    • 557
    • 4
    • 21
    1
    vote
    2 answers

    JayData oData request with custom headers

    I need to send custom headers to my wcf oData Service but with the following function the headers dont get modified. entities.onReady(function () { entities.prepareRequest = function(r) { r[0].headers['APIKey'] = 'ABC'; }; …
    Jmorvan
    • 1,020
    • 11
    • 31
    1
    vote
    3 answers

    WebSQL data into AngularJs DropDown

    I have very simple question about getting data from WebSql I have DropDown i.e