Last post Apr 25, 2014 12:35 AM by mangesh.suv
Member
2 Points
4 Posts
Apr 22, 2014 02:04 AM|mangesh.suv|LINK
I am working in dynamic data..I have table name stored in one variable..say
string name="ProductCategory"
Now, I want something like this...
MetaTable table=(MetaTable)name.
How can we achieve this??
All-Star
17916 Points
5681 Posts
MVP
Apr 22, 2014 05:21 AM|sjnaughton|LINK
you woudl do this
string name="ProductCategory" MetaTable table = Global.DefaultModel.GetTable(name);
that should do it :)
Apr 25, 2014 12:35 AM|mangesh.suv|LINK
Thanx Sir..I am ur big fan..reallly appreciate ur work in Dynamic Data
Member
2 Points
4 Posts
Get MetaTable by name
Apr 22, 2014 02:04 AM|mangesh.suv|LINK
I am working in dynamic data..I have table name stored in one variable..say
string name="ProductCategory"
Now, I want something like this...
MetaTable table=(MetaTable)name.
How can we achieve this??
All-Star
17916 Points
5681 Posts
MVP
Re: Get MetaTable by name
Apr 22, 2014 05:21 AM|sjnaughton|LINK
you woudl do this
that should do it :)
Always seeking an elegant solution.
Member
2 Points
4 Posts
Re: Get MetaTable by name
Apr 25, 2014 12:35 AM|mangesh.suv|LINK
Thanx Sir..I am ur big fan..reallly appreciate ur work in Dynamic Data