Found a decent article on LFO’s here.
However, it is not sending the credentials I keyed in for it.
------------------------Begin Code------------------------------------------
// **************************************************
// Custom code for MESMenu
// Created: 11/21/2019 9:46:44 AM
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.Adapters;
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;
using Infragistics.Win;
public class Script
{
// ** Wizard Insert Location - Do Not Remove ‘Begin/End Wizard Added Module Level Variables’ Comments! **
// Begin Wizard Added Module Level Variables **
private EpiDataView edvEmpBasic;
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
EpiButton btnDash;
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
this.edvEmpBasic = ((EpiDataView)(this.oTrans.EpiDataViews["EmpBasic"]));
this.edvEmpBasic.EpiViewNotification += new EpiViewNotification(this.edvEmpBasic_EpiViewNotification);
btnDash = (EpiButton)csm.GetNativeControlReference("fe187107-b719-4a3d-96a8-5f8505ea65ae");
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
// End Wizard Added Custom Method Calls
this.btnDash.Click += new System.EventHandler(this.btnDash_Click);
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
this.edvEmpBasic.EpiViewNotification -= new EpiViewNotification(this.edvEmpBasic_EpiViewNotification);
this.edvEmpBasic = null;
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
// End Custom Code Disposal
this.btnDash.Click -= new System.EventHandler(this.btnDash_Click);
}
private void MESMenu_Load(object sender, EventArgs args)
{
// Add Event Handler Code
btnDash.ReadOnly = false;
}
private void btnDash_Click(object sender, System.EventArgs args)
{
string yourEMP = "cconn"; //((Session)oTrans.Session).EmployeeID;
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ValueIn = yourEMP;
ProcessCaller.LaunchForm(oTrans, "UDLBRBAQ", lfo);
//ProcessCaller.LaunchForm(this.oTrans, "UDLBRBAQ");
}
private void edvEmpBasic_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))
{
EnableDisableCustomControls(true);
}
else
{
EnableDisableCustomControls(false);
}
}
}
private void EnableDisableCustomControls(bool iFlag)
{
btnDash.Enabled = iFlag;
btnDash.Enabled = iFlag;
}
}
-----------------------------End Code-----------------------------------------
Do I need to change something on the report to get it to go?