Hi ,
I have menu item 1 and menu item 2.
I want to visible menu item 1 for xxx company and menu item 2 should not display in that xxx company.
Hope it is possible using security key.
If anyone knows about this pls explain.
Thanks,
Maria
Hi ,
I have menu item 1 and menu item 2.
I want to visible menu item 1 for xxx company and menu item 2 should not display in that xxx company.
Hope it is possible using security key.
If anyone knows about this pls explain.
Thanks,
Maria
Hi,
You can’t manage the visible property in the menuItem level but you can test the visible property of the object that uses your menuitem by using the curext() value (returns the current company)
ex for a button: set its autodeclaration property to yes and test you company in the run() method of your form (for exemple):
if (curext() == company1)
{
YourButton1.visible(false); => refers to menuItem1
YourButton2.visible(true);=> refers to menuItem2
}
regards,
Thomas
Thanks for your reply.
I want to visible/hide the menu item in content pane based on the company.
Hi mariaa,
Regarding this issue, create a new security key and assign that security key to
menuitem 1 and menuitem 2 , after that just create a new user group and in the permissions
for that user group make the security key visibility to No access…
assign this user group to the users to whom you want make menuitems invisible…
But this can be enabled or disabled for the particular user’s.
I need to disable for all the users in the company. It should not be in the user level. it should be in the company level.
Even as of now, if I dragged all the users in the xxx company. it may looks work. but in future if any other user added newly and he/she is not added in this user gp permission then problem will come.
So is there any possiblities to hide/unhide based on the company level?
Thanks for your reply.
Can you please explain me how?
I meant how to set roles for security key?
Create a user group for all such things that you want to apply to all users - when assigning new users to user groups (which you have to do anyway), you’ll just add them to this new group.
Incase same users have access for multiple companies, then ?
For ex. I have access for xxx and yyy company then it will not work properly.
create an parametertable.
insert 2 NoYesId fields.
(create a findMethode in your parametertable)
in the INIT-method of the form put the code:
use your findMethode or select the 2 noYesId in parameterTable
YourButton1.visible(Parameter.field1) //(first NoYeseId);
YourButton2.visible(Parameter.field2);=> refers to menuItem2