03-30-2009 06:20 AM
Good Morning,
Now I am well versed in creating a history programmatically but is it possible to interact with the user without having to recreate the history edit form? In other words show them the hx details about to be recorded using the Sage Edit HX dialog form? I thought perhaps maybee RecordHistoryDialog or NuRecordHistoryDialog would allow me to pass in an existing HX id and then the constructor etc. would load the details from that HX.
What happens is some business logic occurs and an existing hx may be changed but wanted to show the change to the user for final approval.....
TIA
JB
04-09-2009 08:34 AM
Solved it next morning after a good nights sleep. Here is code snippet to make a new history dialog.
#region Record History Details
Act.Framework.SupplementalFiles.SupplementalFileManager SupMgr = References.ActFrk.SupplementalFileManager;
DateTime HowAboutNow = DateTime.Now;Act.Framework.Contacts.ContactList HXContactList = References.ActFrk.Contacts.GetContactAsContactList(clsGlobalProps.CurrentContact);Act.UI.History.
NuRecordHistoryDialog CallHX = new Act.UI.History.NuRecordHistoryDialog(HXContactList, References.ActApp, References.ActFrk.CurrentUser.ID, SupMgr, HowAboutNow, TimeSpan.Parse("0.00:15:00"));CallHX.ShowDialog();
#endregion
Feel free to comment. If others can make improvements I'll gladly be taught a lesson.
JB
04-09-2009 08:34 AM
Solved it next morning after a good nights sleep. Here is code snippet to make a new history dialog.
#region Record History Details
Act.Framework.SupplementalFiles.SupplementalFileManager SupMgr = References.ActFrk.SupplementalFileManager;
DateTime HowAboutNow = DateTime.Now;Act.Framework.Contacts.ContactList HXContactList = References.ActFrk.Contacts.GetContactAsContactList(clsGlobalProps.CurrentContact);Act.UI.History.
NuRecordHistoryDialog CallHX = new Act.UI.History.NuRecordHistoryDialog(HXContactList, References.ActApp, References.ActFrk.CurrentUser.ID, SupMgr, HowAboutNow, TimeSpan.Parse("0.00:15:00"));CallHX.ShowDialog();
#endregion
Feel free to comment. If others can make improvements I'll gladly be taught a lesson.
JB