priyanka pawar
29th April 2013, 11:03
Hello,
While running session ,i am calling another sub session.
Now I wanted to hide sub session code from task bar.
Is there any setting or coding to this.
Thanks in advance.
Regards,
Priyanka
mark_h
29th April 2013, 15:40
Not sure about LN, but in 4c4 I use the wait and activate for another session. This session does not appear on the windows taskbar below - only the calling session.
priyanka pawar
30th April 2013, 07:03
Hi Mark,
Thanks for reply.
Actually my question is to hide session code.
Kindly find the screenshot, for more information.
Gurus waiting for your response.
Regards,
Priyanka
rahul.kolhe22
30th April 2013, 07:41
Hi Priyanka,
Can you please explain the reason for which there is the need to hide the session code.
May be by knowing the reason someone on the board can suggest some workaround.
Kind Regards,
Rahul
priyanka pawar
30th April 2013, 08:28
Hi Rahul,
Actually, we need to give the users Run Program access for some reason.
We have a session, for which the user needs to enter a password and it redirects to other session after entering the password.
Now, if the user knows the session code of the main session he can directly log in to the session using run program.
I know, there can be way around's for this and we have implemented it too, but you never know, any cookie can crumble in BAAN ;)
mark_h
30th April 2013, 14:20
We wrote our own version of the run program. We use DEM flows so the requirement was the main session must be on the DEM flow. If not they cannot run it. Just using DEM's baan grants a lot of access to sessions, at least in 4c4, so using the baan run program needed to be elminated. So we wrote our own version. So if I wanted to I could elminate any program I wanted to from the run program. The program actually uses a table and you can see what sessions users run and it provides a history for them. There is a thread on this forum that helped me develope it. Below is the code that launches the provided session name.
function run.session()
{
long child.pid, old.mwindow, new.mwindow
if not isspace(sess.name) then
old.mwindow = current.mwindow()
new.mwindow = create.mwindow("Run Prog",DSPIXELBASED,DSNORMALSTATE)
change.mwindow( new.mwindow )
child.pid = act.and.sleep( sess.name )
if child.pid then
set.pgrp( child.pid, child.pid )
grab.mwindow( new.mwindow, child.pid )
reactivate( child.pid )
endif
change.mwindow ( old.mwindow )
destroy.mwindow( new.mwindow )
endif
}
Of course there are other routines to validate the session name before running it, but this is the main piece of code.
rahul.kolhe22
30th April 2013, 15:00
Hi Priyanka,
You can try creating rectangular object and placing it exactly at the place where session code is displayed. But again you will have to handle conditions when the session is re-sized or maximized.
I believe that just hiding the session in the status bar will not be sufficient.
Reason: We can have a set command to display the session code in the Window Title. So as far as UI is concerned the status bar and the Window title both should be taken care of.
Apart from this there are many possibility for the user to know the session id from trace file or any log.
As per my understanding you are invoking this session once the user enters correct password. Hence the password validation session will always be the parent process, which can be added as validation else quit from the session.
Hope this helps..
Kind Regards,
Rahul
priyanka pawar
12th May 2013, 09:10
Hi Mark,
Thanks for your reply..
But my requirement was something different and i had found solution on it.
Once again for ur quick response.
Regards,
Priyanka
rahul.kolhe22
13th May 2013, 07:57
Hi Priyanka,
Can you please post the solution you found. It can help the other members on the board to use similar solution in case they have similar requirement.
Thanks and Kind Regards,
Rahul