assassinator
7th May 2008, 06:03
I wonder "Make Job" is how the jump.

Now one session has 4 reports, Group1(2), Group2(2). These is one field(value is 'Yes'/'No') in the form input to control. When 'Yes' choose group1's reports, when 'No' choose group2s'.

I write some script. But when I make it to Baan Job, on the problems. Because "Make Job" stores form input, when it runs, it would skip check field input(like:'check.input', 'after.input', etc) and Button click(like:'choice.cont.process-on.choice', 'choice.create.job-on.choice','choice.run.job-on.choice', etc).

So I wonder, I make a job run, how can I control report group change before excute(rprt_open()). In other words, before excute(rprt_open()) where I write script would effective.

ks_ks_
7th May 2008, 06:15
Hi,

I am not sure though, but you can try with reportno = xxx

assassinator
7th May 2008, 07:57
Hi,

I am not sure though, but you can try with reportno = xxx
:)
Yeah, I know this method would work and now I use this to run Job. But in check.input, I define some data. This session not only to make job, but also can be used manually. So I think take 2 report group should be better.

mark_h
7th May 2008, 15:12
Use something like the below:

before.program:
if job.process then
....do your commands...
endif

This will only execute when it is run in a job. You can use this in other events also.

assassinator
8th May 2008, 04:21
Use something like the below:

before.program:
if job.process then
....do your commands...
endif

This will only execute when it is run in a job. You can use this in other events also.

OK,thanks. Let me try.

assassinator
13th May 2008, 09:06
Use something like the below:

before.program:
if job.process then
....do your commands...
endif

This will only execute when it is run in a job. You can use this in other events also.


Yeah! This is the right way, I have to solve the problem.

Too grateful to mark_h!

avpatil
13th May 2008, 23:34
You can also do check.all.input before executing the choice.

assassinator
14th May 2008, 04:13
You can also do check.all.input before executing the choice.


"before executing the choice"? How to write code?

I already tried in "choice.cont.program" and "choice.print.data"

avpatil
14th May 2008, 15:26
All you need to do is in

choice.cont.process:
before.choice:
check.all.inputs()

This will execute all check input section. If something fails then the choice won't get executed.

Arvind Patil

assassinator
15th May 2008, 04:30
All you need to do is in

choice.cont.process:
before.choice:
check.all.inputs()

This will execute all check input section. If something fails then the choice won't get executed.

Arvind Patil

Thanks. But I had tried this method, it didn't work. Just as you said, the choice won't get executed or the check.all.inputs() didn't work.