PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WinDev Groupware made for you.
WinDev Groupware made for you.
Débuté par Tor-Bjarne, 03 juin 2017 19:21 - 7 réponses
Posté le 03 juin 2017 - 19:21
Hi,

After struggling with the PCSoft groupware, I finally abandon it, and decided to make my own.

In my current project (for a client) we want to restrict access, but managers can press F11 log in as administrator and disable access, then log inn as user again without restarting the app. Or a manager needs to press the [Only Admins] button he can do that in the same manner.

Now I want to share my cGroupware class with anybody that`s want it, as a part of "giving a little back" to this great community, :)

An small exedemo can be found Here... just unzip in a folder and run the executable file.

Info about the demo, it mainly containing the Admin and User users (and Admin and User groups), password is blank/Nothing on both.

F11 = Login/Change userid
F12 = Inspect screen (where you set or revoke access)

The only buttons that actually do something can be found in the system ribbon.

Might not be suitable for all, but perhaps good starting point if you want to write your own.

Features:

1. One class,One table in the analyze and 2 Windows (Win_Logon,Win_inspect) makes the wholde thing work.

2. You can change userID run-time, no need to restart app to change userID and rights

3. The Inspect screen/Window reads only controls for the window your in, not all - making it simpler to disallow controls "in this Window"


4. Farley easy implementation with your app and if you have existing usergroup/Users tables.
(I will/can write a short PDF Document describing how, if anybody is interested)

5. Written in WinDev 20, I`m on v22 and are using it here, so nothing is problematic about upgrading.
(WinDev 20 is the lowest Window version I have on this PC for the moment)

6. Since WinDev v22 lets you edit a screen I made it possible to change fonts, brushcolors etc. depending on user-group you are logged into.


7. Timed auto-logout or auto-logon as "other" user (perhaps with lower rights)



Some points/limitations of my groupware:

1. Unlike PCSoft`s solution a userid must exist in a group, and the group is actually what you set the rights for.
2. A Userid must be unique. You can not have same userid but in different groups.
3. When pressing F-something (Demo app uses F12) to get the inspect window the controls are read run-time.
4. It has bugs - Yes I also do bugs, not on purpose, but still.
5. I tried to keep the code clean, but some might not agree, I however personally hate statements like:
MySelf..Caption=(MySelf..Pushed?"Trace ON" ELSE "Trace OFF")
Not easy to see whats going on here huh?,... having said that, I copied the example from my own code :D but it`s just one place and in the test-project, not the groupware.

Now, it`s quite time consuming writing documentation, and if no one is interested I don`t :)

Please let me know if you are interested and wants some examples on how to load your usergroup/users into my system.

If you do use it and correct bugs or make smart changes, I would like to get a copy.

Anyhow enough said, here is the link to the Project

Cheers
Tor-Bjarne
Posté le 03 juin 2017 - 00:00
Hi Tor-Bjarne,

thanks for sharing this project.
It looks quit nice and simple to use.
Posté le 04 juin 2017 - 10:40
Hi Tor-Bjarne,

Thanks for your contribution.
I also had difficulties with groupware where the project had multiple configurations and also where the data resided on remote servers.
I need something like that but I do not feel up to it.

Thanks & regards
Noel
Posté le 04 juin 2017 - 17:31
Hi,

Thank you guys :)


I also made a (sort of) user manual that can be found HERE ...


And I made some small cosmetic changes to the Win_Inspect Window (and resolving a small bug) in the updated project (same link as before)


Cheers
Tor-Bjarne
Posté le 05 juin 2017 - 00:00
Hello Tor-Bjarne,

Thanks for your contribution both the Gpw Project and Documentation.

- Biju
Posté le 05 juin 2017 - 13:19
Hi,

Thank you Biju :)

Yesterday I removed the Worst typos from my short manual.

And today (As I`m implementing it in a v22 project I discovered a bug when changing an existing username) now corrected in the v1.2 that I put out on the server.

the cGroupware::Version contains (from v1.1), contains version of the class.

cheers
Tor-Bjarne
Posté le 06 juin 2017 - 13:23
Hello
I'm interested in your contribution where I can download it?
Thanks, victor
Membre enregistré
91 messages
Popularité : +1 (1 vote)
Posté le 16 juin 2017 - 14:11
Hello Tor-Bjarne

Thank you for your very useful contribution. I'm also interested in your open source project, could you tell me the link to retrieve it ? Thank you for your reply :)

Regards,

JC