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