Questions tagged [datajs]

datajs is a cross-browser JavaScript library that enables data-centric web applications by leveraging modern protocols such as JSON and OData and HTML5-enabled browser features. It's designed to be small, fast and easy to use.

datajs is a new cross-browser JavaScript library that enables data-centric web applications by leveraging modern protocols such as JSON and OData and HTML5-enabled browser features. It's designed to be small, fast and easy to use.

Supported OData version(s): V1-V3

Features:

  • Wrappers for creating OData GET, POST, PUT, MERGE, DELETE, and batch requests
  • Store API provides a common abstraction over a few data storage mechanisms
    • In-memory
    • DOM Storage
    • IndexedDB Storage (experimental)
  • Cache API provides a simple way of reading large paginated results into the browser
52 questions
0
votes
0 answers

Load datajs-1.1.2.min.js into SAP UI5 Application

I need to load the JS library datajs-1.1.2.min into my SAP UI5 Application but the UI5 framework automatically load own datajs.js under the path ui/thirdparty, that is an older version . I put the datajs-1.1.2.min into my application's folder and…
Max
  • 89
  • 1
  • 8
0
votes
1 answer

How to Convert MS SharePoint $metadata XML Response into Standard Odata JSON in NodeJS?

I am working on MS SharePoint 2013 integration and in my use case I want to work on JSON data only. I am able to convert all the API XML responses like File, Folder, List, ListItem, etc into OData JSON using Node Module - datajs_vanilla, but I am…
NikhilK
  • 181
  • 2
  • 12
0
votes
2 answers

Breeze | datajs - no handler for data

I am new in breeze world, but I want use it in my application. I tried test it with simple ASP.Net Api OData service based on Northwind.sdf database. In DataService project I have a simple controller: [BreezeController] public class…
0
votes
1 answer

Breeze.js OData v4 Error

I am trying to create a simple JavaScript application using Breeze.js version 1.5.3. It is to consume an OData v4 service. The service is created with ASP.NET WebApi 2. Included scripts:
Dmitriy Melnik
  • 530
  • 2
  • 5
  • 12
0
votes
0 answers

DataJS: Storing OData.read() result in local and global variable is undefined

I'm trying to pass my OData.read result into a global and a local variable, but eventually, each of them is undefined. var foo_global; function doIt() { var foo_local; $.ajaxSetup ({ cache:false }); …
user3601578
  • 1,310
  • 1
  • 18
  • 29
0
votes
1 answer

Consuming Web API 2 OData endpoint requiring Windows Authentication with BreezeJS

Has anyone have experience getting Breeze (or DataJS for that matter) to communicate with a Web API 2 OData endpoint which requires Windows Authentication and is hosted on a different server? I have successfully configured Web API to enable CORS and…
0
votes
0 answers

Building a DART Interop over DATAJS for ODATA support

I would like to understand how to build a DART library that wraps DataJS as I would like to get ODATA support within DART. What is the best approach to building a DART to JS Interop or is there an existing DART library out there I can…
user1333524
  • 463
  • 5
  • 17
0
votes
0 answers

Breeze - Error when using the ANY operator with OData

I have an error when i'm trying to use the ANY operator with Breezejs on OData service : var query = breeze.EntityQuery.from("Orders") .where("orderLines", breeze.FilterQueryOp.Any, "quantity", breeze.FilterQueryOp.GreaterThan,…
nboukeffa
  • 127
  • 1
  • 9
0
votes
3 answers

Why am I getting this error? Error: Unable to locate a 'Type' by the name: 'User:#Default'

I am trying to adapt the OdataBreezeJSSample into my project. The metadata is getting called and populated, but my query: var people = breeze.EntityQuery .from("Users") .using(manager) …
Mizzle-Mo
  • 598
  • 2
  • 5
  • 11
0
votes
1 answer

Datajs: How to modify rel-attribute?

I'm trying to post linked entries in atom-format to Odata service. Only thing missing from my payload is that rel-attribute should be: "http://schemas.microsoft.com/ado/2007/08/dataservices/related/SOItems". Currently it's automatically generated to…
0
votes
1 answer

How to develop a JayData query based on OData provider with any-all support for list{String}

Consider the following JayData entities: var Todo = $data.Entity.extend("Todo", { Id: { type: "int", key: true, computed: true }, Task: { type: String, required: true, maxLength: 200 }, …
Yaser Moradi
  • 3,267
  • 3
  • 24
  • 50
0
votes
1 answer

Jaydata Odata Unknown expression type to handle: EntitySetEx

I get this error: "Unknown expression type to handle: EntitySetExpression" when trying to filter or order on an Odata navigation property. App.store.Person.include('Friend') .filter("it.age >= 10 && it.Friend.age >=10").toArray(); I get…
Jmorvan
  • 1,020
  • 11
  • 31
0
votes
1 answer

breeze handling of browser folder cache of json

I'm using breeze with datajs to fetch odata json results. breeze.config.initializeAdapterInstances({ dataService: "OData" }); I want to ensure the returned json results are resident only in client memory and do not get written to the client folder…
0
votes
1 answer

Datajs OData.read function not firing through PhoneGap

I'm trying to package up a mobile web application into an iOS app using PhoneGap and JQuery Mobile. The application uses Datajs to make OData requests to another site. I've set External Hosts to '*' in Cordova.plist, and the requests work fine…
0
votes
0 answers

Error in odata.request method with "PUT" option

I want to perform update operation on my odata service data. I have read many things about browser support for put and delete with ajax call.But in my code I can perform method:"DELETE" perfectly.even get and post are done nicely. Now when I am…
Shobha Singh
  • 171
  • 1
  • 10