Pass nav parameters through C/AL to a DLL in C#.

MendoNAVMendoNAV Posts: 4Member
I am making a DLL to change the font format, size, color. . . for each field and I would like to know if it is possible to pass these parameters through C/AL to the DLL, so I don't have to be modifying the DLL for each change.

If someone has a guide or could explain it to me.

Thank you!

Answers

  • SanderDkSanderDk Posts: 116Member
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL
  • MendoNAVMendoNAV Posts: 4Member
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?
  • SanderDkSanderDk Posts: 116Member
    MendoNAV wrote: »
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?


    Yes, just create your function i your dll, and import it into NAV
  • MendoNAVMendoNAV Posts: 4Member
    SanderDk wrote: »
    MendoNAV wrote: »
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?


    Yes, just create your function i your dll, and import it into NAV

    I already have the DLL imported to NAV working correctly, what I wanted to know is if through C/AL code values can be passed to avoid having to modify, compile and paste the DLL in the NAV/addin folder every time I want to make a change. I don't know if this is possible.
  • SanderDkSanderDk Posts: 116Member
    yes it can but your DLL need to be developed to receive values.
  • krikikriki Posts: 8,638Member, Moderator
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
    NAV TechDays 2019: 21 & 22 November 2019, Antwerp (Belgium)
Sign In or Register to comment.