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

Page Extension- Hide field in drop down

(1) 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
pastedimage1600918903831v1.png
pastedimage1600918928946v2.png
I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    he 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 (docs.microsoft.com/.../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

    experience.dynamics.com/.../

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

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans