Questions tagged [upshot]

Client-side JavaScript library to work with remote data exposed over HTTP Web APIs

Built to be integrated with Knockout.js and to provide extensive cross-browser support, Upshot.js is a lightweight but powerful client-side library to work with Web APIs, providing data sources so entities can be queried, updated, deleted and created over those APIs transparently and with minimal effort.

55 questions
1
vote
1 answer

Converting the type information supplied by upshot js to that required by JSON.NET in a web api submit

I am attempting to use ASP.NET MVC 4 beta together with JSON.NET. I'm using upshot to talk to web api. However when upshiot does a submit it sends the type information in the change set as (for example…
1
vote
4 answers

MVC 4, Upshot entities cyclic references

I have a DbDataController which delivers a List of Equipment. public IQueryable GetEquipment() { var q= DbContext.EquipmentSet.OrderBy(e => e.Name); return q; } In my scaffolded view everything…
Obiwan007
  • 646
  • 1
  • 8
  • 20
1
vote
1 answer

How to get single entity with upshot

Stack: ASP MVC4 Beta Web API Knockout.js Upshot.js I have a master-detail scenario. In the master part, I'm editing a Order and on the details part i have the orders products. I can list all the products I have and that works great, but I now need…
David Lay
  • 2,956
  • 4
  • 27
  • 48
1
vote
1 answer

DevExpress MVC control bind to upshot datasource

I would like to know if its possible to use the DevExpress MVC controls with Upshot and knockout
NAze
  • 31
  • 2
1
vote
2 answers

How do I access descendants from a different branch in the same viewModel?

I am currently working on a website spa application and attempting to use knockout.js. it's on an mvc platform with and a dbdatacontroller api using upshot for data and javascript view models. I have a complex view model and am running into…
Mike
  • 1,199
  • 1
  • 15
  • 24
1
vote
0 answers

Using JavaScript calculated property in UpshotJS

I'm new to Upshot and can't find a documentation/group for Upshot so I'm posting it in here. I want to have calculated property in my model, is it supported and how can I implement that? For example: upshot.metadata({ …
Nhím Hổ Báo
  • 572
  • 5
  • 20
1
vote
2 answers

upshot validation rules

Have someone a Url or some example of how to create custom Rules for the metadata section of upshot.js For example a rule that the element did't already exist in the localDatabase observable array. Thanks
jlsfernandez
  • 160
  • 3
  • 16
1
vote
1 answer

upshot js change tracking in child entities

I have the following model defined in .NET: Public Class Request Public Property RequestId As String Public Property Description As String Public Property InfoCards As List(Of InfoCard) End Class Public Class InfoCard
Szilard Muzsi
  • 1,881
  • 2
  • 16
  • 20
1
vote
2 answers

exception during DataSource() call on UpshotContext

I'm trying to add upshot goodness to an existing MVC project. On the line @(Html.UpshotContext().DataSource(x => x.GetAllProducts())) I'm getting the exception Could not load file or assembly 'System.Web.Http.Common,…
Greg
  • 2,163
  • 1
  • 18
  • 40
1
vote
1 answer

Using Asp.net MVC 4 to Make Mobile Applications as Presented by Steve At Techdays?

I been doing asp.net mvc for a while now and recently came across this techdays tutorial . This seemed very interesting but has left me kind of confused on how do I get started doing something similar. Currently I have a web application made…
chobo2
  • 83,322
  • 195
  • 530
  • 832
1
vote
2 answers

Call Web api method with parameters through Html.UpshotContext

I am currently working on MVC4 SinglePage Application. I have a Web Api method GetChartsByCategory(int catId) So in my view cshtml page How shall I declare Html.UpshotContext in this scenario. I dont want to call GetAllCharts() and then filter on…
Pavan Josyula
  • 1,355
  • 3
  • 13
  • 25
1
vote
2 answers

What would make Entity Framework / Upshot believe my object graph "contains cycles"?

I am testing Knockout 2.1.0 and Upshot 1.0.0.2 with Entity Framework 4.3 (Code-First) and am running into the following error: {"Object graph for type 'System.Collections.Generic.HashSet`1[[KnockoutTest.Models.Person, KnockoutTest,…
Anthony Gatlin
  • 4,407
  • 5
  • 37
  • 53
1
vote
0 answers

UpShot FindById - Child element

does anybody know how to use the Upshot.findById to get a child element? Thanks for any help
user1389723
  • 713
  • 1
  • 6
  • 9
1
vote
1 answer

How to Bind multiple properties of one class to another using Entity Framework (EF) 4.1 Code First for use with Upshot.js?

I have a scenario where I need to bind two properties from one class to another class using Entity Framework 4.1 Code-First. (For reference, this model is being consumed by Upshot.js for use in a single page application using Knockout.js…
1
vote
0 answers

Upshotjs and Web API

I'm using Upshotjs and knockout in an MVC4 SPA project to create a simple blog site. I am trying to enable roles based authentication so that only registered users can post a blog. To do this I have an authorize filter on the DbDataController…
user1389723
  • 713
  • 1
  • 6
  • 9