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
0
Comments
Peter
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