SBX - Search With Button

SBX - Forum Post Title

Access denied to method TRANSFER of class LedgerPostingGeneralJournalController

Microsoft Dynamics AX Forum

BASMA asked a question on 12 Oct 2018 8:48 AM
My Badges

Question Status

Suggested Answer

I have a specific module that generates roles.

I generate new role that has access to Accounting payable> journal> invoice journal and I assign it to user1.

I login with this user.

When I clicked on button validate I have this error message:"Access denied to method TRANSFER of class LedgerPostingGeneralJournalController"

When I verify the menuItem called by this button "LedgerJourPost" in menuItems > Action:

its normal to have menuItem without declaring the object?

Reply
Rustem Galiamov responded on 12 Oct 2018 9:03 AM
Suggested Answer

Hi BASMA!

Take a look at enableButtonsActive() method of LedgerJournalTable form. In this method you can find that menuItem depends of journal type.

Reply
BASMA responded on 12 Oct 2018 9:14 AM
My Badges

but I don't understand the source of this error message

Reply
Rustem Galiamov responded on 12 Oct 2018 9:22 AM
Suggested Answer
BASMA responded on 17 Oct 2018 4:51 AM
My Badges

Hi Rustem,Thanks for your reply.

I follow the suggestion in the link.when I add this method to role I don't have error message.

but when I generate another role I get the same issue,so I need something dynamic means : when I generate new role that has access to Accounting payable> journal> invoice journal I don't get error message.

Reply
Rustem Galiamov responded on 17 Oct 2018 5:39 AM

Hi BASMA!

You want to add the server methods to privilege through x++ ?

Reply
BASMA responded on 17 Oct 2018 5:46 AM
My Badges

Yes,

its the same case to : Access denied:SalesFormletter_invoice

 

Reply
Rustem Galiamov responded on 12 Oct 2018 9:03 AM
Suggested Answer

Hi BASMA!

Take a look at enableButtonsActive() method of LedgerJournalTable form. In this method you can find that menuItem depends of journal type.

Reply
Rustem Galiamov responded on 12 Oct 2018 9:22 AM
Suggested Answer

SBX - Two Col Forum

SBX - Migrated JS