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
Kumar5Kumar5 

Trying ot rendering with two profiles

Hi Team,

please help me the rendering with two profiles first column should not availble for two profiles and secon should n


            
             <apex:column rendered="{!NOT (isProfile1 || isProfile2) }">
                <apex:facet name="header">Service </apex:facet>

                    <apex:inputField value="{!oppEnd_Date__c}" id="End_Date" style="width:130px" />

            </apex:column>
             <apex:column rendered="{!OR (!isProfile1 || !isProfile2) }">
                <apex:facet name="header" > Partner</apex:facet>

                    <apex:inputField value="{!opp.Partner__c}" id="Partner" style="width:130px"  />
                </div>
            </apex:column>

Thanks for your help in advance.

Thanks,
Kumar
Best Answer chosen by Kumar5
Narender Singh(Nads)Narender Singh(Nads)

Hi Kumar,
Make sure that the values of isProfile1 and isProfile2 are set rightly. I tested the logic by making my own VF page and its working fine.
I might be able to help you better if you could just share the code.

 

All Answers

Narender Singh(Nads)Narender Singh(Nads)
Hi Kumar,
First column condition seems fine.
For second column use try this:
<apex:column rendered="{! if(isProfile1 || isProfile2, true, false) }">
</apex:column>

Let me know if it helps.
Thanks! 
Kumar5Kumar5
Hi Narenda,
Thanks but it is not working, it is showing to other profiles also
Narender Singh(Nads)Narender Singh(Nads)

Hi Kumar,
Make sure that the values of isProfile1 and isProfile2 are set rightly. I tested the logic by making my own VF page and its working fine.
I might be able to help you better if you could just share the code.

 

This was selected as the best answer