Kentico BIZForm save in Custom Table

David Bitnar asked on May 23, 2014 06:57

How do I get the Kentico Bizform save data in Custom Table Data table? I have seen some solution with additional modules but I would like to hear whether there might be a more straightforward way in Kentico 8. Thanks.

Recent Answers

jack Ryder answered on May 23, 2014 07:26

Regrettably, inline controls and bizforms are not supported in custom layout of custom tables, so it's not possible to insert them there.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on May 23, 2014 09:23

You could attach an event handler to the form itself and write directly into the custom table from there. Bizforms have onAfterSave event handlers that can be utilized for handling the data after its saved. The only drawback is that the data would be stored in multiple places(form and customtable). Is this what you are looking for?

2 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 27, 2014 07:12

On the lines of what Joshua mentioned, I'd suggest creating a global event for the biz form items. When the form of type "bizformitem.yourclassname" is inserted then perform some actions via api to add/update custom table data. Modifying the base biz form control isn't recommended. You could create/clone the existing biz form control although if you have more than one control/form, it could be a maintenance nightmare.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.