CodeSmith Community
Your Code. Your Way. Faster!

Bug in template for Admin EntityEdit page

Latest post 11-07-2006 10:09 AM by Tanno. 2 replies.
  • 11-07-2006 2:09 AM

    • Tanno
    • Top 100 Contributor
    • Joined on 10-06-2006
    • Posts 50
    • Points 1,215

    Bug in template for Admin EntityEdit page

    If the Entity has an 1-1 or 1-n relationship with another table then in the EntityEdit page the template script will add a datagrid and datasource to show the linked records in this table.

    That is to say, it was ment to show the linked records. However, the edit page will always show the message of the EmptyDataTemplate for this grid.

    This is caused by the fact that the script uses a GetPaged query instead of a GetBy<Entity>ID querry with an <EntityID> query parameter to get the linked records in the table that has the foreign key.

    regards

    Tanno

     

    Filed under:
    • Post Points: 35
  • 11-07-2006 8:36 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 735
    • Points 17,045

    Re: Bug in template for Admin EntityEdit page

    Tanno,

    What version of the templates you're using ... [Entity]Edit.asp pages were modified to use parameterized filters more then a month ago.

    Thank you

    Tanno:

    If the Entity has an 1-1 or 1-n relationship with another table then in the EntityEdit page the template script will add a datagrid and datasource to show the linked records in this table.

    That is to say, it was ment to show the linked records. However, the edit page will always show the message of the EmptyDataTemplate for this grid.

    This is caused by the fact that the script uses a GetPaged query instead of a GetBy<Entity>ID querry with an <EntityID> query parameter to get the linked records in the table that has the foreign key.

    regards

    Tanno

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 11-07-2006 10:09 AM In reply to

    • Tanno
    • Top 100 Contributor
    • Joined on 10-06-2006
    • Posts 50
    • Points 1,215

    Re: Bug in template for Admin EntityEdit page

    I use the official 2.0.0 download version which I downloaded a while ago

    If I look in the changes.log it says version v2.0.0.387

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems