web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Changing to 2 decimal places - Data Exchange Definition

(0) ShareShare
ReportReport
Posted on by 40

Hello,

I am trying to change a field in Data Exchange Definition to mandatory 2 decimal places. Under Data Format in Column Definitions, I changed the data type to Decimal,  the data Format Culture as en-US and inputted the following in Data Format:

  • <Precision,2:2><Standard Format,2>
  • <Precision,2:>
  • <Decimals,2>

Not sure why the above formats is not working.

If the amount if $100, I want to show 100.00 in the EFT(ACH)  file.

Thanks,

Rosen

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    What multiplier field?

  • Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    Hello

    I'm using  <Precision,2:2><Standard Format,0> and en-US in my data def - and I'm not getting a decimal?

  • Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    This did not help me  :-(

  • Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    I need help with this also. I also need to change the payment journal amount from no decimals to show decimals - any suggestions would help. There is nothing for documentation on this.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    My old friend Sai once again saving me. I spent about 2 hours trying to sort this out came across this post and sure enough it fixed my issue.

  • Suggested answer
    SaiRagavan Profile Picture
    50 on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    Hi there,

    On the 'Field Mapping' window, for the Payment line, enter "100" at "Multiplier" field. This will solve the issue.

    I had to break my head during this setup!

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    When you use the AutoFormatType and AutoFormatExpr properties to format a field, a trigger called AutoFormatTranslate in codeunit 1 is called. AutoFormatTranslate has ID 12 and takes two parameters: one from the AutoFormatType property and one from the AutoFormatExpr property. The AutoFormatType property can contain one of the following integers: 0, 1, 2, 10, or 11. These settings are described in the next section.

    When a field appears on a page or report, you can set the AutoFormatType and AutoFormatExpr properties directly on the page field or report field (column), or you can set them on the underlying table field. If you specify the properties on the table field, then format applies wherever the field is used. Specifying the properties on the page or report field will only apply the format on the specific page or report. If you specify the properties on the table field and the page or report field, then the settings on the page or report field take precedence.

    You can see an example implementation of the AutoFormatType logic in the CRONUS International Ltd. demonstration database. In the CRONUS International Ltd. demonstration database, the AutoFormatTranslate trigger calls codeunit 45 AutoFormatManagement which handles the formatting.

    Admin

    Apps4rent | o365cloudexperts

  • Ivan Labrador Profile Picture
    30 on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    Hello, did you finally solve the problem? I'm in the exact same situation

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    Hi Rosen,

    As per my understanding, the data comes with a DOT already.

    Also you don't need to create any transformation rules.

    Just check your data format in Data Exchange Definition probably you are missing something as I was getting with the DOT.

    Let me know if you need further help.

  • Rosen Limbu Profile Picture
    40 on at
    RE: Changing to 2 decimal places - Data Exchange Definition

    Thanks for your Response Olister. I see on the blog that you created a transformation rule for REPLACEDOT and I used the Replace transformation type but not sure how to make it dynamic so that all values will be converted.

    Yes, I would appreciate your help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,878

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,390

#3
Sumit Singh Profile Picture

Sumit Singh 2,884

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans