Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Add existing field to a page from another Page

Posted on by Microsoft Employee

Hi Experts,

How do I add for example Disposed Of field from a FA Line to include in to Fixed Asset List. Disposed  is Global variable and doesn't exist in  the FA Depreciation Books/Fixed Asset  table. It is works  when the filed exist in a table. Please assist where can I get similar  C/AL function to perform the action.

Fixed Asset. Get(Fixed Asset."Disposed Of");  

In page what would be the C/AL function?

Thank you

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Add existing field to a page from another Page

    Dispose field value is based on the Disposal Date of the FA Depreciation Book, if it has a value it is set to true or else false, so you can create a flow field on Fixed Asset table to lookup Disposal Date to display date and then use that value to set a variable on the Fixed Asset Page just like on the other page or you could write the function as Amol suggested which will calculate the value based on FA Depreciation Book Disposal date.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Add existing field to a page from another Page

    Define gvFADepr Record FA Depreciation Book

    gvFADepr.RESET;

    gvFADepr.SETRANGE(gvFADepr."FA No.","No.");

    IF gvFADepr.FINDFIRST THEN BEGIN

     Disposed := gvFADepr."Disposal Date" > 0D;

    END;

    Write following code on OnAfterGetRecord on Fixed Asset List Page

    Display 'Disposed' on Page.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans