You need to sign in to do that
Don't have an account?
Andrea Sloan
Hiding part of a table for specific users
Part of my information within my Visualforce page applies to a subset of users and the other part applies to all users. I'm trying to avoid having to create two VisualForce pages where I would provide access to some users to one VisualForce page and access to the other users to the second page seeing that part of my VF table applies to all users. Can specific permissions be applies to one table for a specific Public Group of users and the other table to another Public Group? If so, what would the coding be and where within my table would I put it in?
Please copy the below code into your controller class, that should work.
Hope this helps !!!
Thanks,
Gaurav
All Answers
Create one field in user it's check box .
query field from user to apex class getuserid()
user u = [select activetablefield from uder whare id= : getuserid()]
Render u.activetableapi = true ;
Regards,
HArish.R.
I'm sorry but your code is completely foreign to me. I'm a salesforce adminstrator and don't know any of these development terms. I don't know which are the generic words you put in and what I should replace them with. For example, you put in the word "object" but I'm dealing with a form where data entered in my form populates into a report so it has nothing to do with objects. Allso don't know what "Alise" is or Groupshow. Is there a way I may be able to speak with you? Do you have a Skype access that perhaps I could share my screen with you and show you the code I have? I don't know how to set up a controller and call it from my VF page. I'm sure what I need to do may not be much but I'm lost in the order of this and the syntax.
You can go for create filrd in user object it is best way or cretaecustom setting object in your org .
And how many tables you have now and how many users is having to acess this page .
Regards ,
Harish.R
Harish.rao.salesforce@gmail.com
As I said, the permission must based as to whether or not users belong to a psecific Public Group. I cannot tag the permission at the user level and have to do this each time I get a new user as I already ahve a rule that determines this by placing the correct users to a specific public group when I sign them up. There could be 10-15 users needing access to one table and 20 or so to another and 10 or so needing access toboth. But since what I need is based on whether they belongto a Public group then it really doesn't matter how many users there are. I'm not doing this at the user level. It's way too much maintenance.
How were you thinking of doing this as a custom table? I've never done this and would need an example.
i wasn't able to find you as active on Skype to send you a Contact invite. Maybe you coudl try adding me in. My ID is : ASloan@abercrombiekent.com
thank you!
Please copy the below code into your controller class, that should work.
Hope this helps !!!
Thanks,
Gaurav