function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bikramjit DasBikramjit Das 

commandlink

I have a commandlink tag in my vf page where in redered I ahve added 3 profile so that logged in user with thoze profiles only can see the delete commandlink in the vf page but the strange problem is that for only 2 of them it is working , for the 3rd one it is not working. All have same object level access on that object. Please help on this
GovindarajGovindaraj
Hi,

I believe, Object level access doesn't affect the rendering in VF page.

Could you please post the VF page code ?

Thanks,
Govindaraj.S
Bikramjit DasBikramjit Das
 <apex:commandLink id="delId" value="Del" rerender="delId" rendered="{! AND(
                            AND ( 
                            
                            NOT(AND($Profile.Name != 'A' , $Profile.Name != 'B', $Profile.Name != 'C')) , 
                            
                            NOT(AND (obj.Record_Type_Name__c != 'A' ,obj.Record_Type_Name__c != 'B',obj.Record_Type_Name__c != 'C'))
                            
                            ),
                            
                            
                            AND (NOT ($Profile.Name != 'D'), (field_Api))
                            )) }" styleClass="actionLinkBlue" style="color:#015BA7;" onclick="delEntryJS('{!obj.rowNumber}');" />


This is the code, Here for profile C the rendered is not working for A and B is working as expected
Bikramjit DasBikramjit Das
@Govindaraj