Launching End Activity Entry


(system) #1

lfo.Ismodal = TRUE had been missed.  Now the line is in, End Activity works as it should.............. 



---In vantage@yahoogroups.com, <smyers@...> wrote:

I am now able to launch End Activity from Issue Material without any initial errors being reported. However, when the application encounters auto-search adapters in my custom code for End Activity, I get an error at the dataset declaration line below:

Dim SerialAD As New SerialNoAdapter(oTrans)

SerialAD.BOConnect()

Dim opts As New SearchOptions(SearchMode.AutoSearch)

opts.PreLoadSearchFilter = "JobNum='" & edvEndAct.dataView(edvEndAct.Row)("JobNum&quo t;) & "'"
Dim ds as DataSet = DirectCast(ProcessCaller.LaunchSearch(oTrans, "SerialNoAdapter", opts), DataSet)

The error is as follows:

"The process caller failed to invoke method InvokeSearch in
Epicor.Mfg.UI.Searches.EpiSearchEngine in C:\Program Files (x86)\Epicor Software\Epicor905\Client\Epicor.Mfg.UI.EpiClientL ib.dll"

My hunch is that I'm trying to use process caller within an active process call (the one I used to launch the form from issue material)?

Note that no errors are reported if End Activity is opened directly.

Epicor version: 9.05.702

Thanks,

Steven 



---In vantage@yahoogroups.com, <jose@...> wrote:

Here you go
public void EndActivity()
{
    if (this.LaborDtlView.HasRow)
    {
        string str = this.LaborDtlView.dataView[this.LaborDtlView.Row]["LaborHedSeq"].ToString();
        string str2 = this.LaborDtlView.dataView[this.LaborDtlView.Row]["laborDtlSeq"].ToString();
        LaunchFormOptions launchObject = new LaunchFormOptions {
            IsModal = true,
            SuppressFormSearch = true,
            ValueIn = str + "," + str2
        };
        ProcessCaller.LaunchForm(this, "Epicor.Mfg.UI.EndActivityEntry", launchObject);
}

}



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?


On Tue, Oct 1, 2013 at 9:45 AM, <smyers@...> wrote:

 
<div>


  <p>Hello,</p><p>&nbsp;</p><p>Does anyone know a method to open end activity entry in MES through another process? We&#39;re using Epicor 9.05.702.</p><p>&nbsp;</p><p>I&#39;m trying to launch the form from a custom button in Issue material Entry.&nbsp; I have the following parameters available in my code:</p>

 

LaborHedSeq

LaborDtlSeq

EmployeeNum

JobNum

PartNum

 

I have used the following definitions for launch form options:

 

Dim lfo As New LaunchFormOptions()

 

or

 

Dim lfo As New Epicor.Mfg.UI.App.EndActivity.endActivityArgs()

 

With combinations of the above list of parameters assigned to:

 

lfo.valuein

lfo.contextvalue

 

Before attempting to launch the form with:

 

Dim LoadEnd As UIReflector = ProcessCaller.LaunchCallBackForm(oTrans,"form_name", lfo)

 

In each case, the following error prompt displays:

 

Error Detail

============

Index 0 is either negative or above rows count.

 

Stack Trace

===========

at System.Data.DataView.GetRow(Int32 index)

at System.Data.DataView.get_Item(Int32 recordIndex)

at Epicor.Mfg.UI.App.EndActivityEntry.EndActForm.OnFormLoaded()

at Epicor.Mfg.UI.FrameWork.EpiBaseForm.formLoaded()

 

In the end activity form, I've added custom code to pick up the launch form options, if present.  this has been applied to load, epiviewnotification and my own private sub utilising a system timer.  No method appears to work.

 

Can anyone help please?

 

</div>



<div style="color:rgb(255, 255, 255);min-height:0px;"></div>


(system) #2

Hello,

 

Does anyone know a method to open end activity entry in MES through another process? We're using Epicor 9.05.702.

 

I'm trying to launch the form from a custom button in Issue material Entry.  I have the following parameters available in my code:

 

LaborHedSeq

LaborDtlSeq

EmployeeNum

JobNum

PartNum

 

I have used the following definitions for launch form options:

 

Dim lfo As New LaunchFormOptions()

 

or

 

Dim lfo As New Epicor.Mfg.UI.App.EndActivity.endActivityArgs()

 

With combinations of the above list of parameters assigned to:

 

lfo.valuein

lfo.contextvalue

 

Before attempting to launch the form with:

 

Dim LoadEnd As UIReflector = ProcessCaller.LaunchCallBackForm(oTrans,"form_name", lfo)

 

In each case, the following error prompt displays:

 

Error Detail

============

Index 0 is either negative or above rows count.

 

Stack Trace

===========

at System.Data.DataView.GetRow(Int32 index)

at System.Data.DataView.get_Item(Int32 recordIndex)

at Epicor.Mfg.UI.App.EndActivityEntry.EndActForm.OnFormLoaded()

at Epicor.Mfg.UI.FrameWork.EpiBaseForm.formLoaded()

 

In the end activity form, I've added custom code to pick up the launch form options, if present.  this has been applied to load, epiviewnotification and my own private sub utilising a system timer.  No method appears to work.

 

Can anyone help please?

 


(system) #3
Here you go
public EndActivity()
{
if (this.<a rel=“nofollow” title="EpiDataView Epicor.Mfg.Menu.Mes.Transaction.LaborDtlView;

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.Menu.Mes:9.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.Menu.Mes.Transaction/LaborDtlView:Epicor.Mfg.UI.FrameWork.EpiDataView”>LaborDtlView.<a rel=“nofollow” title="bool Epicor.Mfg.UI.FrameWork.EpiDataView.HasRow { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.EpiDataView/property:HasRow:Boolean”>HasRow)
{
<a rel=“nofollow” title="System.String

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.String”>string str = this.<a rel=“nofollow” title="EpiDataView Epicor.Mfg.Menu.Mes.Transaction.LaborDtlView;

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.Menu.Mes:9.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.Menu.Mes.Transaction/LaborDtlView:Epicor.Mfg.UI.FrameWork.EpiDataView”>LaborDtlView.<a rel=“nofollow” title="DataView Epicor.Mfg.UI.FrameWork.EpiDataView.dataView { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.EpiDataView/property:dataView:System.Data.DataView”>dataView[this.<a rel=“nofollow” title="EpiDataView Epicor.Mfg.Menu.Mes.Transaction.LaborDtlView;

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.Menu.Mes:9.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.Menu.Mes.Transaction/LaborDtlView:Epicor.Mfg.UI.FrameWork.EpiDataView”>LaborDtlView.<a rel=“nofollow” title="int Epicor.Mfg.UI.FrameWork.EpiDataView.Row { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.EpiDataView/property:Row:Int32”>Row][“LaborHedSeq”].<a rel=“nofollow” title="string System.Object.ToString();

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Object/ToString():String”>ToString();
<a rel=“nofollow” title="System.String

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.String”>string str2 = this.<a rel=“nofollow” title="EpiDataView Epicor.Mfg.Menu.Mes.Transaction.LaborDtlView;

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.Menu.Mes:9.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.Menu.Mes.Transaction/LaborDtlView:Epicor.Mfg.UI.FrameWork.EpiDataView”>LaborDtlView.<a rel=“nofollow” title="DataView Epicor.Mfg.UI.FrameWork.EpiDataView.dataView { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.EpiDataView/property:dataView:System.Data.DataView”>dataView[this.<a rel=“nofollow” title="EpiDataView Epicor.Mfg.Menu.Mes.Transaction.LaborDtlView;

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.Menu.Mes:9.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.Menu.Mes.Transaction/LaborDtlView:Epicor.Mfg.UI.FrameWork.EpiDataView”>LaborDtlView.<a rel=“nofollow” title="int Epicor.Mfg.UI.FrameWork.EpiDataView.Row { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.EpiDataView/property:Row:Int32”>Row][“laborDtlSeq”].<a rel=“nofollow” title="string System.Object.ToString();

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Object/ToString():String”>ToString();
<a rel=“nofollow” title="Epicor.Mfg.UI.FrameWork.LaunchFormOptions

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.LaunchFormOptions”>LaunchFormOptions launchObject = new <a rel=“nofollow” title="Epicor.Mfg.UI.FrameWork.LaunchFormOptions.LaunchFormOptions();

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.LaunchFormOptions/.ctor()”>LaunchFormOptions {
<a rel=“nofollow” title="bool Epicor.Mfg.UI.FrameWork.LaunchFormOptions.IsModal { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.LaunchFormOptions/property:IsModal:Boolean”>IsModal = true,
<a rel=“nofollow” title="bool Epicor.Mfg.UI.FrameWork.LaunchFormOptions.SuppressFormSearch { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.LaunchFormOptions/property:SuppressFormSearch:Boolean”>SuppressFormSearch = true,
<a rel=“nofollow” title="object Epicor.Mfg.UI.FrameWork.LaunchFormOptions.ValueIn { … }

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.LaunchFormOptions/property:ValueIn:Object”>ValueIn = str + “,” + str2
};
<a rel=“nofollow” title="Epicor.Mfg.UI.FrameWork.ProcessCaller

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.ProcessCaller”>ProcessCaller.<a rel=“nofollow” title="object Epicor.Mfg.UI.FrameWork.ProcessCaller.LaunchForm(object, string, object);

CTRL+Click to open in new tab." target="_blank" href=“http://127.0.0.1/roeder/dotnet/Default.aspx?Target=code://Epicor.Mfg.UI.EpiClientLib:2.5.606.0:5d3fa3c7105d7992/Epicor.Mfg.UI.FrameWork.ProcessCaller/LaunchForm(Object,String,Object):Object”>LaunchForm(this, “Epicor.Mfg.UI.EndActivityEntry”, launchObject);

}

}



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Tue, Oct 1, 2013 at 9:45 AM, <smyers@...> wrote:

Â
<div>


  <p></p><p>Hello,</p><p> </p><p>Does anyone know a method to open end activity entry in MES through another process? We&#39;re using Epicor 9.05.702.</p><p> </p><p>I&#39;m trying to launch the form from a custom button in Issue material Entry.  I have the following parameters available in my code:</p>

Â

LaborHedSeq

LaborDtlSeq

EmployeeNum

JobNum

PartNum

Â

I have used the following definitions for launch form options:

Â

Dim lfo As New LaunchFormOptions()

Â

or

Â

Dim lfo As New Epicor.Mfg.UI.App.EndActivity.endActivityArgs()

Â

With combinations of the above list of parameters assigned to:

Â

lfo.valuein

lfo.contextvalue

Â

Before attempting to launch the form with:

Â

Dim LoadEnd As UIReflector = ProcessCaller.LaunchCallBackForm(oTrans,"form_name", lfo)

Â

In each case, the following error prompt displays:

Â

Error Detail

============

Index 0 is either negative or above rows count.

 

Stack Trace

===========

at System.Data.DataView.GetRow(Int32 index)

at System.Data.DataView.get_Item(Int32 recordIndex)

at Epicor.Mfg.UI.App.EndActivityEntry.EndActForm.OnFormLoaded()

at Epicor.Mfg.UI.FrameWork.EpiBaseForm.formLoaded()

Â

In the end activity form, I've added custom code to pick up the launch form options, if present. this has been applied to load, epiviewnotification and my own private sub utilising a system timer. No method appears to work.

Â

Can anyone help please?

Â

</div>



<div style="color:#fff;min-height:0;"></div>


(system) #4

I am now able to launch End Activity from Issue Material without any initial errors being reported. However, when the application encounters auto-search adapters in my custom code for End Activity, I get an error at the dataset declaration line below:

Dim SerialAD As New SerialNoAdapter(oTrans)

SerialAD.BOConnect()

Dim opts As New SearchOptions(SearchMode.AutoSearch)

opts.PreLoadSearchFilter = "JobNum='" & edvEndAct.dataView(edvEndAct.Row)("JobNum&quo t;) & "'"
Dim ds as DataSet = DirectCast(ProcessCaller.LaunchSearch(oTrans, "SerialNoAdapter", opts), DataSet)

The error is as follows:

"The process caller failed to invoke method InvokeSearch in
Epicor.Mfg.UI.Searches.EpiSearchEngine in C:\Program Files (x86)\Epicor Software\Epicor905\Client\Epicor.Mfg.UI.EpiClientL ib.dll"

My hunch is that I'm trying to use process caller within an active process call (the one I used to launch the form from issue material)?

Note that no errors are reported if End Activity is opened directly.

Epicor version: 9.05.702

Thanks,

Steven 



---In vantage@yahoogroups.com, <jose@...> wrote:

Here you go
public void EndActivity()
{
    if (this.LaborDtlView.HasRow)
    {
        string str = this.LaborDtlView.dataView[this.LaborDtlView.Row]["LaborHedSeq"].ToString();
        string str2 = this.LaborDtlView.dataView[this.LaborDtlView.Row]["laborDtlSeq"].ToString();
        LaunchFormOptions launchObject = new LaunchFormOptions {
            IsModal = true,
            SuppressFormSearch = true,
            ValueIn = str + "," + str2
        };
        ProcessCaller.LaunchForm(this, "Epicor.Mfg.UI.EndActivityEntry", launchObject);
}

}



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?


On Tue, Oct 1, 2013 at 9:45 AM, <smyers@...> wrote:

 
<div>


  <p>Hello,</p><p>&nbsp;</p><p>Does anyone know a method to open end activity entry in MES through another process? We&#39;re using Epicor 9.05.702.</p><p>&nbsp;</p><p>I&#39;m trying to launch the form from a custom button in Issue material Entry.&nbsp; I have the following parameters available in my code:</p>

 

LaborHedSeq

LaborDtlSeq

EmployeeNum

JobNum

PartNum

 

I have used the following definitions for launch form options:

 

Dim lfo As New LaunchFormOptions()

 

or

 

Dim lfo As New Epicor.Mfg.UI.App.EndActivity.endActivityArgs()

 

With combinations of the above list of parameters assigned to:

 

lfo.valuein

lfo.contextvalue

 

Before attempting to launch the form with:

 

Dim LoadEnd As UIReflector = ProcessCaller.LaunchCallBackForm(oTrans,"form_name", lfo)

 

In each case, the following error prompt displays:

 

Error Detail

============

Index 0 is either negative or above rows count.

 

Stack Trace

===========

at System.Data.DataView.GetRow(Int32 index)

at System.Data.DataView.get_Item(Int32 recordIndex)

at Epicor.Mfg.UI.App.EndActivityEntry.EndActForm.OnFormLoaded()

at Epicor.Mfg.UI.FrameWork.EpiBaseForm.formLoaded()

 

In the end activity form, I've added custom code to pick up the launch form options, if present.  this has been applied to load, epiviewnotification and my own private sub utilising a system timer.  No method appears to work.

 

Can anyone help please?

 

</div>



<div style="color:rgb(255, 255, 255);min-height:0px;"></div>


(system) #5

Thanks Jose, now launches without error. 



---In vantage@yahoogroups.com, <jose@...> wrote:

Here you go
public void EndActivity()
{
    if (this.LaborDtlView.HasRow)
    {
        string str = this.LaborDtlView.dataView[this.LaborDtlView.Row]["LaborHedSeq"].ToString();
        string str2 = this.LaborDtlView.dataView[this.LaborDtlView.Row]["laborDtlSeq"].ToString();
        LaunchFormOptions launchObject = new LaunchFormOptions {
            IsModal = true,
            SuppressFormSearch = true,
            ValueIn = str + "," + str2
        };
        ProcessCaller.LaunchForm(this, "Epicor.Mfg.UI.EndActivityEntry", launchObject);
}

}



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?


On Tue, Oct 1, 2013 at 9:45 AM, <smyers@...> wrote:

 
<div>


  <p>Hello,</p><p>&nbsp;</p><p>Does anyone know a method to open end activity entry in MES through another process? We&#39;re using Epicor 9.05.702.</p><p>&nbsp;</p><p>I&#39;m trying to launch the form from a custom button in Issue material Entry.&nbsp; I have the following parameters available in my code:</p>

 

LaborHedSeq

LaborDtlSeq

EmployeeNum

JobNum

PartNum

 

I have used the following definitions for launch form options:

 

Dim lfo As New LaunchFormOptions()

 

or

 

Dim lfo As New Epicor.Mfg.UI.App.EndActivity.endActivityArgs()

 

With combinations of the above list of parameters assigned to:

 

lfo.valuein

lfo.contextvalue

 

Before attempting to launch the form with:

 

Dim LoadEnd As UIReflector = ProcessCaller.LaunchCallBackForm(oTrans,"form_name", lfo)

 

In each case, the following error prompt displays:

 

Error Detail

============

Index 0 is either negative or above rows count.

 

Stack Trace

===========

at System.Data.DataView.GetRow(Int32 index)

at System.Data.DataView.get_Item(Int32 recordIndex)

at Epicor.Mfg.UI.App.EndActivityEntry.EndActForm.OnFormLoaded()

at Epicor.Mfg.UI.FrameWork.EpiBaseForm.formLoaded()

 

In the end activity form, I've added custom code to pick up the launch form options, if present.  this has been applied to load, epiviewnotification and my own private sub utilising a system timer.  No method appears to work.

 

Can anyone help please?

 

</div>



<div style="color:rgb(255, 255, 255);min-height:0px;"></div>