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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Can't lookup Dimension values base on dimension the select Dimension Code

(0) ShareShare
ReportReport
Posted on by

Hi all

Can't lookup Dimension values base on dimension the select Dimension Code. An error placing the breakpoint on  "Dimension Value".Get("FNo."); below shows up.Below is my code.

Field(50013; "FNo."; Text[30])
{

Caption = 'Fund No';

//DataClassification = ToBeClassified;
//TableRelation = Fund."No.";
TableRelation ="Dimension Value".Code where ("Dimension Code"= filter('FUND'));


trigger OnValidate()

var
"Dimension Value": Record 349;

begin

"Dimension Value".Get("FNo.");
FundName := "Dimension Value".Name;
//"FNo.":="Dimension Value".Code;

end;

}

Kindly assist

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    So you want the name of the fund from the dimension value table? I would try changing FNo to a code[20] as .get likes to have matching field types and primary key values only. I expect the primary key of the dimension value table is more than what you have. The alternative would be to use .setrange instead, so you don’t have to comply with the primary key of the table.

  • Community Member Profile Picture
    on at

    1) You can use OnLookup of the Editbox to enter the code to open the lookup form and select the value

    2) You can use TableRelation property of the editbox to connect it to specific table (bat you cannot include filter based on some settings or another variable).

    I recommend the first option...

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,713 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 914 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans