jayugandhi
24th July 2014, 06:47
Hi all,
Is there any mechanism in LN(fp9) by which if user login to the worktop and a 3gl executes immediately after it.?
bhushanchanda
24th July 2014, 07:38
Hi,
What does the 3GL do? One way is to set the configuration in Worktop/WebUI to run the 3GL upon logon or you can use the Standard Functionality of Startup Program though I have never tried it. Or you can use Mask functionality.
Here's one related Thread (http://www.baanboard.com/node/1796)
jayugandhi
24th July 2014, 08:02
Hi Bhushanchanda,
my 3gl is containing a code like -
if any of the component is in VRC ="Test" for more than 1 day than delete it.
so I need to check evry time when user logs in to the system.
bhushanchanda
24th July 2014, 08:05
Hi,
In that case, why dont you add the 3GL in Job Mode. Create a simple session write your 3GL script in before.program and add the session to Job. Now, you can schedule your job on Daily basis to check it.
Or you can directly create a bat file which will execute the 3 GL and add that in Task Scheduler.
jayugandhi
24th July 2014, 09:30
Thanks Bhushanchanda. your solution works nicely.
I was not aware about job session.
jayugandhi
24th July 2014, 14:14
Hi Bhushanchanda,
defined Job is successfully works but after activating a job, job session remains open. is there anything to set that after activating a job it runs in a background. because it is showing process till the job execution time.
bhushanchanda
24th July 2014, 14:19
Hi,
You can use activate("o3glprogramname") in before.program and kill the session using abort()
Before using abort, write
message("Job Executed Successfully")
job.process.error = false
jayugandhi
24th July 2014, 14:58
Hi,
I want that that standard job session to be closed after clicking on activate button. but it remains open and appears as a processing.
mark_h
24th July 2014, 15:04
Moved to the correct forum. Code and Utilities is a place for you to share code from solutions you developed.