DictField.isSql Method [AX 2012]

Returns a value that indicates whether the field is in the SQL database.

public boolean isSql()

Run On

Called

Return Value

Type: boolean
true if the field is in the SQL database; otherwise, false.

The following example determines whether the field is in the SQL database.

    DictField df; 
 
    df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
    if (df) 
    { 
    if (df.isSql()) 
    { 
        print ("Field is in SQL database"); 
    } 
    else 
    { 
        print ("Field is not in SQL database"); 
    } 
    }

Community Additions

ADD
Show: