veerle
10th March 2003, 16:09
Hi,
does anybody know, how I can start a session in display mode?
I customized the items session so in some cases the users has no access to maintain the item fields. In the detail session is there a form command to zoom to the Date Effective Item Data.
Is there a easy way to put off all maintain possibilities in the 'Date Effective Item Data' session? I have already changed the form command, so I use the start.session() statement.
Thanks,
Veerle
lbencic
10th March 2003, 18:21
Please fill out your Baan version - Baan IV and V handle this a little differently. In both cases, you can control session autorizations by user without code modifications. This requires that your users are not all super users.
In Baan V, look into the 'Authorizations Management System' sessions available on the Tools / User Management menu. You create roles for users, and each role can have individual session access.
In Baan IV, session authorizations are attached directly to users - under the Tools / User Management / Authorizations menus.
Hope that helps. If you need code and cannot use the authorizations, let us know what version. Code for displaying is also different per version.
veerle
11th March 2003, 09:28
Thanks for your reply, but it's more complex.
It's not always possible to give access rights on session level, it's dependent from own customized tables and some other parameters. I'm sure that I have to program the most things, but I thought that there should be one statement / function to make the session a display session in the program script, but I can't find such statement. At the moment, I use especially the disable.commands to change the access rights.
To make it also more clear, we work with the Reger version on a Windows NT platform.
Bye, Veerle
kammie
11th March 2003, 17:24
My suggestion would have been disable.commands(), but that's what you already using.
As far as I know, there is not a easier way to disable all the data manipulating commands.
NPRao
11th March 2003, 22:33
Veerle,
As Lisa mentioned you can set authorizations by using the Role Data either by - Session Authorizations by Session - ttams3132m000 or Table Field Authorizations - ttams3143m000.
There is no command like - disable.all currently in BaaN Tools.
NPRao
12th March 2003, 21:19
Alternative options -
group.1:
init.group:
if <condition/checks> then
enable.commands(dupl.occur, mark.occur, mark.delete, add.set, global.delete, modify.set)
else
disable.commands(dupl.occur, mark.occur, mark.delete, add.set, global.delete, modify.set)
endif
-OR-
field.all:
before.display:
if <condition> then
disable.fields(fattr.currfld$)
endif