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 gopublic 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 GomezSoftware 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> </p><p>Does anyone know a method to open end activity entry in MES through another process? We're using Epicor 9.05.702.</p><p> </p><p>I'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:rgb(255, 255, 255);min-height:0px;"></div>