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

Avoiding global leaking when using JayData 1.3.4 local item store

Out of the box Entities defined by using $data.Entity.extend will be globally accessible. e.g. in the example taken from JayData's home page Todo will leak. // Case 1: local item store example from http://jaydata.org/ $data.Entity.extend("Todo",…
RainerAtSpirit
  • 3,723
  • 1
  • 17
  • 18
2
votes
2 answers

How can I create a JavaScript function from SQL where clause to pass it into filter function of JavaScript arrays as a predicate?

Scenario: I've a JavaScript based application which uses web sql database to store its data I've developed a custom entity set. It has a filter method which accepts string that contains sql query. for example: People.filter("Name = 'Test' and…
Yaser Moradi
  • 3,267
  • 3
  • 24
  • 50
2
votes
0 answers

Content-ID references in ASP.NET OData batch requests

I have an ASP.NET WebApi OData service, and I am trying to consume it from JavaScript using JayData. My model is as follows: class Parent { ICollection Children; } class Child { ICollection Parents; } I'm trying to add a new…
2
votes
2 answers

JayData inverseProperty

I have inverseProperty on my JayData entity: 'User': { 'type': 'RavenDBMembership.User', 'inverseProperty': '$$unbound' }, I would really like to be able to use it, but don't now how.. As much as I understand, the '$$unbound' value should load the…
Dovydas Navickas
  • 3,533
  • 1
  • 32
  • 48
2
votes
2 answers

How do I select the first odd/even numbered primary key in a SQL database

Let's say I have a simple table of values (almost like a key/value store). There is a primary key on the table which is indexed and auto incremented. For example here are some rows: [id] [columnA] [columnB] 2 "data" "more data" 3 …
user2503552
  • 601
  • 2
  • 8
  • 14
2
votes
1 answer

How to retrieve field names in jaydata

I have a simple database in Jaydata: $data.Entity.extend("Person", { Name: { type: String, required: true}, LastName: {type: String, required: true}, DepartmentId: {type: int} }); $data.EntityContext.extend("PersonDatabase", { People : { type :…
2
votes
0 answers

JayData create entity with relation

I want to create an entity, lets say 'connection', between two existing entities. So far I have…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
2
votes
1 answer

How to call specific action name using Jaydata web api provider?

I have multiple 'HttpGet' actions in my Web Api Controller, I'd like to explicitly tell Jaydata provider to use an specific action name for it's get request, is it possible?
Mohsen Asfia
  • 235
  • 1
  • 3
  • 12
2
votes
1 answer

How do I get top max record with JSLQ?

I'm using Jaydata JSLQ and Jaydata provider for IndexedDB, what I want to do is to get "top n" records. What I've done is first get the records in descending order then take the n max records from it, It looks like there is a bug or something with…
Mohsen Asfia
  • 235
  • 1
  • 3
  • 12
2
votes
2 answers

OData Any and All with JayData or Breeze

OData supports Any and All, which helped me a lot in my previous project. Now I use JayData to avoid writing OData query strings, but haven't found results by searching for any() and all(). Is there any existing functionality or plans to implement…
2
votes
2 answers

Entity Framework + Java Script Client

I'm trying to develop an application with a following layers: Entity Framework Model Data Service (either WCF or Web API, but I prefer Web API) Java Script + HTML + CSS Client The model contains inheritance and polymorphic collections: public…
Denis
  • 1,167
  • 1
  • 10
  • 30
2
votes
1 answer

Wrong OData EntityContainer Schema Namespace

I'm using ASP.NET MVC WebApi as OData service and I want to query this OData service with Jaydata. Jaydata has a command line util (JaySvcUtil.exe) that downloads the service definition ($metadata) and creates a full featured JayData / JavaScript…
Bas
  • 678
  • 6
  • 10
2
votes
1 answer

JayData vs Upshot (crossplatform HTML5 app)

I'm just in the planning phase of developing my iPhone/iPad/Android app. Basically the app will query data from remote data sources and store it locally. As data management will be the key feature of this app, so the UI isn't an important factory in…
user1252287
2
votes
3 answers

How to integrate JayData with Knockout

I'm evaluating Knockout to use with JayData to create a standalone web application. Following this tutorial (http://jaydata.org/tutorials/creating-a-stand-alone-web-application) it seems that I will be able to store my data on iPhone, Android and in…
user1252287
1
vote
3 answers

Using WCF Data Service and JQuery together to support CRUD

It seems that WCF data service will create a great extensibilty in web applications. I'm testing and working with it as shown in here. I know that I can use the result of WCF data service in the other .NET based applications (Silverlight,…
Amir Pournasserian
  • 1,600
  • 5
  • 22
  • 46
1 2
3
16 17