Lookup table display methods

Posted by DAXShekhar on Geeks with Blogs See other posts from Geeks with Blogs or by DAXShekhar
Published on Sun, 04 Apr 2010 15:41:46 GMT Indexed on 2010/04/04 16:53 UTC
Read the original article Hit count: 251

Filed under:

public static client str lookupTableDisplayMethod(str _tableId)
{
    SysDictTable        dictTable   = new SysDictTable(str2int(_tableId));
    ListEnumerator      enum;
    Map                 map         = new Map(Types::String, Types::String);
    ;

    if (dictTable &&
        dictTable.rights() > AccessType::NoAccess)
    {
        enum = dictTable.getListOfDisplayMethods().getEnumerator();

        while (enum.moveNext())
        {
            map.insert(enum.current(), enum.current());
        }
    }

    return pickList(map, "Display method", tableid2pname(_tableId));
}

© Geeks with Blogs or respective owner