Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Click counter on BizForm View modes: 
User avatar
Member
Member
darrenhdg-gmail - 7/13/2009 9:22:43 AM
   
Click counter on BizForm
I need to display how many times a bizform has been submitted. Like for instance if I do one for a competition I would like to display something like "So far xx people have entered this competition".

Could someone point me in the right direction? Thanks in advance for any help.

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 7/13/2009 4:24:32 PM
   
RE:Click counter on BizForm
Hi,

You can modify the BizForm web part (~\CMSWebParts\BizForms\bizform.ascx) according your needs. So, you can add some kind of label control to it and in code behind of this web part you can pull the BizForm data (records) from database using BizForm API:

http://devnet.kentico.com/docs/devguide/bizforms_api.htm
There is “Updating a record” section where you can easily see how to get DataSet object of all BizForm data. Then you can simply count DataSet object records and display resulting number in some label control.

Best Regards,
Miroslav Remias