Return LaunchFormOptions

Thank you Jose that was exactly what I needed!

I currently have a screen that will use LaunchFormOptions and ProcessCaller to launch another form. I want to now take some data from the launched form and return it to the original screen. How would I go about returning the data from the launched screen?


Here is some of my code (C#):


This is for the screen that is launching the "POComp" form:


//add the part and lot to an array

string[] arr = new string[3];

arr[0] = partNum;

arr[1] = lotNum;

arr[2] = dmrNum;


//transfer the data to an external popup window

LaunchFormOptions ifo = new LaunchFormOptions();

ifo.ValueIn = arr;

ifo.ContextValue = null;

ifo.IsModal = false;

ifo.SuppressFormSearch = true;

object res = ProcessCaller.LaunchForm(oTrans, "POComp", ifo, true);



Thank you!

Its some what complicated, bt basically in your LFO

you set  a CallBackMethod such as


lfo.CallBackMethod = myPrivateMethod;


in your customization you handle said method
void myPrivateMethod(object sender, object CallBackArgs)
{
// verify there is CallBack args
if (CallBackArgs == null) return;
EpiMessageBox.Show("Customer form handles callback with message: Â " + CallBackArgs.ToString());
}

Then on the called Form,
You Address the Form.LaunchFormOptions.CallBackMethod(oTrans,"YOUR DATA HERE");


Jose C Gomez
Software Engineer



T: 904.469.1524 mobile

E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Wed, Apr 23, 2014 at 10:10 AM, <gkoutre@...> wrote:

Â
<div>
  
  
  <p></p><p>I currently have a screen that will use LaunchFormOptions and ProcessCaller to launch another form. I want to now take some data from the launched form and return it to the original screen. How would I go about returning the data from the launched screen?</p>


Here is some of my code (C#):


This is for the screen that is launching the "POComp" form:


//add the part and lot to an array

string[] arr = new string[3];

arr[0] = partNum;

arr[1] = lotNum;

arr[2] = dmrNum;


//transfer the data to an external popup window

LaunchFormOptions ifo = new LaunchFormOptions();

ifo.ValueIn = arr;

ifo.ContextValue = null;

ifo.IsModal = false;

ifo.SuppressFormSearch = true;

object res = ProcessCaller.LaunchForm(oTrans, "POComp", ifo, true);



Thank you!

</div>
 


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