It looks like you're new here. Sign in or register to get started.
asdformat wrote: » The Action must be visible, if the Page Mode is in Editable Mode. Only if the Page Mode is on View the Action must Invisible.
Answers
Change "InsertAllowed", "ModifyAllowed" and "DeleteAllowed" of the Page to "No".
Only if the Page Mode is on View the Action must Invisible.
When you open a Page using C/AL-Code, you are able to call the Property "EDITABLE".
This should disable the Actions.
2. Set it on Visible property of Action
3. In OnAfterGetCurrentRecord trigger write line :
MyActionVisible := Currpage.Editable.
Sorry, I misunderstood your initial question.
Please follow the answer from da_neal. This is fine.