drezzzz
2nd June 2009, 21:44
Hi all,
I have a 3GL script that "batch change" users persmissions. I would like to make the "Convert to runtime" directly in the script. Is there a function that does that (or another way)?
thank you,
fred
NPRao
2nd June 2009, 21:54
Fred,
What kind of changes is your program doing?
You can use the standard tools session in a job -
Convert to Runtime DD (ttams2201m000)
Use this session to convert the user data and role data to the run-time data dictionary. To make the user data and role data effective, you must restart Tools. The following user related data is dumped in the ${BSE}/lib/user/<user> file:
User data
Data in the user data template
Language dependent data
Company dependent data
Default users settings
Data in the terminal authorization template
The role related data is divided over the following authorizations:
The session authorizations and the Library authorizations are dumped in the ${BSE}/lib/roles/session/<first char>/role/ file.
Database authorizations are dumped in the ${BSE}/lib/roles/db/<first char>/role/ file.
drezzzz
2nd June 2009, 22:03
I work on modules and sessions authorizations. I needed to denied temporaly some session to some user and, I wish to use the same script to completed a part of my PHP user interface which manage authorisation (again sessions and modules)...
drezzzz
3rd June 2009, 15:45
I understand nobody ever heard of such 3/4GL function... I will make a job and call it in my script then, not that clean but it will work..
Thank anyway, NPRao, "you the guy !"
Fred
zardoz
3rd June 2009, 15:51
An alternative to the job is to call via AFS the session ttams2201m000
drezzzz
3rd June 2009, 15:58
Hi zardoz,
I am not familiar "at all" with the function server. Could you explain a bit the general concept (even if I know it is not the good place...) ?
Which language is used ? Platform ? Compiler ?
zardoz
3rd June 2009, 17:44
Just use the baan tools; here are all the informations you need:
http://www.baanboard.com/baanboard/showthread.php?t=7251
ashu2814
4th June 2009, 06:50
I think tools sessions cannot be called through afs. :confused:
zardoz
4th June 2009, 09:41
Why not? All sessions can be called thru AFS (some session are not designed to works in AFS, but they are exceptions).
In the past I have done an AFS that calls ttstpdeliverp to do the export of the software.
drezzzz
4th June 2009, 22:05
Thanks guy, I am in the process of reading about afs.
Still, it is a pain not to be able to just "commit to runtime" automatically in a 4GL program.
Anyway, I will learn another new Baan concept...
drezzzz
11th June 2009, 22:40
I do not quite understand how afs works yet, so if anybody have another solution, it would be greatly appreciate.
Thank all.
Fred