Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
17
Erster Beitrag:
vor 4 Jahren, 8 Monaten
Letzter Beitrag:
vor 4 Jahren, 8 Monaten
Beteiligte Autoren:
Amal Murali, Al, Allard, issah, Markus K., Luiz Menezes

Hiding Menu options in Windev application

Startbeitrag von Amal Murali am 06.08.2013 05:22

Hello All;

I am facing some problem in Defining the rights on the menus using groupware.
I need to modify the rights of one user by disabling the buttons in the application.
By default the user group ware is set to default if i change it to invisible also it is not working.
How can i do that??

Plz help

Regards
Amal

Antworten:

Hi,

maybe you can use groups: http://doc.windev.com/en-US/?1010016&name=the_groups_controls&q=group

Greetings, Markus

von Markus K. - am 06.08.2013 06:18
Hello Markus Kohl;

Defining the rights on the menus using groupware.
I need to modify the rights of one user by disabling the buttons in the application.
By default the user group ware is set to default if i change it to invisible also it is not working.

Thanks in Advance;
Regards
Amal

von Amal Murali - am 06.08.2013 07:17
Its best to create different groups and assign them to the users, then you modify the rights of the groups. You can modify the rights of an individual but its a management nightmare.

If its not working, then you must be doing something wrong, take your time and go through the docs as shown below.

issah

von issah - am 06.08.2013 10:34
Hello Amal

Not really sure what you are asking but maybe this helps.
If a control has been set invisible by the groupware, it becomes inactive for interaction with the current user, but as the programmer you can still trigger it manually if you need to by using executeprocess().
In your case this would be executeprocess(MenuItemName,trtMenuOption)

Regards
Al

von Al - am 06.08.2013 13:18
Thank you all;

Beside this way is their a way that after the application is installed in a system can the supervisor user set separate rights to the different people who login to the application. That is is there a way to disable some menu buttons for those users by the administrator by administrator from the application.


Regards;
Amal

von Amal Murali - am 07.08.2013 04:40
Hello Amal

You really need to read the manual.
There is a very comprehensive user groupware package included in Windev that you can automatically include in your applications

Regards
Al

von Al - am 07.08.2013 11:42
Hi Amal,

Yes at runtime you can hide, show or gray menu items for different usergroups. It is done by control per window. So it you want you can create a user that sees an empty screen. If he has no rights at all.
Look at the user groupware. It is really easy. I all works great out of the box, just activate groupware for your app and you are set.

regards

Allard

von Allard - am 12.08.2013 18:28
Thank you Al;

I had gone through the user manual but could not find out a solution for the problem

Regards Amal

von Amal Murali - am 14.08.2013 05:06
Hi Allard;

I understand but i didnt understand activationg groupware??
Can you plz explain

Regards;
Amal

von Amal Murali - am 15.08.2013 04:58
Hello Amal

This is all explained fully in the Windev help - you will find it under "User Groupware" and there are pages and pages of detailed information.

Windev has two separate sets of groupware.
One is used to control access to the Windev IDE for developers using Windev to create software.

The other is for the USERS of the software when it is distributed and the users can define access right down to specific fields in windows.
The best way to experience it is to turn it on for your project from the "Workshop" option in the Windev IDE and run the option to "Set up User groupware" as "Automatic User Groupware" This will automatically create tables and groupware access to the application.

When you are familiar with that, you can decide whether to leave it as an automatic inclusion for your project or try starting it manually in your projects by using the "Custom user Groupware" option.


Regards
Al

von Al - am 15.08.2013 09:24
Hi

in version 18 it's page 141 of the tutorial. You can add the standard groupware or you can select custom groupware. If you select custom . All the screens are added to the project and you can modify. the screens

You can use the groupware in your software to display for instance a startup screen based on the user that starts the software.There are a lot of functions availeble to do these kinds of things.

But as Al states. Please look at the help for a complete discription. Or start with the tutorial for the basics. They state in the tutorial that you have should spent a few hours on it. If you don't you loose a lot of time and I must say they are not kidding.
In the box there is a book on wlanguage as well. This is great to lookat as well

Regards

Allard

von Allard - am 16.08.2013 08:05
Thank you all;

You all are telling about the groupware but i need to do it this way-
After logging in as Supervisor> Configure groupware>select user> modify rights> select the main window> from there i need to gray or inactive or disable buttons in the main window for the selected user


Regards;
Amal

von Amal Murali - am 21.08.2013 12:21
Hello Amal

Quote
Amal
After logging in as Supervisor> Configure groupware>select user> modify rights> select the main window> from there i need to gray or inactive or disable buttons in the main window for the selected user


That is exactly how the groupware works.

Can you tell us which version of Windev you are using. It makes a lot of difference to the answers you get. e.g. the groupware in V18 is totally different to that in V16

I am trying to be positive but from this post and your other posts, it sounds like you have little programming experience and lack experience in basic problem solving in terms of programing. It also seems like you are tackling a project that is beyond your current abilities and while the forum members will all try to help you, we can't train you from scratch.

Fabrice has a set of videos that will give you an excellent introduction to Windev and programming principles. The US distributor (see the sticky at the top of the forum main page) has videos and other materials available and Glen Rathke has some great training material on his site. I suggest that you invest some time and investigate the material on offer

Regards
Al

von Al - am 21.08.2013 13:38
Hello Al;

I am using Windev 18, You are right I am new to Windev and i would like to explore more in programming.
I dont like to wait reading Manual so I started programming and I hope you all will be there for support.

Thank you;
Amal

von Amal Murali - am 22.08.2013 06:52
Hello Amal

"(insert your own deity) helps those who help themselves" is a common saying in many cultures.

What that means is you have to do the hard work of learning Windev yourself - read the manuals & work through the examples and training materials provided.


Regards
Al

von Al - am 22.08.2013 10:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.