In RMA Processing under the Details tab there is a Date\User Stamp
button that, when clicked, will add the date and user id to the
comments filed. We are trying to reproduce this button in the Searial
Number Maintenance form that when clicked will add the date and user id
to a user defined character field. So far we have not been able to
duplicate this function. Is there anyone else tried this and made it
work, or is this something that is ‘hard coded by Epicor’ that we
cannot duplicate?
In a Kinetic Form or a classic screen?
classic screen
I have something similar on Case Entry… just a button with a click event handler
private void btnTimestamp_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
// start by getting the text box object by its EpiGuid:
EpiTextBox txtDesc = (EpiTextBox)csm.GetNativeControlReference("3a6e09d8-65a5-4b3e-9687-d729b1984574");
DateTime dt = DateTime.Now;
String timestamp = dt.ToString("MM/dd/yyyy h:mm tt");
// get the session object so we can get the current user:
Ice.Core.Session sesh = (Ice.Core.Session)HelpDeskForm.Session;
String uname = sesh.UserName;
String ts_fmt = "\r\n[{0} {1}]"; // format string
// append the timestamp at the end of the current text:
txtDesc.AppendText(String.Format(ts_fmt, uname, timestamp));
}
2 Likes