Options

Hide Action On Page Mode

asdformatasdformat Member Posts: 4
How can i hide an Action on Page Mode (View)?

Answers

  • Options
    HannesHolstHannesHolst Member Posts: 119
    Hi,

    Change "InsertAllowed", "ModifyAllowed" and "DeleteAllowed" of the Page to "No".

  • Options
    asdformatasdformat Member Posts: 4
    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.
  • Options
    HannesHolstHannesHolst Member Posts: 119
    edited 2017-03-24
    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.

    When you open a Page using C/AL-Code, you are able to call the Property "EDITABLE".
    This should disable the Actions.
  • Options
    asdformatasdformat Member Posts: 4
    But, on which condition? Is there an Property which hold the Information of the Page Mode?
  • Options
    da_nealda_neal Member Posts: 76
    edited 2017-03-24
    1. Make global variable MyActionVisible (boolean)
    2. Set it on Visible property of Action
    3. In OnAfterGetCurrentRecord trigger write line :
    MyActionVisible := Currpage.Editable.
  • Options
    HannesHolstHannesHolst Member Posts: 119
    Hey,

    Sorry, I misunderstood your initial question.
    Please follow the answer from da_neal. This is fine.
  • Options
    asdformatasdformat Member Posts: 4
    Perfect solution @da_neal, thx
Sign In or Register to comment.