I am using the following code to call the CRMCall form
private void OpenCRMCall()
{
LaunchFormOptions launchObject = new LaunchFormOptions();
launchObject.IsModal = false;
launchObject.ValueIn = "TASK"; //valuein property can be accessed when the other form loads.
ProcessCaller.LaunchForm(oTrans,"CRGO6100",launchObject); //parameters are as follows:
}````
The user is asked for some information in the CRM call form that I want to retreive back into the calling form.
How about I could do that?
Can the launchObject.ValueIn be other than a string? like an array[]?
Thank you.
I did something similar by declaring a string array as the āobjectā
When in the called form, Got an SQL error and it resulted with the ContextValue being nullā¦
I tried with a DataRow to pass through and got same error, and same null value.
Revert back to not use launch form options and it opened ok.
So must be something in the setup of the lfoā¦
I need to pass to plan B to resolve my issueā¦ but will try to pursue my testing in a near futureā¦
This aspect just put me out of my sleep this morningā¦ ( I admit ā¦ I dream of Epicor !!! ) and remembered some recent post about what you mentionnedā¦
But my plan B worked finally.
Nevertheless I shall test this for a future useā¦
Sounds like he is looking for a callback to the original form. Luckily Jose, has figured this out.
//calling form
// Create new LaunchFormOptions and set the CallBackToken
LaunchFormOptions lfo = new LaunchFormOptions();
// the CallBackMethod allows us to respond to specific callback
lfo.CallBackMethod = specificCallBackHandler;
ProcessCaller.LaunchForm(oTrans, "UD01", lfo);
//also on the form
// handle the response from the specific Callback delegate
void specificCallBackHandler(object sender, object CallBackArgs)
{
// verify there is CallBack args
if (CallBackArgs == null) return;
EpiMessageBox.Show("ShipVia form handles callback with message: " + CallBackArgs.ToString());
}
//Called Form Customization
//On the Called Form you can Call Back to the calling form with this code
if (UD01Form.LaunchFormOptions != null &&
UD01Form.LaunchFormOptions.CallBackMethod != null)
UD01Form.LaunchFormOptions.CallBackMethod(oTrans, "This is a Message from UD01::CallBackMethod delegate");
Yes exactly. The called form was poping the user to enter specific info that the calling form needed to use.
And in this specific issueā¦ unfortunatly it was the CRMCallForm ā¦which is more complex to address than other forms, as per Jose indicatedā¦
Hi, I am calling MES end activity form vi launch form on a new button click added in Work Queue form. but I got error āObject reference not set to an instanceā
Can you help me how I can load the form with active work data?
My code is as follow:
private void btn_End_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
EpiDataView edv= (EpiDataView)(oTrans.EpiDataViews[āActiveWorkā]);
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ContextValue = edv;
ProcessCaller.LaunchForm(WorkQueueForm,āOP-06.01ā,lfo);
}