Rowley150
(Mark Rowley)
July 16, 2018, 6:49pm
1
Epicor version 9.05.701
Task: I want to default “Run the multi level pegging process” to true when processing MRP. (Field Name: RunPegging EpiBinding: ReportParam.RunPegging)
What is the code to type into part 4 (view / edit event handling code)
Where abouts in the area marked X does the code go?
Many thanks in advance.
tkoch
(Theodore Koch)
July 16, 2018, 8:53pm
2
// **************************************************
// Custom code for ReportForm
// Created: 7/16/2018 16:50:32
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.Adapters;
using Erp.UI;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
public class Script
{
// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
// Begin Wizard Added Module Level Variables **
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
// End Custom Code Disposal
}
private void ReportForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
ReportParam_Row.dataView[ReportParam_Row.Row]["RunPegging"] = true;
}
}
Rowley150
(Mark Rowley)
July 23, 2018, 9:29am
3
apologies for the delay, i’ve only just got around to testing this, when i copied and pasted the syntax in, i got these error lists…
tkoch
(Theodore Koch)
July 23, 2018, 12:32pm
4
Oh, you’re E9. Delete those lines, you don’t need them.
Rowley150
(Mark Rowley)
July 23, 2018, 12:51pm
5
works a treat!
thank you so much.
If i want to make the number of MRP processes 2 and number of schedulers 2 would the bottom part of the syntax be:
private void ReportForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
ReportParam_Row.dataView[ReportParam_Row.Row][“RunPegging”] = true;
ReportParam_Row.dataView[ReportParam_Row.Row][“NumProcesses”] = 2;
ReportParam_Row.dataView[ReportParam_Row.Row][“NumSchedulers”] = 2;
}
}
Rowley150
(Mark Rowley)
July 23, 2018, 3:03pm
7
works prefect!
Quick last question…what would the syntax be for the word Regenerative below?
i’ve tried R, Regeneration, Regenerative, 2…nothing seems to trigger that.
ReportParam_Row.dataView[ReportParam_Row.Row][“GenerateOptions”] = Regenerative ;
Thank you in advance.
tkoch
(Theodore Koch)
July 25, 2018, 9:50pm
8
Run a trace when executing the process and the value should be in there.