Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

check Enum value of RetailStoreTable from RetailStatementTable Form

$
0
0

i created new column in RetailStoreTable type Enum (acceptnegativevalue) and type of this enum is (NoYes) as you see here in Retail stores

now i want check this value when i press post statement  in open statement form 

so i edit main code of post statement for check if total Difference is negative or positive to this code

void clicked()
{
    if(Sale_M_totalDifferenceStore.realValue()>=0)
    {
    super();
    statementLine_ds.executeQuery();
    element.close();
    }
    else
    {
        info ("in this case can't accept negative value you must change case");
    }
}


so i need to check (acceptnegativevalue) first befor start my previous code

how can i add this into my code?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>