Destroy SCR component

2016-06-03 Thread Alex Soto
With SCR, there is a way to programmatically create a new component on demand: ComponentFactory.newInstance Once I finish using the created instance, how can I tell SCR to destroy it? Best regards, Alex soto

Re: Destroy SCR component

2016-06-03 Thread Alex Soto
Answering my own question: ComponentInstance.dispose(); Best regards, Alex soto > On Jun 3, 2016, at 9:40 AM, Alex Soto wrote: > > With SCR, there is a way to programmatically create a new component on > demand: > > > ComponentFactory.newInstance > > Once I finish using the

Re: Destroy SCR component

2016-06-06 Thread Jean-Baptiste Onofré
Hi Alex, AFAIR, the dispose() callback method on the component does it. Regards JB On 06/03/2016 03:40 PM, Alex Soto wrote: With SCR, there is a way to programmatically create a new component on demand: ComponentFactory.newInstance Once I finish using the created instance, how can I tell

Re: Destroy SCR component

2016-06-06 Thread Jean-Baptiste Onofré
Oh, sorry I missed your e-mail. Sorry for the double answer ;) Regards JB On 06/03/2016 04:04 PM, Alex Soto wrote: Answering my own question: ComponentInstance.dispose(); Best regards, Alex soto On Jun 3, 2016, at 9:40 AM, Alex Soto mailto:alex.s...@envieta.com>> wrote: With SCR, t

Re: Destroy SCR component

2016-06-06 Thread Alex Soto
NP, Thanks! Best regards, Alex soto > On Jun 6, 2016, at 3:48 AM, Jean-Baptiste Onofré wrote: > > Oh, sorry I missed your e-mail. > > Sorry for the double answer ;) > > Regards > JB > > On 06/03/2016 04:04 PM, Alex Soto wrote: >> Answering my own question: >> >>ComponentInstance.dispose