Hi All,
I have a request to have one page that displays fields based on users' opened company.
Page ID 30 - Item Card
field number: 50000 - ABC -> has to be displayed for user that is logged into the Company A, while user that is logged into the company B must not see that field.
So far, I have managed to write the code to check for current opened company of user, but I am stucked on displaying fields based on users' currently opened (logged) company.
CU1 - Application Management
local procedure=isCountryB
On the Page ID 30 - Item Card
Global Variable=AppMgt | Codeunit | Application Management
CODE:
OnOpenPage
IF AppMgt.IsCountryB THEN
ABC :=TRUE; -> this does not work as expected, field is displayed anyway to any user that opens any company
Do you have any idea on best possible solution? I once created a copy of the page on company (original company) and then added it into the menu of company (B - additional company) for which this page is intended to be used, so that user would open that page under the (B - additional) company only, and if same user would open different (original) company, then it would have only an original page.
Thanks, Damjan

Report
All responses (
Answers (