Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Bizform API Update View modes: 
User avatar
Member
Member
tspring-allegra - 5/9/2012 10:45:48 AM
   
Bizform API Update
Hi,

I'm trying to update a bizform record using the code in the help file: http://devnet.kentico.com/docs/devguide/index.html?api_bizforms_updating_a_record.htm

But I get an error message on the line
if (!formRecord.IsEmpty())

'CMS.FormEngine.BizFormItem' does not contain a definition for 'IsEmpty' and no extension method 'IsEmpty' accepting a first argument of type 'CMS.FormEngine.BizFormItem' could be found (are you missing a using directive or an assembly reference?)

Does anyone know why i'm getting this message?

Thanks,
Tim

User avatar
Member
Member
kentico_michal - 5/10/2012 2:11:31 AM
   
RE:Bizform API Update
Hi,

Regrettably, this is a defect in our documentation as the BizFormItem class does not provide the IsEmpty method. We will try to update it shortly. Thank you for letting us know about it. You can use the following code instead:

if (formRecord != null)

Best regards,
Michal Legen