LPT include in TDL Template

Posts   
 
    
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 08-Nov-2005 02:06:02   

I'm having trouble including an LPT template inside a TDL template. I'm trying to include my LPT template inside the EntityAdapter template and it can't get past the LPT code:

<%=_activeObject.Name%>

This compiles and runs fine as a seperate template using the SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine task performer class, but fails when executing in the HandleLPTIncludeStatement with the SD.LLBLGen.Pro.TaskPerformers.CodeEmitter task performer class. It complains that the Hashtable class does not have a "Name" property, which it obviously does not (but I'm trying to get the name of the entity). What is _activeObject in this context (inside an LPT template that is included in a TDL template that is running in the CodeEmitter taskperformer) ?

I think I could figure this out on my own, but the sourcecode for TDLInterpreter that was installed with 1.0.2005.1 seems to be from 1.0.2004.2.

mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 08-Nov-2005 02:15:34   

Correction...I didn't get the latest SDK which has the new sourcecode. I'm looking in there now...and I see that the currentScope (_activeObject) has all that I need. Nevermind!