10.2.200.40
I have an odd situation in a customization for Job Traveler. The customization clears the Print Bar Code checkbox, sets the Print Operation Instructions, Operation Dates, and Operation Standards checkboxes, and sets the Report Style to a specified value in the EpiViewNotification event. However, when the customization is run, the Print Bar Codes box cannot be set, the Operation Dates and Operation Standards checkboxes cannot be cleared, and the Report Style dropdown reverts to the set value if changed. I’ve tried setting these values on the AddRow NotifyType, but the changes aren’t displayed when the screen comes up. What can I do to get around this issue? Code is below. Any help would be greatly appreciated!
private void edvReportParam_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
{
// ** Argument Properties and Uses **
// view.dataView[args.Row]["FieldName"]
// args.Row, args.Column, args.Sender, args.NotifyType
// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
{
if ((args.Row > -1))
{
view.dataView[args.Row]["BarCodes"] = false;
view.dataView[args.Row]["OpInstructions"] = true;
view.dataView[args.Row]["OprDates"] = true;
view.dataView[args.Row]["OprStd"] = true;
view.dataView[args.Row]["ReportStyleNum"] = 1004;
}
}
}