Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Processing inBackground

Former Member
0 Likes
457

Hi all,

I have a requirement where the user enters start date and end date in the selection screen and if the number days is more than 30 i need to run that report in background if the number of days is less than 30 days then i need to run in foreground.

How to run the report in background?

Thanks and regards,

Ram.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
431

Hi

In the AT SELECTION SCREEN event

Write the logic to get the number of days

If number of days gt 30 then

give an error message saying 'Interval is greater than 30 Please process in background'

This will enable the user himself to process the program in background

4 REPLIES 4
Read only

Former Member
0 Likes
432

Hi

In the AT SELECTION SCREEN event

Write the logic to get the number of days

If number of days gt 30 then

give an error message saying 'Interval is greater than 30 Please process in background'

This will enable the user himself to process the program in background

Read only

0 Likes
431

Hi Dominic,

That was a nice suggestion, but iam not sure if the customer would accept the same. I will suggest this and see what the customer has to say.

In the mean time is there a way that we can provide a message and execute the report in background instead of allowing the user to run the report in background?

Thanks and Regards,

Ram.

Read only

aakash_neelaperumal2
Active Participant
0 Likes
431

hi,

Create a new report and then check for the conditons during the execution of your parent report and then if the condition is satisfied submit the second report in back ground using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE.

if not then just SUBMIT the child report...this is the only way to do it I feel.

Read only

0 Likes
431

Hi Akash,

That is a very helpful answer. I will try this and let you know.

Thanks and Regards,

Ram.