Last post Jul 09, 2009 05:20 AM by andreadottor
Jul 09, 2009 02:23 AM|yashgt|LINK
We have an entity named Meeting. In one part of the application, we want to allow Update to the Meeting summary. In another part we want to allow update to the complete Meeting entity. Hence I need to define 2 metadata classes. One with a limited set of
editable columns and the other with the full set. This is so that DynamicData can consume one of the metadata classes to build the Update screen.
Does DynamicData support this? Can we create and assign multiple metadata classes to the entity class? Can we specify the metadata class to use per page?
Jul 09, 2009 05:06 AM|sjnaughton|LINK
Hi Yashgt, Why not have some custom pages and setup some routing so that both pages are viewable.
Jul 09, 2009 05:20 AM|andreadottor|LINK
I think is not possible use different metadata classes for the same object. A workaround is create a custom attributes for create the rule that you want.
One possible way id create a new action and a new page (that use this action) for your entity, and in this page you display only a part properties. For hide the proerties that you dont want display, you can use a HideColumnInActionAttribute ( for this, read
the post of Stephen