jaydata

Developing a HTML5 offline storage solution for iOS/Android in 2011

半城伤御伤魂 提交于 2019-12-31 07:53:24
问题 The problem: I need a device agnostic (e.g. HTML5) solution for storing and querying 250,000+ rows of data offline on a phone or tablet type device (e.g. iOS/Android). The idea being I have people working in remote areas without any cellular data connection and they need to run queries on this data and edit it while offline. Partly it will be geo-location based so if there are assets in the area they are in (uses GPS) then it will show those assets and let them be edited. When they return to

Jaydata indexedDb database creation issues

人走茶凉 提交于 2019-12-25 18:34:54
问题 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", { People: {type: $data.EntitySet, elementType: Person} }); var DB1=new PersonDatabase({ provider: 'webSql', databaseName:'DB1', }); Which works perfectly. But when I simply switch the database type to indexxedDb, it doesn't do anything. var x=$data.Entity

Asp.net MVC with Jaydata

﹥>﹥吖頭↗ 提交于 2019-12-25 04:18:39
问题 How does asp.net mvc fit with Jaydata? Being that Jaydata is a javascript based query language than asp.net mvc and jaydata are not used together? i.e. with controllers and so on? Thanks 回答1: ASP.NET MVC 4 with the webAPI can mimic the data output like OData http://jaydata.org/tutorials/how-to-build-a-simple-odata-based-ajax-application with webapi you have far more control over how the data is output . The problem is that some of the advanced querying has been put on hold while dev is

JayData oData request with custom headers - ROUND 2

依然范特西╮ 提交于 2019-12-24 03:48:12
问题 Few month back I was working on some Odata WCF project and I had some problems with parsing custom headers for token auth (apiKey). At that time, being quite a noob (still am!), I posted this SO question: JayData oData request with custom headers Today I am working on a new project with Jaydata Odata server and client library and this: application.context.prepareRequest = function (r) { r[0].headers['apikey'] = '123456'; }; was working fine till I had to do a MERGE request. I found out that

How do I get the Last Insert Id from a JayData transaction?

99封情书 提交于 2019-12-23 02:58:06
问题 Using JayData to insert a new object (record) into a Sqlite database, how do I query for the last insert id? I can do it like this but it seems inelegant: DB.Members.orderByDescending('member.Id').take(1).toArray(function(member){ alert(member.Name); }); 回答1: If you have defined the Member class with auto-incremented Id, there is no additional query you have to write, because the Id property is filled automatically after the saveChanges() . To define a auto-incremented Id to your class, check

Jaysvcutil generates no classes

橙三吉。 提交于 2019-12-23 02:16:14
问题 I run: JaySvcUtil.exe --metadataUri http://localhost:1578/Service.svc/$metadata --out Model.js -- namespace Model --v V2 the output is: Requesting: http://localhost:1578/Service.svc/$metadata... done. OData version: V2 And the result file: (function(global, $data, undefined) { })(window, $data); 回答1: There are several edm-namespaces for various OData versions. I'd first try to avoid the --v switch and let JaySvcUtil.exe trying to determine the correct one. If that doesn't work check the

How to consume OData service with Html/Javascript?

坚强是说给别人听的谎言 提交于 2019-12-18 10:41:26
问题 Our project currently uses Silverlight to consume an Odata service. This has made life pretty simple since we can just reference the OData service thus giving us generated service reference/entities. However there is some discussion on whether we should move to Html (html5). I'd like to know what to expect if we make this change. We'd be leveraging a framework like jQuery of course. My main concern is how to consume the same OData service via JavaScript/jQuery. How are we suppose to

Using JayData to filter Header Detail Table - Inner Join SQL, oData

北慕城南 提交于 2019-12-13 19:20:22
问题 Hello Am kinda new and using JayData and oData so please forgive my ignorance. This is my object structure : $data.Entity.extend('PlannerModel.vMasterPlanner', { 'Sequence_Number': { key:true,type:'Edm.Int32',nullable:false,required:true }, 'Scenario_Name': { type:'Edm.String',nullable:true,maxLength:250 }, 'Activity_ID': { type:'Edm.String',nullable:false,required:true,maxLength:250 }, 'Activity_Description': { type:'Edm.String',nullable:true,maxLength:500 }, 'Object_ID': { type:'Edm.String'

Wrapper to support both webSql and indexedDB?

心已入冬 提交于 2019-12-13 08:54:00
问题 My application should support offline mode on the following browsers: IE Chrome Firefox Safari (supports WebSQL only) and also application using KendoUI for UI. I have looked at JayData which looks good fit for my requirement but I heard JayData wouldn't support some good features like Transactions and so. please share your feedback on Jaydata. also suggest best wrapper to support both webSql and indexedDB? 回答1: JayData Pro does support transactions, it's free for non-commercial use and

Problems with jaydata basic authentication

允我心安 提交于 2019-12-13 05:30:38
问题 Jaydata & Javascript noobie. I'm having problems with jaydata and basic authentication, can't seem to get it to work. I specify user and password but the headers never contains an auth line. Jaydata version is 1.3.6 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" src="/scripts/jquery-1.11.0.js"></script> <script type="text/javascript" src="/scripts/datajs-1.0.3.js"></script> <script type="text/javascript" src="/scripts/jaydata