david7
21st April 2008, 16:28
Hello,

I have two BaanIV servers with webtop installed on both. I wrote a script that my company would like to launch automatically whenever BW is activated. The company has chosen the "User Start-up sessions" way to do so. So I have defined my session to run at startup and everything is working great for BW.

Now the for Webtop problem:
In Server 1, the startup session is not activated at all (which I like! I do not want to run my session to webtop users). In Server 2 the session is been activated! I looked at both servers and I could not find the differences!

My Questions:
1) Is there a setting somewhere to disable the startup sessions in webtop?
or,
2) Can my script know that it is running from webtop and exit directly?

- D7

NPRao
21st April 2008, 18:49
2) Can my script know that it is running from webtop and exit directly?

David,

Refer to the Tools function - tc.is.thin.client() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_runtime_dictionary_information_tc_is_thin_client)

Here is a simple piece of code for a 3-GL program:

if tc.is.thin.client() then
exit(0)
endif
Edit: Found some more info on the knowledge base at Baan support site

SolutionID 202832
Solution Description Cannot log in Baan using Webtop if the user has Startup sessions defined (Maintain Startup Sessions, ttaad2106m000).
SOLUTION DESCRIPTION:
Modification is made in the bshell *), now no errors are reproted anymore, but startup sessions are ignored.

Starting these startup sessions autonomously by the bshell does not fit into the Webtop protocol which is a request/response protocol.
Therefore a modification is made in the bshell to ignore the startup sessions in case of Webtop.

So startup sessions cannot be used in combination with Webtop, they are ignored and no errors are reported.
To implement the startup sessions to function properly for the Webtop this is an future enhancement.

*) This modification is available from the following porting set versions:
BaanIVc: portingset 6.1c.07.09 *)
BaanERP5.0c: portingset 7.1d.10 *)
ERP LN6.1: portingset 7.6a.03 *)

david7
23rd April 2008, 12:00
Thank you.

I will try it and get back to you if it did not work.

- D7

myssk78
24th February 2009, 13:29
Use the funtion tc.is.thin.client( ) and check if session is starting in a webtop. If yes then skip your code, else allow it to execute.

david7
24th February 2009, 14:32
Hi,

Thank you for you reply. I have tried that and got the same message!

I just remembered that I got this answer before and forgot to reply.

Sorry

-D7

george7a
24th February 2009, 14:45
I have merged the two threads.