NirajKakodkar
22nd February 2007, 19:01
Hi Experts ,
Is there any direct way in Baan by which we can open a password dialog box at the start of any session.
For eg. Take some session tccomxxxxmyyyy
But wen i run that session , a password dialog should open and only if validation is done the required session should get opened . Is there any way for that ?
Thanx in advance .
Regards,
Niraj
bigjack
22nd February 2007, 19:11
hi,
Try exploring the sessions authorisation module. You can define user level authorisations for a session/module/package.
Bye
NirajKakodkar
23rd February 2007, 12:31
Hi ,
Thanx Bigjack .
I know about session authorisation , but well my question is different .
I want that dialog box to appear ..
Thanks n Regards,
Niraj
ahmer91
24th February 2007, 10:09
you mean popup login screen before loading every session ???
NirajKakodkar
26th February 2007, 07:06
Hi ,
I am sorry i might not be clear in explaining what is my requirement ..
What i want is as an when you run any session say for eg. tdslsxxxxmyyy
a popup asking for username and password should apear same like the one appears when we restrict GTM , or password protect it .
Hope i am clear this time . I guess i have almost done it but for that i built a new session i wanted to know wether there is some direct way . Waiting for the reply ..
Thank You in advance ..
Regards ,
NIraj
smallboy
28th February 2007, 16:58
Hi to all,
you can use a function that creates a small login dialog where user can puts name and password. I'm sending you an example of what I mean. I suggest you to put this function in a dll for better reuse.
Hope this is what you are looking for.
Regards
NirajKakodkar
1st March 2007, 07:02
Hi ,
Thank you smallBoy ...
I will try using this ..
Regards,
Niraj
en@frrom
1st March 2007, 12:31
Hello Smallboy,
I looked at your little script for login dialog. First of all I get a few errors, for instance dscpasswdfield is a non-existant dsc-type, at least in Baan 5.0B. Also the evt.keypress.key CLOSE_WINDOW is not a valid type in Baan 5.0B.
But except for that, this only creates a dialog box, but does not yet check the inputted login/passwd entered, which is the main point here...
I mean this object you create you can also do easily by just creating a new session with 2 fields, which will be invoked whereever applicable, but again how do you validate the input...?
Eli Nager
smallboy
1st March 2007, 15:33
Hi to all,
I' ve tested the script on Baan IV and in this environment the dscpasswdfield is defined. I suppose that for the Baan 5 you should use something like
d_e.pass = create.object(DsCField, d_win,
DsCpasswordField, True,
DsNx, 100,
DsNy, 50,
DSNwidth, 100,
DsNheight, 20
)
For the CLOSE_WINDOW event this is a define in the script
#define CLOSE_WINDOW 1027
It simply determines if the user clicks on the X button in then top-right corner of the window.
To clarify, the function simply creates the dialog for login/password but does not check the input. If you want to do this, add the code on the EVTPUSHBUTTON for ok button. I can not be more specific because I don' t know against what you wanto to validate (at OS level, or in Baan, or a server on your net...)
And of course you can do it with a normal session.
Hope this helps
Regards
en@frrom
2nd March 2007, 15:40
Our Baan login are the same ones as our WIN network login. So I would love to have a way to check it with either Baan or WIN user/passwd details. Just don't know how to do that...?
sushil
16th October 2007, 11:32
Hi,
I Tried the script myself - it works great.
Thanks for Smallboy
Regards,
Sushil Kumar Mudaliar