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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Get the vaule of a table field and display it as a message

(0) ShareShare
ReportReport
Posted on by

hi there,

im finding it hard to find any docs or tutorials about this, i want to get some fields of a table and display them as a message just to get the idea on how it works.  I've tired


 varText := cctables.FIELD(Name);
 MESSAGE(varText);

------


 varText := cctables.Value(Name);
 MESSAGE(varText);

but doesnt work. Anyone can please link any documentation or share a solution it will be greatfull

Thanks

I have the same question (0)
  • Community Member Profile Picture
    on at

    note: im using NAV 2015 wich c/al editor

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Variable name DataType
    CustomerRecref RecordRef
    MyFieldRef FieldRef
    CustomerNo Code
    TABLE 2
    Text constant name ConstValue
    Text000

    Customer name has changed to %1.

    Documentation()

    OnRun()
    CustomerNo := '50000';
    CustomerRecRef.OPEN(18);
    MyFieldRef := CustomerRecRef.FIELD(1);
    IF MyFieldRef.ACTIVE THEN BEGIN
    MyFieldRef.VALUE(CustomerNo);
    MyFieldRef := CustomerRecRef.FIELD(2);
    MyFieldRef.VALUE('Contoso');
    CustomerRecRef.MODIFY;
    MESSAGE(Text000, MyFieldRef.VALUE);
    END

    Thanks.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans