Try this.

static void FindTablesWithListCodeId(Args _args)
{
    SqlDictionary sqlDictionary;
    DictTable dt;
    int i, j;
    boolean blnFound;
    ;
    while select sqlDictionary
        order by name
        where sqlDictionary.fieldId==0 &&
            sqlDictionary.name like '*'
    {
        dt = new DictTable(sqlDictionary.TabId);

        // Fields
        blnFound = false;
        for (i=0; i<dt.fieldCnt();i++)
        {
            j=dt.fieldNext(j);
            if (j && dt.fieldObject(j).isSql())
            {
                // SQL Field
//                print dt.fieldObject(j).name(),
dt.fieldObject(j).typeId();
                if (dt.fieldObject(j).typeId()==extendedTypeNum(ListCodeId))
                {
                    blnFound = true;
                }
            }
        }
        if (blnFound)
            print sqlDictionary.name;
    }
    pause;
}




>From: "Walter Becker" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: [development-axapta] How can I find (Axapta) Tables, who's
>field(s) contain a given extendedDataType?
>Date: Fri, 7 May 2004 15:58:08 +0200
>
>For example:
>      I must find all Tables with Fields who's ExtendedDataTypes are
>'ListCodeId'.
>
>How can I accomplish this search with Program Code?
>Is there perhaps already existing functionality in Axapta?
>
>Walter Becker
>DDT
>




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to