List of functions in a codeunit

TomKTomK Member Posts: 4
edited 2004-12-12 in Navision Attain
Hi all

I'm creating something for a customer to schedule tasks. Those tasks are specific functions of a codeunit. To give the customer the possibility to schedule tasks himself, I want to give him a form with an overview of all the functions of the chosen codeunit. In this form he can select witch function he wants to schedule.

Does anyone know if there is any possibility to give this overview of functions?

Thanks!!

Tom

Comments

  • pdjpdj Member Posts: 643
    It is not possible, but you can't execute them dynamically either so you will have to hardcode it per codeunit as well.
    Regards
    Peter
  • g_dreyerg_dreyer Member Posts: 123
    pdj is correct.

    You are better off creating separate coduenits for the different functions.
    These separate codeunit can be 'wrappers' for calling the specific functions in your other codeunit.

    It might be good to have a standard name for these codeunits (or a standard name in the version number), so that it's easier for you to do a lookup to the object table, when you want to add a new scheduled task.


    But by now you should have realised that this would be just as easy as having a table with all the functions, then have a big 'case' statement in the onRun trigger of you codeunit accepting you table name as the parameter, calling the right function.

    Cheers,
    Gus
Sign In or Register to comment.