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

RE: Form Field : Integer type field, need to show zero but keep missing.

$
0
0

Please use the below code for edit method and make sure your field maximum length is 4. If it is not 4 then, please mention the maximum length number strRFix function.

edit str editFormattedNoFrom(boolean set, DDSetupDDDetail _DDSetupDDDetail, str enteredNo)
{
    int taxNo;
    if(Set)
    {
        taxNo = str2int(enteredNo);
        _DDSetupDDDetail.SetupTaxNoFrom = taxNo;
    }
    else
    {
        taxNo = _DDSetupDDDetail.SetupTaxNoFrom;
    }

    return strRFix(int2str(taxNo), 4, '0');
}



Viewing all articles
Browse latest Browse all 175888

Trending Articles



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