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

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
    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
    133 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

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,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans