bstecche
18th March 2006, 00:46
I create a job called 'ACQ' and i want to activate the job directly, i mean that i want to run a session that activate directly that job ACQ, is it possible?
Thanks
Ba
bdittmar
18th March 2006, 11:09
I create a job called 'ACQ' and i want to activate the job directly, i mean that i want to run a session that activate directly that job ACQ, is it possible?
Thanks
Ba
Jobs can be activated by crontab with rc.startjob <JOBNAME>.
Regards
bstecche
18th March 2006, 23:33
Yes i know but i would like to start it in Baan, for example from a custom menu i want to click an a session that activate the run job of my job.
Thanks
en@frrom
20th March 2006, 18:03
You can try doing it using AFS. I have to warn you however, that using AFS for Tools-sessions is not always 100% waterproof. I have had things that just wouldn't work...
NPRao
20th March 2006, 22:40
bstecche,
bdittmar gave you the answer. You can use the function - set.list.values.for.field() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_set_list_values_for_field) and dynamically build the list of the jobs for a company, and have a button "Activate Job" on the session and use run.prog() [shell() is depreciated] to invoke the rc.startjob shell script and start the job.
Note - Check if the above function is available in your BaaN Versions. If not, search for the existing threads on the forums to find the code to build a down down listbox.