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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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 1,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans