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

Community site session details

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

How to make sales order page and subpage not editable in BC?

(0) ShareShare
ReportReport
Posted on by 40

Hi,

I have connected barcode scanner and whenever I scan a bar code a new sales line must be created. And this works fine.

for this task I have followed Erik Hougaard video blog https://www.youtube.com/watch?v=PpOAplT-i0A&t=338s .

But When the cursor focus is on work description field and I scan an Item, a new sales line is created (as desired) but also show the barcode in the work description field.

I do not want barcode to be shown on any field on sales order page, as it does not make any sense.

So for that I want to make the current page and subpage non-editable (CurrPage.editable(false)) and after scanning the item make once again page editable.

But unfortunately, CurrPage.editable(false) does not work.

Any ideas how to make page non editable? or any idea how to handle this situation?

Thanks in advance.

I have the same question (0)
  • Suggested answer
    Jack Davies Profile Picture
    120 on at
    RE: How to make sales order page and subpage not editable in BC?

    you would need to set the editable property to use a global variable in the page extension...

    Editable = pageEditabe;

    VAR
        pageEditable : Boolean;

    Then have you code set pageEditable := false or true at the relevant spots in code...
    note, i have found that the editable / visible properties are a bit hit and miss in the latest (v17 cloud) installs... it looks like if you try to control the visibility of 4 or more control the client gets confused and doesn't display the correct results... - you may be find however as you controlling less that than

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,232

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,863

#3
Sumit Singh Profile Picture

Sumit Singh 2,819

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans