locked
Get MetaTable by name RRS feed

  • Question

  • User1637008011 posted

    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??

    Tuesday, April 22, 2014 2:04 AM

Answers

  • User-330204900 posted

    you woudl do this

    string name="ProductCategory"
    MetaTable table = Global.DefaultModel.GetTable(name);
    

    that should do it :)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 22, 2014 5:21 AM

All replies

  • User-330204900 posted

    you woudl do this

    string name="ProductCategory"
    MetaTable table = Global.DefaultModel.GetTable(name);
    

    that should do it :)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 22, 2014 5:21 AM
  • User1637008011 posted

    Thanx Sir..I am ur big fan..reallly appreciate ur work in Dynamic Data

    Friday, April 25, 2014 12:35 AM