Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Get unit conversion Definition field

(0) ShareShare
ReportReport
Posted on by 15

2047.pastedimage1680584433274v2.png

Hello guys. please help me in getting the definition field against product number

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: Get unit conversion Definition field

    As Martin suggested, seems there is a display method. You can use that in your code. If it is not working means you are not passing the table buffer correctly. Just check what it is required and pass that variables. Debug that by putting a breakpoint and check. You can also give a infolog to check what it is returning.

  • Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Get unit conversion Definition field

    I'm sorry, but I have no solution for "I tried but it didnt work".

    If you want our help, please explain what you did and what problem you have with it.

  • FaizanMuzamal Profile Picture
    FaizanMuzamal 15 on at
    RE: Get unit conversion Definition field

    I tried but it didnt work

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Get unit conversion Definition field

    First of all, you need to find out how the value is obtained. I don't think that it comes from a field value at all - it's likely a calculated value.

    Only when you know where the value is stored (or which method calculates it), you can start thinking about a query or code where you'll use it.

    If you look at control (ConversionIntraClassQuickFormula) in UnitOfMeasureConversion form, you'll see that the value comes from displayQuickFormulaWithLocalSeparators() method of UnitOfMeasureConversionIntraclass data source. You won't such a method on the data source, therefore it's defined on the table: UnitOfMeasureConversion.

    UnitOfMeasureConversion.displayQuickFormulaWithLocalSeparators() is a display method, therefore you should be able to use it in a query-based report.

  • FaizanMuzamal Profile Picture
    FaizanMuzamal 15 on at
    RE: Get unit conversion Definition field

    I am working on a query base report

    In my Tmp table i want to get that field (Definition) against Product number.

  • Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Cannot get field

    Can you give us more details about your requirement, please?

    By the way, I moved your question here from the AX forum.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans