THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

Do ASCX templates use user metadata for column headers in the grid?

rated by 0 users
This post has 1 Reply | 0 Followers

Top 75 Contributor
Posts 33
sorin Posted: 10-14-2008 6:40 PM

Hi All,

I am using ES2008 and MyGen 1.2.0.7. I tried the EntitySpaces_VB_WebAdmin.csgen template and after I fixed it to just work (see my other post) I noticed that it uses metadata for table names but not for column headers in the grids.

I also noticed that the BusinessObjects are generated as well without using the Metadata for column names.

For example I have these lines in my UserMetaData.xml

Code:
          <Columns>
            <Column p="ordDeliverySurname" n="Surname" />
            <Column p="ordDeliveryGivenName" n="GivenName" />
            <Column p="ordDeliveryAddress1" n="Address1" />
            <Column p="ordDeliveryAddress2" n="Address2" />

Based on these settings I would expect the column headers in my admin grids to show Surname, GivenName, but yet they still show the physical field names (ordDeliverySurname, etc.). It is probably expected too that the generated business objects have properties like Surname and GivenName instead of the physical field names. The latter is not that desirable, but the column headings look pretty bad without the aliases...

Can someone please let me know if metadata for column names is used by the templates? Also perhaps some clarification at to the use of metadata might be helpful.

Thank you

Sorin

Top 10 Contributor
Posts 3,881
I have not verified that this is a bug, however, we are improving the ASP.NET template(s) for ES2009 (and they need it I admit). Let me do some research and get back to you.

EntitySpaces | Twitter | BLOG | Please honor our Software License

Page 1 of 1 (2 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC