Attach Login Username as Default Value for the form field
Based on the multi tenancy example, I did the following and is working.
In the form I don't ask for the User (or the Quote Date), I take care of that behind doors, because I don't want the user to touch it.
private class MySaveHandler : SaveRequestHandler<MyRow> {
protected override void SetInternalFields()
{
base.SetInternalFields();
if (IsCreate)
{
Row.UserId = Authorization.UserId.TryParseID32();
Row.QuoteDate = DateTime.Today;
}
}
}