migrating code from form 330 (v370) to navigation pane (v4)

hsilveirahsilveira Member Posts: 23
Hi all,

I'm making an upgrade from 370 to 4SP3.

In the old version, they have code developed that calls a function which receives a parameter that depends of the button that users click. For example when user clicks in sales & rec they call functionX(1), when they click in Purch & Pay they call funtionX(2).

In this new version this is not possible unless we made the changes in all forms that we have in all modules (Sales, Purch and so on). ](*,) This is not a great idea... :shock:

Someone has some ideia that can help me to resolve this issue?

Thanks.

Best regards

XMAN

Comments

  • ara3nara3n Member Posts: 9,256
    create a codeunit that calls the form. Add a link to open the codeunit.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • nunomaianunomaia Member Posts: 1,153
    To do add such functionality when the user click in a menu group you can’t. The other way around it’s to force the user to click in codeunit that ara3n told you.

    To add such functionality in every form you won’t have the same goal. In NAV 4 you can have for example the same form in Sales and Marketing Warehouse.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • philippegirodphilippegirod Member Posts: 191
    You can use Navision shortcuts if you want to specify filters for forms or reports. This is unluckely impossible in "normal" menus, only in Shortcuts.
    It is also impossible to add values for variables (to have for instance a box ticked in Options page in a Report).
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Yaroslav_GaponovYaroslav_Gaponov Member Posts: 158
    hi

    I know 2 way:

    1. Standard - to create a lot codeunits
    2. Economic - run this forms via url (some description http://dynamicsuser.net/forums/p/12771/61728.aspx#61728)
Sign In or Register to comment.