Feedback (bug?) in Beta of the dbEditor templates

Posts   
 
    
Emmanuel
User
Posts: 167
Joined: 13-Jan-2006
# Posted on: 09-Mar-2007 19:38:31   

Compile time error in dbEditor template generated code...

  1. LLBLGenPro version v2.0.0.0 Dec 6, 2006.
  2. SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version 2.0.0.061205
  3. Adapter and .NET 2.0
  4. C#
  5. SQL Server backend
  6. Templates were downloaded last week - the Jan 8 Beta version

I have an entity that contains two fields containing foreign keys to another table (each field points to the same table). If I set the "UseLookupDropDownList" custom property on BOTH of these fields in order to get a nice pick list for them, the code generates two LLBLGenProDataSource2 server controls - one for each of these DropDownLists - but they get the same ID. See generated code snippet below in which the ID is "_AuthorizationLevel_IdDS" for both:


        <tr>
            <td width="20"  nowrap="nowrap" class="content">&nbsp;</td>
            <td class="formtexts" >
                AccessibilityAuthorizationLevel:
            </td>
            <td class="content">
                <llblgenpro:LLBLGenProDataSource2 ID="_AuthorizationLevel_IdDS" runat="server" DataContainerType="EntityCollection" AdapterTypeName="Artifacts.DatabaseSpecific.DataAccessAdapter, ArtifactsDBSpecific" EntityFactoryTypeName="Artifacts.FactoryClasses.AuthorizationLevelEntityFactory, Artifacts"/>
                <asp:DropDownList ID="cbxAccessibilityAuthorizationLevel" runat="server" AppendDataBoundItems="true" SelectedValue='<%# Bind("AccessibilityAuthorizationLevel") %>' DataSourceID="_AuthorizationLevel_IdDS" DataValueField="Id" DataTextField="Id">

                </asp:DropDownList>
            </td>
            <td width="20" nowrap="nowrap" class="content">&nbsp;</td>
        </tr>
        <tr>
            <td width="20"  nowrap="nowrap" class="content">&nbsp;</td>
            <td class="formtexts" >
                VisibilityAuthorizationLevel:
            </td>
            <td class="content">
                <llblgenpro:LLBLGenProDataSource2 ID="_AuthorizationLevel_IdDS" runat="server" DataContainerType="EntityCollection" AdapterTypeName="Artifacts.DatabaseSpecific.DataAccessAdapter, ArtifactsDBSpecific" EntityFactoryTypeName="Artifacts.FactoryClasses.AuthorizationLevelEntityFactory, Artifacts"/>
                <asp:DropDownList ID="cbxVisibilityAuthorizationLevel" runat="server" AppendDataBoundItems="true" SelectedValue='<%# Bind("VisibilityAuthorizationLevel") %>' DataSourceID="_AuthorizationLevel_IdDS" DataValueField="Id" DataTextField="Id">

                </asp:DropDownList>
            </td>
            <td width="20" nowrap="nowrap" class="content">&nbsp;</td>
        </tr>

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39776
Joined: 17-Aug-2003
# Posted on: 10-Mar-2007 11:59:12   

I'll check it out. It will be a week or so before we'll release an update, we've planned to release the templates final version in 2 weeks time.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39776
Joined: 17-Aug-2003
# Posted on: 19-Mar-2007 10:42:56   

FIxed in next build (March 19th).

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 24-Mar-2007 12:43:58   

Is this available? I don't see it in the downloads area.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39776
Joined: 17-Aug-2003
# Posted on: 24-Mar-2007 13:10:23   

arschr wrote:

Is this available? I don't see it in the downloads area.

Not yet, I'll upload it later today.

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 24-Mar-2007 13:19:06   

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39776
Joined: 17-Aug-2003
# Posted on: 24-Mar-2007 18:02:39   

It's available now. simple_smile I've moved it to the templates section in the download area.

Frans Bouma | Lead developer LLBLGen Pro