Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Problems wirh TableExtension and Values

Posted on by 65

Hi there
I added a new table (customer N. and Name, plus additional infos) plus ListPage. works.

 
Now I want to integrate those table values into corresponding customer cards. 
I added an extension for the customer table. I see those fields in the inspector when I open the customer card. so that seemed to work. 


the fields are flowfields type lookup from the original table. 

BUT the values from the new table (which I add via List) are not copied over to the extension table fields. 

my syntax is 

field(60102; NEWFIELD; Format)
        {
            Caption = Field Name;
            FieldClass = FlowField;
            CalcFormula = lookup(NewTable.Column where(CustomerNo  = field("No.")));

//CustomerNo is one of the columns in the new table, and "No." is the PK of the customer-Table I try to extend. 

Could you please point me as to what I am doing wrong ?
Thanks in advance

  • Suggested answer
    RE: Problems wirh TableExtension and Values

    Use Record.CalcFields(Field/s).

    learn.microsoft.com/.../record-calcfields-method

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Problems wirh TableExtension and Values

    Sorry, I didnt get your question if you have any..

  • LDE Profile Picture
    LDE 65 on at
    RE: Problems wirh TableExtension and Values

    perfect. I thought I was nuts. that works like a charm. I thought it copies the values anyways. but I guess the lookup only "löooks it up" when needed ? (when fields have to be shown) ?

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Problems wirh TableExtension and Values

    Did you add those fields to the Customer Card page?

    FlowFields values will be shown once you added them to the pages or use CALCFIELDS(fields) in the code to work with.

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans