ASPX templates
Version 4.x > ASPX templates > Copying Biz forms View modes: 
User avatar
Member
Member
mrogers-brainloaf - 11/2/2009 11:52:04 AM
   
Copying Biz forms
I am trying to create a copy biz form function. I followed the notes in this article:

http://devnet.kentico.com/Knowledge-Base/Web-parts---Controls/How-to-clone-BizForm%E2%80%99s-data-programmatically.aspx

I copied the record in CMS_FORM and CMS_CLASS and the data storage table. But it appears there are other things that need to be copied. I couldn't find an API call that will copy a biz form. I have a client using biz forms for reporting so they will be creating dozens of copies from a simple form and adding to it on a weekly basis.

Here is an error I am getting about missing queries. What else do I need to create to make this work?

"[GeneralConnection.RunQuery]: Query 'BizForm.ReportCopy.selectall' not found."

User avatar
Member
Member
mrogers-brainloaf - 11/2/2009 2:18:06 PM
   
RE:Copying Biz forms
OK. I got a bit further on my own. You want to make sure you copy the needed records in CMS_Query that are linked to the original ClassID of the BizForm you are copying.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/3/2009 6:55:45 AM
   
RE:Copying Biz forms
Hello,

thank you for info. We will improve our Knowledge base article as soon as posiible. Did you meet any other problems?

Best regards,
Helena Grulichova

User avatar
Member
Member
mrogers-brainloaf - 11/12/2009 11:23:02 AM
   
RE:Copying Biz forms
Yes, in addition to copying the cms_query records, you need to properly rename the tables referenced in the contents of those CMS_QUery records to match the name of the new table you are creating.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/26/2009 1:48:37 AM
   
RE:Copying Biz forms
Hello,

thank you for your reply and information, we will improve it.

Best regards,
Helena Grulichova