Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Change BizForm DataRow Before Saving View modes: 
User avatar
Member
Member
wrb-seqinc - 5/5/2011 9:36:35 AM
   
Change BizForm DataRow Before Saving
I have a field in a BizForm that isn't displayed on the public site and I'd like to update the value before the form is submitted. I have tied into the OnBeforeSave event and am trying to update the field like so:

viewBiz.BasicForm.DataRow["IsSubmitted"] = "true";


This isn't working though as the field isn't updated.

Any thoughts?

Thank you,
Ryan

User avatar
Member
Member
kentico_michal - 5/10/2011 1:10:50 AM
   
RE:Change BizForm DataRow Before Saving
Hello Ryan,

It seems that you are using OnBeforeSave of BizForm.BasicForm control instead of OnBeforeSave of BizForm control.
So could you please try to modify your code?
Using OnBeforeSave of BizForm control should fix this issue.

Best regards,
Michal Legen

User avatar
Member
Member
wrb-seqinc - 5/10/2011 5:25:00 AM
   
RE:Change BizForm DataRow Before Saving
Michal - thanks for taking the time to respond to this. I'm sorry but I forgot to post an update... I got this working the other day and all is well.

Ryan