baanjim
18th November 2014, 20:18
Hi,
We have a problem with the suspend() fonction in WebUI.
We must look for a file (generated by a ECM software) in a directory. We use the suspend(10000) function in a for loop (in order to repeat x*10sec). When the file is present, we break the loop and continue our process.
In Worktop it's ok. During the loop we can use other sessions (run GTM etc...)
But in WebUI all the processes are blocked (The mouse pointer is blocked in Timer). So we must wait for the end of the loop. :eek:
What can be the issue for this problem? How make this process run independtly?
Do you have any idea?
Thank you for your help.

george7a
19th November 2014, 12:27
Hi,

You mean you cannot work in WebUI (open new session for example) while your process is still waiting for the file, right?

- George

bhushanchanda
19th November 2014, 13:56
Hi,

I guess this Thread (http://www.baanboard.com/baanboard/showthread.php?t=64639) will solve your problem.

baanjim
19th November 2014, 19:59
Hi,

I guess this Thread (http://www.baanboard.com/baanboard/showthread.php?t=64639) will solve your problem.
:D
With a simple code (just a suspend function called) it's seems to be OK even in WebUI.
I will try with my file selector...
Thank you very much for your answer :)

baanjim
20th November 2014, 18:34
Hello,
For a simple test it's OK
Now my problem is that i have 1 main session wich call a sub-session with a start.session.
If I put the ignore.session function in the second session it doesnt work:
1- in before program it stays in sleeping mode
2- in a continue button process it doesn't let me open other sessions.

I tried to put the ignore function in the main session but it doesnt work.

Any idea to help me?