Options

Dynamically control page action

Hi all,

I need some tips if somebody know.

What is the best way to control page action visibility if that action call codeunit?
Is there some other way (like with AccessByPermission property), than to define global variable and to set it in Visible property on that action?

Thanks,
Stefan

Answers

  • Options
    krikikriki Member, Moderator Posts: 9,096
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    JuhlJuhl Member Posts: 724
    You can use both. Whatever evaluates to bool.
    Follow me on my blog juhl.blog
  • Options
    vaprogvaprog Member Posts: 1,118
    Not sure what you are after. Maybe give us some more information?

    Besides global variables with the IncudeInDataset property you can use all values in controls for the page (that is, everything in the dataset, at least if it is boolean. You can even use simple expressions in the relevant boolean properties, but I am not sure what is allowed. These expressions will be evaluated by the client, and I am not aware of a proper specification regarding this. At least simple boolean operators (AND, NOT, OR) should work.
Sign In or Register to comment.