crud

ASP.NET MVC2: Can I return the same PartialView from more than one Action?

Hello, I am using PartialView object for all the CRUD operations in my project. I would like to return from more than one action (Create/Read/Edit) always the same PartialView that I have previously binded to the correct model object. How can I achieve this? Thanks ...

Can you create applications in Excel?

My friend said he was going to create an application inside of Excel. I told him that maybe he meant macros but he seemed convinced he could create a typical CRUD application INSIDE of Excel. Is this true? ...

ExtJS.grid.CRUD

I'm studying ExtJS. I'm trying to make a table with CRUD. This is an example of my code. Ext.onReady(function(){ var writer = new Ext.data.JsonWriter({ encode: true, writeAllFields: false }); var proxy = new Ext.data.HttpProxy({ api: { read : 'read', create : '...

Is there any Java Web Application that dynamically allows to publish the contents of a .properties File and let me modify it?

Hi, As part of all the development of some use cases, I've used a properties file approach to handle almost all the configuration parameters in the project. Even when this approach is a security safe approach, I need to be able to change this parameters on the application, so I need an admin web module to be able to change at runtime a...

How do I update a deserialized entity using NHibernate?

Let's say I have an entity like so: public class Product { public virtual int Id { get; set; } public virtual int Name { get; set; } } A client wants to update the name of a particular product, so he sends this JSON back to an ASP.NET server: { "Id": 1, "Name": "Updated Product Name" } I then run this code to try an...

Implementing a CRUD using an Interface

Hi Guys, What is the best approach to implement a CRUD on the BL using interface that will be used to abstract DAL operations? I need your opinion guys.. Here's my draft.. Data Entities that are mapped in the database table public class Student { public string StudentId { get; set; } public string StudentName { get; set; } ...

Entity Framework 4 POCO CRUD Repository - How to perform Smart INSERT/UPDATE?

Hi Guys, This could be a simple solution, but.... If i have a Entity Framework 4 Repository which exposes the following interface: void InsertOrUpdate(Foo foo); And my EDM is done with custom POCO's (no code generation), how do i perform UPDATE's to POCO's? I can INSERT a new object by doing this: var newFoo = new Foo { ... }; rep...

Checking an attribute is true before executing a CRUD action

Before any of my article controller crud actions can run (excluding index), i want to make sure that the article's active field is true. I thought about doing this in a before_filter, but at that point @article has not been set, any ideas please? Thanks ...

Using Django-admin and a custom user-specific admin concurrently

I'm creating a Django powered website that will have numerous applications (Blog, Shop, Portfolio, etc.) that will be edited by 5 or so people, and I have so-far been designing everything with the Django admin in mind. I have come to realise that this is a very bad way of thinking -as really- the Django admin should really only be for ...

CRUD-style data driven distributed .NET application architecture questions

Context: Building a smart client application on the .NET platform where you have a complex database model with a high number of columns involved. The natural application style is a typical data driven CRUD. There’s also a fair bit of server side logic in some cases, and somewhat complex validations. You have full control of client and se...

S#arp Architecture and CRUD Scaffolding

I'm pretty sure I am a bit confused here (I'm even confused about being confused). I've already created my database in SQL Server 2008. I'm now trying out S#arp Architecture for the first time and I'm was looking into using CRUD scaffolding. From the instructions it seems like I basically have to RECREATE the entire database within the...

Need a CRUD tool to create admin pages for a Tomcat app

For a JSP/Servlet based app (not using any other fancy Java framework) running on Tomcat and accessing data on SQL Server 2008, what the easiest way to create simple admin pages for the database tables with CRUD functionality? ...

Taking advantage of Doctrine relations in frontend applications in Symfony

Let's consider the following simple schema (in Doctrine, but Propel users are welcome too): User: columns: name: string Article: columns: user_id: integer content: string relations: User: local: user_id foreign: id Now, if you create a route for Article model and generate a module via doctrine:generat...

Easy way to link UITableViewCell to Object property in CRUD using Core Data

Hi, First, I have different forms that i generate automatically (UITableView). My forms consits of textfields, pickers, and switches. I generate them by using a self wrote plist file with a logic in it. Second, I have made up the objects to fill up via my datamodel and they work fine. Now, It' time to look for "the best practice" to f...

Single DAO & generic CRUD methods (JPA/Hibernate + Spring)

Following my previous question, DAO and Service layers (JPA/Hibernate + Spring), I decided to use just a single DAO for my data layer (at least at the beginning) in an application using JPA/Hibernate, Spring and Wicket. The use of generic CRUD methods was proposed, but I'm not very sure how to implement this using JPA. Could you please g...

Wicket: ListView not updated when using multiple browser windows in simple CRUD

Ok, here is my controller using Wicket 1.5M2: public class Users extends WebPage { private static final List<User> users = Collections.synchronizedList(new ArrayList<User>()); public Users() { final UserForm userForm = new UserForm("userForm"); add(userForm); add(new ListView<User>("users", users) { @Override ...

Entity Framework 4 - AddObject vs Attach

Hi All, I have been working with Entity Framework 4 recently, and am slightly confused as to when to use ObjectSet.Attach, and ObjectSet.AddObject. From my understanding: Use "Attach" when an Entity already exists in the system Use "AddObject" when creating a brand new Entity So, if i'm creating a new Person, i do this. var ctx = ...

CodeIgniter + Doctrine: CRUD in Controller?

Hi all, I am a newbie to MVC, CodeIgniter and Doctrine, so maybe my question is not that relevant. Pardon me if thats the case. I've been reading the CodeIgniter + Doctrine tutorials on PHPandStuff.com. I really like whatever I have seen of Doctrine and wish to use it for my project. However, since all database related operations shoul...

Can I get Added and Removed Rows from JQGrid?

Hi, I'm using a JQGrid with cellsubmit: 'clientArray' and executing addRowData and delRowData from custom buttons in a column. I want to send modified data to server through a 'Send Button' and I know that I can getChangedCells to get edited cells but I don't know how to get added and removed rows. How can I achieve this? Thanks :-) ...

How To Properly Unit-Test CRUD Operations on a Repository?

Hi Guys, Realize this may sound like a broad question - so let me clarify. I have a Repository exposed via an interface, with two concrete implementations - a MockRepository and a EntityFrameworkRepository. Now, i have a Unit-Test project for which all tests can be run against either repository, via flicking over a line in [TestInitial...