guest00 (2008-06-12)
I found how to integrate RDLC and ECO in ASP.net
Thank you for the GetAsIList<> method!
If somebody wants to know HOWTO:
1. Create method in your aspx
public IList MethodName()
{
string ocl = "Class1.allInstances";
IElement res = this.EcoSpace.Ocl.Evaluate(ocl);
return.GetAsIList();
}
And which aspx would that be? The page aspx the report is to go on?
Can the EcoDataSource somehow be used instead of having to do this?
And how do I do this.EcoSpace.Ocl.Evaluate(ocl) in Eco5? I don't seem to have the same methods.
I have tried something like this:
method _Default.IList: System.Collections.IList;
var
ocl : String;
res : Eco.ObjectRepresentation.IElement;
APersonnel : ORCPersonalPlan.Personnel;
oclService : Eco.Services.IOclService;
begin
oclService := Eco.Services.EcoServiceHelper.GetOclService( EcoSpaceManager1.EcoSpace );
ocl := "Peronnel.allInstances";
res := oclService.Evaluate( ocl );
result := res.GetAsIList;
end;
but compiler complains that "Generic parameter "T" for this method call could not fully be resolved".
What do I need to do?