ria

RIA Services, how do I organize the services?

I am working on a project that is going to be using RIA services. The visual studio solution file has 2 projects, one for the UI and the other for the domain logic. The initial approach was to have multiple domain service classes inside of the domain logic project (to keep it organized). After receiving a certain compile error I came acr...

Add New Row to a DataGrid in Silverlight WCF RIA Services...

Some guidance with Silverlight WCF RIA Services... DataGrid and detail view on the same page Control layout DataGrid Detail View [Add New Row (button)] If I wanted to add a new row from a button then pick that new row in the datagrid how would I do that? I have tried: DetailViewTest.Web.Services.Mode1DomainContext ctx = (Mode1DomainCon...

WCF RIA DomainService: POST to JSON Endpoint Always Shows NULL.

I've got a DomainService that I've created from an entity framework that's being exposed via a JSON endpoint. I can successfully do GET operations but whenever I try to POST to them using JSON the objects are always null. The code below is used to create a user record in my database: [Invoke] public void CreateUser(User NewUser) ...

Upload Photos using Silverlight - Ria Services

Hello friends , i'm trying to find a good exemple on uploading and downloading images using solely Silverlgith + Ria Services, i tried to find some but i failed, please any help would be appreciated. thank you all in advance ...

WCF RIA, Silverlight 4

I am working on a Silverlight 4 project. I am using WCF RIA on the server and expose the model using a DomainService. I have 2 tables, let's say Table1 and Table2 linked with Foreign key say FID. Therefore, i can Load data from both table 1 and table 2 in single data grid. But my question is while editing datagrid if i need to change ...

SIlverlight 4, FilterDescriptor and GUID as FilterOperator

Hey guys, as seen in this post, GUIDs are not supported by the FilterDescriptorts FilterOperator. Has anyone encountered this problem? Is there a workaround? Because, well it pretty much sucks (no filtering by foreign keys and so on... which is quite common). ...

How to insert an associated entity in WCF RIA?

I've a class like this class MainClass { AssociatedClass b; } It's in a Silverlight RIA solution and the DomainService is LinqToEntitiesDomainService. I've an instance of AssociatedClass called AC and its already in the DB. Now say I want to create an instance of MainClass on client like this MainClass MC = new MainClass(); domain...

Why are virtual machine based RIA solutions so quickly rejected by proponents of legacy AJAX/DHTML patchwork solutions?

RIA adoption rates in the corporate intranet world seem higher than that of the Internet because the cost-effectiveness and efficiency is being recognized there. (A growing number of job postings asking for Flex experience in my IT-heavy region demonstrates this.) Why not also on the Internet? Reasons you get from people who favor hacke...

Does ria services have something like sqlclient SqlCommand for executing T-SQL?

How would ria services do this kind of thing? using (SqlConnection connection = new SqlConnection(connectionString)) { string TSQL="update products set price=price*1.03 where category='computer books'"; SqlCommand command = new SqlCommand(TSQL, connection); command.Connection.Open(); command.ExecuteNonQuery(); } Thank...

Anybody found a sample that uses windows authentication with working rolemanager in SL4 with RIA?

All the sample I come across are for forms authentication. I did manage to authenticate using windows, but the list of roles returned in the authenticated user is always empty. In SL3 and previous version of RIA, user roles were populated with active directory security groups (worked for me). Now in SL4 it no more works. ...

RIA Services and the custom type of the property

Hi, I have an entity class Customer which as the property Address that is an object of the Address class and that has few properties. It looks as follows: public partial class Customer { public virtual int ID { get; set; } public virtual string Symbol { get; set; } public virtual string Name { get; set; } public virt...

Ria services with silverlight has a Nhibernate Linq error with query resultlimit when paging

Hi I am having trouble with using NHibernate's Linq querying functionality when trying to page data in a silverlight application. I have a DomainService with a method like: [Query(ResultLimit = 50)] public IQueryable<Category> GetCategories() { return _Session.Linq<Category>(); } In the silverlight app, I am trying to page fo...

Insert Entity into EntityCollection w/ RIA

Hey there, I've got a one-to-many relationship set up. (Ex. A Person with many Phone Numbers). In my get query i have this.ObjectContext.Person.Include("PhoneNumbers") and the in generated MetaData including public EntityCollection<PhoneNumbers> PhoneNumbers{ get; set; } I have also set up a DTO with this and other properties i need. [...

Passing DTO's from a seperate Project to UI Layer WCF RIA services

Hi, I have a solution that I have designed with 5 layers. They are: UI/Presentation Layer Service Layer Business Logic Layer Data Access Layer DTO/Common Layer (IQUTECHDTO) I want to pass the DTO to the UI. Below is the service layer that exposes a method GetVendors which I want to return the VendorDTO. This object will populate a...

Silverlight can't talk to RIA service

I've followed the tutorial here: http://www.silverlight.net/learn/tutorials/sqldatagrid-cs/ ANSWER: When I ran this thing in the debugger, it was starting it up on port 16048. Meanwhile, ServiceReferences.ClientConfig had the endpoint address using port 15459. No clue why it did that, but once I changed it so it was accessing the serv...

RIA Service doesn't pass child entity collections to client side

Hi all, I have a self defined entity in RIA service called EntityA. It contains a EntityCollection of EntityB. I use three attributes on it. [Include] [Composition] [Association("EntityA_EntityBs", "ID", "ID")] public EntityCollection EntityBs { get; set; } Looks like the generated file (...g.cs) get all proper...

Is the OpenLaszlo DHTML runtime production ready?

As a long time time Flex developer I've thought about building my next application - which should run on the iPad as well - with OpenLaszlo. OpenLaszlo offer a Flash and DHTML runtime, but besides the demos on the website I don't see any real world application built with OpenLaszlo: http://openlaszlo.org/showcase Has anyone built a larg...

Which technology for business web application?

Hello, I am pondering on building a CRM for consulting business and am looking for best technology to build on. It will be web based with maybe a plugin that integrates with Outlook. What I don't want is to spend a lot of time doing HTML-fu and CSS-fu just to get basic grids, data entries and so on up. I don't mind picking up a new lang...

wicket vs Vaadin

Hi, Am torn between wicket and vaadin. i am starting a micro-isv and need to make a choice of web framework. I have narrowed down my choices to wicket and vaadin. I have used both frameworks and i love them both. however i need to make a choice. If i choose vaadin: I wont have to worry much about the look and feel.It comes with nice ...

Web browsers interacting with desktop?

What languages/techniques are used for letting the web browser interact with the desktop, e.g. dragging files to the web browser, dragging files from web browser to desktop, and maybe more features that I'm not aware of. I think flash and silverlight allows you to do that but I'm not sure. Does javascript do this? ...