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.
243
questions
0
votes
1
answer
190
views
How to change the metadata EntityContainer from "Default" in JayStack odata-v4-server
I'd like to set my own EntityContainer name other than the default 'Default' viewable in the XML $metadata schema.
I'm aware we can define our own Schema's using the odata-v4-metadata package, but ...
0
votes
1
answer
1k
views
ODATA javascript client libraries (what is their value over simple Fetch or AJAX)?
Currently we are using client-side javascript fetch to connect to our ODATA V4 ERP server:
const BaseURL = 'https://pwsepicorapp.com/ERP10.2/api/v1/Erp.BO.JobEntrySvc/'
const fetchJobNum = (async () ...
1
vote
0
answers
48
views
Error while trying to retrieve nested childs using Jaydata library
I do have my Jaydata model like
$data.Entity.extend('Razoom.Model.Product', {
'ProductID': { 'key': true, 'type': 'Edm.String', 'nullable': false, 'required': true, 'maxLength': 36 },
'...
0
votes
1
answer
90
views
Using JayData mapping with inverseproperty for one-to-many relationships
Trying to use the JayData mapping option (per their tutorial):
<script>
northwind.Products
.map(function (product) {
return {
ProductID: product....
2
votes
1
answer
109
views
JayData : how to migrate code from v1.3 to v1.5
I have some code which worked in JayData 1.3.
I need to upgrade JayData to 1.5 due to the compatibility issues the 1.3 version has with polymer.
The upgrade instructions say you can use the "...
0
votes
1
answer
112
views
JayData V1.5.6 oData v3
I building a React-Native App and want to use JayData to consume oData v3. But the newest Version which I can only use because I can use it with React-Native doesnt support v3 anymore... Is there a ...
0
votes
1
answer
790
views
React Native JayData XML DOM parser not supported
Im new to javascript and react-native and im trying to build a client which consume oData. By trying of executing jayDatas function initService I got the following error message:
{ message: 'XML DOM ...
0
votes
1
answer
194
views
Jaydata - Typescript
I use jaysvcutil to compile OData $metadata and create JayDataContext.js and it's really awesome but I use Typescript and I don't wanna use import/export syntax in typescript and other third party ...
0
votes
1
answer
166
views
Jaydata saveChanges() counts tracked / changed entities, but doesn't send a batch request (with OData v4 Provider and Web Api)
by working with jaydata i am adding entities to a tree structure with deep nesting of entity-objects.
I attach the upper entity to the context and edit/add/remove related child entities. At the end i ...
0
votes
1
answer
318
views
jaysvcutil failing with TypeError: Cannot read property 'schemas' of undefined
I am trying to generate the model from an existing OData service through jaysvcutil and am getting:
[...]\node_modules\jaydata-odatajs\lib\odata\odatautils.js:385
throw err;
^
...
0
votes
1
answer
80
views
Easy Jaydata example fails
I am following this tutorial:
http://jaydata.org/tutorials/creating-a-stand-alone-web-application
So after including this:
<script src="jquery-1.12.4.min.js"></script>
<script src="...
2
votes
1
answer
251
views
Jaydata - support for polymorphic collections in OData v4
Does JayData 1.5.1 support polymorphic collections that can contain elements with an inheritance hierarchy?
I have an OData v4 service that contains a polymorphic collection. The service is ...
0
votes
2
answers
300
views
jaydata 1.5 with odata 4 and angularjs - errors when saving / updating data
I am using jaydata 1.5.1 with odata 4 and ASP.Net WebAPI OData 4. Unfortunately almost all of the examples on the jaydata website are for older versions of jaydata itself or odata protocols < 4.0. ...
0
votes
1
answer
98
views
basic jaydata initialization
i have a basic problem with jaydata. My Code:
jQuery( document ).ready(function() {
$data.Entity.extend("Todo", {
Id: { type: "int", key: true, computed: true },
Task: { type: String, ...
0
votes
2
answers
28
views
websqlprovider.js not found in jaydata / jaydata buck?
i am using jaydata in a iOS uiwebview. I try to generate a websql databse because indexddb is not supported in uiwebview. The script crashes with:
Failed to load resource: The requested URL was not ...
0
votes
2
answers
74
views
onsenui and jaydata doesn't coexist
when using this order :
<script src="lib/angular/angular.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
<script src="http://include.jaydata.org/datajs-1.0.3....
0
votes
1
answer
49
views
JayData- Retrieval of Complex Data From Database
Saving the records in jaydata- web sql database is successful. How do we retrieve the record(Todo) from the database including Location.
$data.Entity.extend("Location", {
City: { type: String },
...
1
vote
0
answers
84
views
Jaydata ServiceOperation and Action method POST ignored
I work on the Jaydata release 1.3.6 (with OData V3) and i have a problem with Service Operations and Actions, they are all submitted wia the GET method instead of POST...
I have to change GET to POST ...
0
votes
1
answer
72
views
jayData complex filter evaluation
I am new to jayData and am trying to filter on an entity set. The filter needs to perform an complex evaluation beyond what I saw in the samples.
Here is a working sample of what I am trying to ...
0
votes
1
answer
915
views
odata query works again ApiController but does not work again ODataController
I try use System.Web.OData.ODataController in WebAPI 2.
WebConfig.cs
ODataModelBuilder builder = new ODataConventionModelBuilder();
builder.EntitySet<User>("User");
...
0
votes
1
answer
160
views
jaydata include & order
I am calling a table using JayData, and including a few other tables, which if you are not familiar with JayData, is basically just a join.
My code looks like this:
db.Table1.include("Table2")....
0
votes
1
answer
105
views
Jaydata as KendoDataSource doesn't automatically refresh on new record add
I'm using jaydata to manage a client only data store. The data is received via a SignalR Broadcast. The received data is buffered in memory. Once a second the memory buffer is flushed to the ...
0
votes
0
answers
419
views
Offline MVC5 and EF6 stock management application sync when online from multiple user
The Requirements
A secure billing Application that works offline on multiple desktop purpose, sync data when connected to the online server
After login to the server, user can track on remaining stock ...
2
votes
1
answer
953
views
OData service using NodeJS and JayData
I am trying to follow this example:
http://jaydata.org/blog/install-your-own-odata-server-with-nodejs-and-mongodb
but it seems to be out of date, so as written in the example's comment i have update ...
0
votes
1
answer
53
views
How to get keys of $data.Entity?
I wanted to get the keys of an $data.Entity but I haven't found the solution on how to do it. I am not referring to the JSON keys but the Entity primary keys.
$data.Entity.extend("Kissa", {
...
0
votes
2
answers
568
views
angularjs fails to load jaydata module
aI'm creating an AngularJS app. I have to use Jaydata to consume odata3 web service. I'm using a theme called Metronics.
The error I see in the console is:
http://errors.angularjs.org/1.3.15/$...
0
votes
0
answers
723
views
The statement callback raised an exception or statement error callback did not return false
I'm getting this error:
SQLError
{
code: 0,
message: "the statement callback raised an exception or statement error callback did not return false"` }
When running a Cordova program (...
1
vote
1
answer
281
views
JayData provider failing to load for sqLite and indexedDb
I'm trying to use JayData using the sqLite provider via
myDB = new MyDatabase({ provider: 'sqLite' , databaseName: 'MyDB', version: 1 });
But when It runs this line it echos to console the following ...
0
votes
1
answer
84
views
JayData Data model already created - add an OData action afterwards
I have an OData Web Api service where I create the controllers with a T4 template from the EF datamodel.
While doing that, I also create the Jaydata datamodel with T4.
But now, I have a partial class ...
1
vote
1
answer
142
views
Jaydata, Web Api and optimistic concurrency
I have successfully implented the optimistic concurrency sample from the JayData site http://jaydata.org/blog/optimistic-concurrency-support-in-jaydata-1.2
with a WCF DataService in the back, just ...
0
votes
1
answer
235
views
Get entity by id jaydata
I created Task table in WebSQL database with jaydata.
$data.Entity.extend("Task", {
Id: {
type: "int",
key: true,
computed: true
},
Task: ...
1
vote
1
answer
261
views
How do I get the save results from a JayData saveChanges() call?
In JayData, how do I find out how my saveChanges() call went? In Breeze, the save command returns a saveResults object. Is there anything equivalent in JayData?
0
votes
1
answer
68
views
Can jaydata work with existing table or database?
If I have table in WebSQL database with some data can jaydata work with it?
For example, I have such table:
var shortName = 'Del';
var version = '1.0';
var displayName = 'Del';
var maxSize = 65536;
...
1
vote
0
answers
60
views
RequireJS - Return after onready
I have a RequireJS module and I want to only return an object after it's onReady() event has been called.
define([
'kendovendor',
'TodoDB',
'jaydatakendo'
], function (kendo,tododb,jdvend) {
...
2
votes
3
answers
2k
views
Ignore typescript definition error
I have a 3rd party typescript definition file (JayData):
declare module MyEntities
{
export class Container extends $data.EntityContext
{
public onReady(): $data.IPromise<any>;
...
0
votes
1
answer
316
views
Jaydata webapi Offline Sync
I am analyzing Jaydata with Web API and online offline sync for phonegap applicaon
Controller
public TodoItem[] Get()
{
return _db.TodoItems.ToArray();
}
...
0
votes
1
answer
129
views
How to use jaydata with Nodejs and krakenJS?
From a tutorial, I get the code below:
https://www.youtube.com/watch?v=5Vav84nA_Sg&list=PL1LlnouBcIIDUwyUq9kzngcFDcfhvP0iw&index=26
I am using krakenJS, NodeJS, Jaydata, MongoDb. When I run ...
0
votes
1
answer
90
views
Jaydata cancel pending changes
Trying to cancel Entity changes it some situation.
Breeze for example has a cancelChanges() function on the EntityContext.
What would it be in JayData ?
I tried at the entity level with ...
1
vote
0
answers
704
views
oData v4.0 - Enumerations Support
I'm looking into replacing breeze with jaydata on my project, but i'm struggling with enumerations. I'm using the latest updates from nuget together with oData v4.0. I've generated my context with ...
1
vote
1
answer
128
views
Error w/ context initialized from JaySvcUtil-generated model
Upon closer examination the file generated together with the .js file built by JaySvcUtil -- in my case called BO_Data.d.ts cannot resolve the two references to $data.IPromise. This started happening ...
0
votes
0
answers
96
views
jaydata replace local sqlite data with fresh server data
With my current project i am using node webkit to make a desktop app. the app must be able to work offline after it has retrieved server data (odata).
At this time, I got a solution kind of working, ...
0
votes
1
answer
124
views
JayData - Read response from HTTP Patch
I am trying to apply some changes to my client side JavaSript objects from an ODataController based service after making a PATCH call using JayData. How do I view the HTTP response (200) after making ...
1
vote
1
answer
1k
views
ASP.NET Web API OData batch returning HTTP 404
I'm getting started with ASP.NET Web API v2 and OData (v3).
I've got a client made with JayData v 1.3.6
Client Context
onlinedb = new $todo.Types.ToDoContext({
name: 'oData',
...
10
votes
1
answer
538
views
First item to insert into the mobile database isn't added
I'm using JayData in a Telerik Platform mobile application. The good people at JayData worked up this example of what I was looking to do:
http://jsfiddle.net/JayData/zLV7L/
var ...
0
votes
1
answer
29
views
Jaysvcutil generates no classes 2
Hi I'm trying to learn JayData but ran quickly into a problem.
I have exactly this problem. My Metadata looks like this:
<edmx:Edmx Version="1.0"
xmlns:edmx="http://schemas.microsoft.com/ado/...
1
vote
1
answer
299
views
jaydata odata-server newsreader sample throws has no method 'basicAuth' exception
I'm not getting odata-server working on my machine (Windows 8.1, nodejs 0.10.30, mongo 2.4.8). Also tried clean Ubuntu install, same problem. Repro scenario:
create directory
npm install odata-server
...
2
votes
1
answer
115
views
Jaydata with WebSql, how to manage version upgrades
I am currently using Jaydata on a PhoneGap application I am developing. Everything is working great so far. But I couldn't find a single update on how to manage upgrades to the database when I release ...
1
vote
1
answer
289
views
Issue on Jaydata Node Express CRUD server side ODATA
I need to set up a OData server with Node. I managed to get Jaydata up and running with Express, defined a model, which gets loaded properly. I can display a the entries properly in a SAPUI5 table.
...
0
votes
0
answers
615
views
How to proper setup JayData + Typescript + Local Database?
I am starting to develop a mobile web application in Typescript and decided to use JayData. Looking online on JayData's website I only found details on how to use typescript with OData.
After much ...
0
votes
1
answer
536
views
Iterating over a kendo datasource returned from JayData
I'm trying to iterate over data returned by JayData into a kendo datasource object.
I have code similar to this
var clients = database.Clients.asKendoDataSource();
var clientData = clients.data();
...