Passing parameter to form

I think that when you call UD forms, LFO works a little differently.

Last time I did this (for a BAQ Report), we used ContextValue rather than ValueIn and then had to modify the UD form to receive the LFO as well with a Form Load event.

private static void BAQReportForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
if (BAQReportForm.LaunchFormOptions != null)
{
// Grab LFO passed from parent form:
string PassedValue = BAQReportForm.LaunchFormOptions.ContextValue.ToString();
}

}

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> I have the following on an button click event on MES
>
> dim lfo as LaunchFormOptions = new LaunchFormOptions()
> lfo.IsModal = true
> lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
>
> It is launching the form, but the value is not being passed into the form
> for some reason. Any idea what could be going on?
>
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
> [Non-text portions of this message have been removed]
>
I have the following on an button click event on MES

dim lfo as LaunchFormOptions = new LaunchFormOptions()
lfo.IsModal = true
lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)

It is launching the form, but the value is not being passed into the form
for some reason. Any idea what could be going on?




*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*


[Non-text portions of this message have been removed]
I just created a web application to start and end activities and the end activity method requires the labor hed sequence number and the labor dtl sequence number as parameters - you might want to try passing those to the form.....

bw

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> I have the following on an button click event on MES
>
> dim lfo as LaunchFormOptions = new LaunchFormOptions()
> lfo.IsModal = true
> lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
>
> It is launching the form, but the value is not being passed into the form
> for some reason. Any idea what could be going on?
>
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
> [Non-text portions of this message have been removed]
>
Thanks man,
Any idea how do I pass additional values?

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Mon, Feb 21, 2011 at 8:41 AM, bw2868bond <bwalker@...>wrote:

>
>
> I just created a web application to start and end activities and the end
> activity method requires the labor hed sequence number and the labor dtl
> sequence number as parameters - you might want to try passing those to the
> form.....
>
> bw
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > I have the following on an button click event on MES
> >
> > dim lfo as LaunchFormOptions = new LaunchFormOptions()
> > lfo.IsModal = true
> > lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> > ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
> >
> > It is launching the form, but the value is not being passed into the form
> > for some reason. Any idea what could be going on?
> >
> >
> >
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
I'm wanting to do something very similiar. I have a web application that gives very specific work instructions (with photos, etc) that I want launched automatically when the user starts production activity through MES. I was hoping I could use a little code snippet to pass the JobNum and OprSeq as query string parameters in the URL and then launch IE. Any suggestions on how to make that happen?

Aimee

--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> I just created a web application to start and end activities and the end activity method requires the labor hed sequence number and the labor dtl sequence number as parameters - you might want to try passing those to the form.....
>
> bw
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> >
> > I have the following on an button click event on MES
> >
> > dim lfo as LaunchFormOptions = new LaunchFormOptions()
> > lfo.IsModal = true
> > lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> > ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
> >
> > It is launching the form, but the value is not being passed into the form
> > for some reason. Any idea what could be going on?
> >
> >
> >
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *T: 904.469.1524 mobile
> > E: jose@
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
looks like a comma delimited string....

string str = this.LaborDtlView.dataView[this.LaborDtlView.Row]["LaborHedSeq"].ToString();
string str2 = this.LaborDtlView.dataView[this.LaborDtlView.Row]["laborDtlSeq"].ToString();
LaunchFormOptions launchObject = new LaunchFormOptions();
launchObject.IsModal = true;
launchObject.SuppressFormSearch = true;
launchObject.ValueIn = str + "," + str2;
ProcessCaller.LaunchForm(this, "Epicor.Mfg.UI.EndActivityEntry", launchObject);


--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> Thanks man,
> Any idea how do I pass additional values?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Mon, Feb 21, 2011 at 8:41 AM, bw2868bond <bwalker@...>wrote:
>
> >
> >
> > I just created a web application to start and end activities and the end
> > activity method requires the labor hed sequence number and the labor dtl
> > sequence number as parameters - you might want to try passing those to the
> > form.....
> >
> > bw
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > I have the following on an button click event on MES
> > >
> > > dim lfo as LaunchFormOptions = new LaunchFormOptions()
> > > lfo.IsModal = true
> > > lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> > > ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
> > >
> > > It is launching the form, but the value is not being passed into the form
> > > for some reason. Any idea what could be going on?
> > >
> > >
> > >
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Thanks!! I just figured it out also, however I had to decompile the
EndActivitydll, how did you know what it was is this documented somewhere?

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Mon, Feb 21, 2011 at 9:29 AM, bw2868bond <bwalker@...>wrote:

>
>
> looks like a comma delimited string....
>
> string str =
> this.LaborDtlView.dataView[this.LaborDtlView.Row]["LaborHedSeq"].ToString();
> string str2 =
> this.LaborDtlView.dataView[this.LaborDtlView.Row]["laborDtlSeq"].ToString();
> LaunchFormOptions launchObject = new LaunchFormOptions();
> launchObject.IsModal = true;
> launchObject.SuppressFormSearch = true;
> launchObject.ValueIn = str + "," + str2;
> ProcessCaller.LaunchForm(this, "Epicor.Mfg.UI.EndActivityEntry",
> launchObject);
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > Thanks man,
> > Any idea how do I pass additional values?
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Mon, Feb 21, 2011 at 8:41 AM, bw2868bond <bwalker@...>wrote:
>
> >
> > >
> > >
> > > I just created a web application to start and end activities and the
> end
> > > activity method requires the labor hed sequence number and the labor
> dtl
> > > sequence number as parameters - you might want to try passing those to
> the
> > > form.....
> > >
> > > bw
> > >
> > >
> > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > >
> > > > I have the following on an button click event on MES
> > > >
> > > > dim lfo as LaunchFormOptions = new LaunchFormOptions()
> > > > lfo.IsModal = true
> > > > lfo.ValueIn = edvLaborDtl.dataView(edvLaborDtl.row)("JobNum")
> > > > ProcessCaller.LaunchForm(oTrans, "UDEnd", lfo)
> > > >
> > > > It is launching the form, but the value is not being passed into the
> form
> > > > for some reason. Any idea what could be going on?
> > > >
> > > >
> > > >
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]