Notifications
Announcements
No record found.
Purchase requisition New button is disabled in AX2012 even though i have created user relation in the Users form for particular user?
Is there any parameters to be enabled
Thanks
*This post is locked for comments
Hello vamsaropa
You should define relation between user and worker record.
Go to System Administration > Common > User relations.
create a new record for your user Id and try again.
Thank for the reply but I already did that user relation still the button is disabled
have you checked employer record?
is it still employer?
employment end date should be greater than today.
Yes . User is an employer and greater than today
Still the button is disabled
Hello,
What roles does your user have assigned?
Regards
Ludwig
After the set up did you test this logged in as the specific user?
The methods in code behind the button include selectionChanged(), -this is the bit that enable/disables the button:
HcmEmployment hcmEmployment = HcmEmployment::getActiveEmploymentsByWorker(currentWorker());
listPage.actionPaneControlEnabled(formControlStr(PurchReqTableListPage, RequisitionButton), hcmEmployment.RecId);
i.e.the worker assigned to the currently logged-in user is retrieved by currentWorker(). Active employment records are then accessed against this worker.
In the case where no worker is present, no employment records are available, and the buttons are set to disabled. .
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2