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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Page extension

(0) ShareShare
ReportReport
Posted on by 335

Hi All,

I have been trying to build one page extension based on permission set. I was able to block the field from Items Lookup  page but it still shows the field in drop down but when open the full screen it doesn't show the hidden field.Below is my code:

pageextension 50110 ItemCardExtension extends "Item Lookup"
{
    layout
    {
        modify("Unit Price")
        {
            Visible = isSecurityUser;
            
        }
    }

    var
        isSecurityUser: boolean;


    trigger OnOpenPage();

    var

        AccessControlRec: Record "Access Control";

    begin

        isSecurityUser := true;

        AccessControlRec.reset();

        AccessControlRec.setfilter("User Security ID", USERSECURITYID);

        AccessControlRec.setfilter("Role ID", 'SUPER');

        If not AccessControlRec.findset() then
            isSecurityUser := false;

    end;
}
Below are the screenshots. If I click on the drop down to select the item it shows "unit price" (hidden field)  but If I click on Select from full list on the drop down,it doesnt show Unit price field
pastedimage1600884281495v1.png
pastedimage1600884508062v2.png
I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    The drilldown (filter as you type FAYT) is determined by the fieldgroups defined on the table.  So, since we are looking at the “Item No.”, then we are looking at the Item table.  

    You can find out more here (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-field-groups). 

    Currently, you can only add fields to the end of fieldgroup.

    You need to vote for this IDEAS to improve the behavior in future versions

    https://experience.dynamics.com/ideas/idea/?ideaid=654c8767-5505-ea11-b862-0003ff68954d

    pastedimage1601017841051v1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,822 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans