Hi
I want to set the default value of a EpiCombo box.
I have set a checkbox field successfully so I thought I was on the right track. I don’t get an error but nothing happens. Also, I only want to do this for one of the companies an I don’t know how to code that either.
The code is:
--------------------------------------------------------------------------------
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 **
private EpiCheckBox chkAdHoc;
private EpiCombo cboAllocTemplate;
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 AllocationProcessForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
chkAdHoc = (EpiCheckBox)csm.GetNativeControlReference("df1bcfca-5a58-4e64-afb3-705d80c0186e");
chkAdHoc.Checked = false;
cboAllocTemplate = (EpiCombo)csm.GetNativeControlReference("a6c759d5-c577-45d4-8e2f-379945bac1ba");
cboAllocTemplate.Value = "BEMNZ";
}
}