Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Unable to show the option fields name description in line details page.

(0) ShareShare
ReportReport
Posted on by 1,835

Dear Experts,
I have make a page the name is "Sales Line Details". I have shown some required fields form sales line and sales headers. In sales header have a optin fields the name is "MKU Order Type".in database saving 0,1,2,3 like this. How can I show the name in this page "Sales Line Details"
i have tried from my side....make a boolean fields in global vairables. And added the code like. When I run the page, in mku order type fields value showing integer no. 0,1,2 etc.
How can i show the name there.

OnAfterGetRecord()
//MKY Begin
IF recSalesHrd.GET("Document Type","Document No.") THEN BEGIN
dtOrderDate := recSalesHrd."Order Date";
dtPostingDate := recSalesHrd."Posting Date";
txtCustomerName := recSalesHrd."Sell-to Customer Name";
CurrencyFactor:=recSalesHrd."Currency Factor";
MKUOrderType:=recSalesHrd."MKU Order Type";

IF "Currency Code"<>'' THEN
lineamountlcy:="Line Amount"/CurrencyFactor;

END;
//MKY End

0474.test01.png

3021.test02.png

5556.test03.png

*This post is locked for comments

  • manish.yadav Profile Picture
    manish.yadav 1,835 on at
    RE: Unable to show the option fields name description in line details page.

    Thank you, it is very helpful. Now, my query is resolved.

  • Verified answer
    Rafael B. Profile Picture
    Rafael B. 715 on at
    RE: Unable to show the option fields name description in line details page.

    Hi @MKY,

    As a quick way, I would advise you to add option string (copied from sales header) to appropriate field os SalesLine Detail page.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Unable to show the option fields name description in line details page.

    what options do you have under MKUOrderType variable?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans