Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 16, 2012 07:36 PM by micmac
Mar 10, 2010 06:37 AM|LINK
Can anyone tell me that how can we create clone of an object in dynamic data site. Here is the brief of the requirement:
I am working on project where we raise invoices, now invoices are of two types: 1) One time. 2) Recurring (Repeating). One time invoice generation is simple, but in case of recurring invoices I am confused about how to do it. I think of doing it in 2 ways.
1) Create single invoice and in listing page have a link for clone invoice, where we open insert form having all the field values filled in from previous invoice, user makes relevant changes and save a new copy. My question is how can we do this?
2) We can give option to user, to add another invoice by clicking on link while creating invoice, which will open another copy of required details (like Amount, date, details etc), and then user can save the same in one go. We can use jquery for dynamically
creating fields. Again the question for this approach remains same that how can we do it?
Thanks in advance.
dynamic data .net c#
Mar 10, 2010 07:14 AM|LINK
This will help you - >
Mar 10, 2010 07:17 AM|LINK
Mar 10, 2010 08:11 AM|LINK
Hi Sbakshi, have a look at N41 DynamicData Extender
this is a clone utility for DD.
Mar 10, 2010 09:43 AM|LINK
I am using LINQ to SQL for this and using VS 2008 SP1. I have implemented the same in my project but the clone link in the list page is appearing without havig link on it.
Mar 10, 2010 09:45 AM|LINK
Thanks Rohit and Sandeep for prompt reply, but I want to implement it in dynamic data site, please have a look at the solution provided by Sjnaughton which is in context of dynamic data site, I have implemented IClonable object in mvc site, but how to do
it in dynamic data site.
Mar 10, 2010 10:53 AM|LINK
Hi Sbakshi, AFAIK this is the only sample of doing a clone in DD, I tend to do a custom page as when cloning there are always spcifics, i.e. clone all field but these etc.
What more do you want other than what the project offers?
Mar 11, 2010 06:45 AM|LINK
The reason why clone link is not clickable is because it is not entered in the RouteValueDictionary of Global.asax file.
We need to add the action to RouteValueDictionary in Global.asax file in order to use it in our project. That means the solution works.
Thanks Sjnaughton for solution, but it is in EntityDataModel, where as I am using Linq to Sql.
Now I will have to convert the extentions classes for Linq to SQL model.
Mar 11, 2010 08:24 AM|LINK
Do we have linq to sql version of dd extension?
Mar 11, 2010 09:55 AM|LINK
Sorry not aure what you mean [:$]