RunObject Property

jhanvincent14
jhanvincent14 Member Posts: 214
can I use RunObject Property of an action button based on a condition ? thanks for the help :)

Best Answers

Answers

  • Slawek_Guzek
    Slawek_Guzek Member Posts: 1,692
    Hi,

    If I understood correctly you want RunObject to run different objects depending on some condition.

    Unfortunately this is not possible.

    RunObject always links to one object, its type and id are assigned when you desing the action, and cannot ba changed at runtime.

    But - you can have two actions with the same captions, with visibility controlled by your conditions, each action linked to a different object via RunObject property.

    Slawek
    Slawek Guzek - www.yitron.co.uk
    Business Central, MS SQL Server, Wherescape RED;
  • Yury
    Yury Member Posts: 59
    Hi,
    Exactly, but also you can write your own code on trigger OnAction with conditions whatever you want
    Regards,
    Yury
  • jhanvincent14
    jhanvincent14 Member Posts: 214
    Hi,

    If I understood correctly you want RunObject to run different objects depending on some condition.

    Unfortunately this is not possible.

    RunObject always links to one object, its type and id are assigned when you desing the action, and cannot ba changed at runtime.

    But - you can have two actions with the same captions, with visibility controlled by your conditions, each action linked to a different object via RunObject property.

    Slawek

    oh. thanks for the tips.
    i have another question, How can I get the active row of a list in navision ?
  • jhanvincent14
    jhanvincent14 Member Posts: 214
    Thanks a lot guys :)