Thanks for the guidance.
For point 1) I have this working using:
protected void viewBiz_OnBeforeSave()
{
viewBiz.BasicForm.DataRow["UserId"] = CMSContext.CurrentUser.UserID;
}
For point 2) I am trying to work out the most efficient way of repopulating the form with data, if a user has already completed the form.
One approach could be to set the value of each control in code, using similar code to
Making BizForm fields inactive after submitting.
But is there an easier way? For example if
viewBiz.BasicForm.DataRow is populated with the existing data in one of the control events, will the control
automatically use these values to populate the form? If so, which event would be the best place?
Thanks again,
Steve