Well I was able to solve this myself, using code and the newline XML file.
public void UpdateCommentHist(XPN comment, XPN hist)
{
FormSupport fs = null;
BWSharePoint BWsp = null;
SetupSupport(ref fs, ref BWsp);
XPN root = CreateNavigator();
XPN errormessage = root.SelectSingleNode(xErrorMsg, NamespaceManager);
try
{
XPN newline = DataSources["NewLine"].CreateNavigator().SelectSingleNode("/linebreaks/newLine", NamespaceManager);
// query ds
DataSources["NewLine"].QueryConnection.Execute();
if (comment.Value != "")
{
// create time stamp
string dt = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
hist.SetValue(newline.Value + dt + ": " + comment.Value + " *** " + hist.Value);
//comment.SetValue(string.Empty);
}
else
{
//hist.SetValue(string.Empty);
}
}
catch (Exception ex)
{
LogServ.LogError(ErrCat.TraceError, StrHndlr.strHandleError(ex));
fs.DeleteNil(errormessage);
errormessage.SetValue(StrHndlr.strHandleError(ex));
}
}
unfortunately this method did not fit my needs. The comment field needed to change (change event). if I entered comments then hit submit, it would not submit on first click, only on second click, i did not like this. I actually went back to using rules on my submit button to accomplish this