mycodesamples

Friday, May 05, 2006

ECO - Showing an AutoForm from code C#

If you want the double-click to open your own form, then you may need to open the autoform from a different event. Use this code to fire one up - assuming a CurrencyManagerHandle is used to track the grid:

if (cmhGrid.Element != null){
AutoContainerArgs args = new AutoContainerArgs(EcoSpace);
IAutoContainer a = AutoContainerService.Instance.CreateContainer(cmhGrid.Element,args);
(a as Control).Show();
}

Thursday, May 04, 2006

ECO - Creating object links onCreate of new objects

if (this.idCitation == null){
this.idCitation = new CI_Citation(this.AsIObject().ServiceProvider);
}