Problem using HasTypedList

Posts   
 
    
KS
User
Posts: 55
Joined: 08-Aug-2006
# Posted on: 27-Oct-2006 17:43:12   

<Environment Info> Adpater pattern LLBL Designer version 2.0.0.0 LLBLGen Pro .NET 2.0 ORM Support Classes 2.0.0.60904 .Net 2.0 VS.NET 2005 </Environment Info>

In ConstantsEnum generation template you guys are using HasTypedView. I want to use HasTypedList and I found from following link that you have support for same.

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=3489&HighLight=1

However When I included following TDL for generation in ConstantEnumTemplate I got improper generated string

<Added TDL in ConstantsEnumTemplate>

<[If HasTypedList]> /// <summary> /// Index enum to get get collection of all the Typed Lists /// </summary> public enum TypedListType:int {<[ Foreach TypedList ]> ///<summary><[CurrentTypedListName]>TypedList</summary> <[CurrentTypedListName]>TypedList<[If HasFields]>,<[EndIf]><[ NextForeach ]> } <[EndIf]>

</Added TDL in ConstantsEnumTemplate>

<Generated code for above TDL> IfHasTypedList]> /// <summary> /// Index enum to get get collection of all the Typed Lists /// </summary> public enum TypedListType:int { ///<summary>CampaignTypedList</summary> CampaignTypedList, ///<summary>TrackingPixelTypedList</summary> TrackingPixelTypedList, } </Generated code for above TDL>

Any idea what wrong with it. I tried using HasTypedList and HasTypedView at different place. There's no problem with HasTypedView , however HasTypedList generate this extra string "IfHasTypedList]>".

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 28-Oct-2006 10:11:58   

I'll check it out. Looks like a bug in the TDL interpreter/parser combi. the statement itself isn't used in our templates, so we don't run into it in our build-test scripts to test template correctness.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 30-Oct-2006 11:02:43   

It's a bug in the TDL parser. The routine is in the interpreter, token is there, but the If statement LL(1) handler doesn't test for the lookahead 'TypedList' so it skips it and it's then automatically marked as error.

I'll add the lines of code to make the parser recognize this statement. It fell through the gaps because we don'tuse the statement ourselves.

(edit) fixed in next build. The TDL parser assembly with fileversion 2.0.0.061030 has this implemented.

Frans Bouma | Lead developer LLBLGen Pro
KS
User
Posts: 55
Joined: 08-Aug-2006
# Posted on: 31-Oct-2006 15:12:00   

Thanks for your quick action. BTW when, where and how can I get the next build. What is the procedure of updating new version, is it like we have to re-install whole thing or just replace bunch of assemblies ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 31-Oct-2006 15:50:02   

KS wrote:

Thanks for your quick action. BTW when, where and how can I get the next build. What is the procedure of updating new version, is it like we have to re-install whole thing or just replace bunch of assemblies ?

I think a new build with this fix will be released tomorrow.

If you're on the last designer, you can also decide to simply download the taskperformers archive and unpack that in the installation folder's taskperformers folder simple_smile

Frans Bouma | Lead developer LLBLGen Pro
KS
User
Posts: 55
Joined: 08-Aug-2006
# Posted on: 31-Oct-2006 21:30:37   

Sounds Good. Thanks

KS
User
Posts: 55
Joined: 08-Aug-2006
# Posted on: 01-Nov-2006 16:51:12   

In download area I can see last TaskPerfomers release only for 25th Oct, nothing after that. DO i need to get it from somewhere else ?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 01-Nov-2006 17:02:50   

No, as I haven't uploaded a new build yet as I'm waiting for testresults from a tester who tests a fix for the typedlist editor. simple_smile

I'll post in this thread when the build is available.

If you can't wait till then, please let me know and I'll mail you a build of the code generator with the fix.

Frans Bouma | Lead developer LLBLGen Pro
KS
User
Posts: 55
Joined: 08-Aug-2006
# Posted on: 01-Nov-2006 19:05:36   

Its ok. I can wait to get the tested code.

I will be waiting here for your post simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Nov-2006 18:54:04   

It's available simple_smile (as well as the other updates)

Frans Bouma | Lead developer LLBLGen Pro