• Mitchell Carlson
  • NEWBIE
  • 15 Points
  • Member since 2017
  • Sr Business Analyst / Systems Admin

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
Hello,
I am trying to display a message to the user based on the values selected in a record's picklist field. The following code works correctly for single values, until multiple values are selected in the picklist. When multiple selections are made, the code is not displaying the desired message see bolded code snippet below:

<apex:page standardController="Account"
           sidebar="false"
           showHeader="false"
           showChat="false">

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has had prior Technology Issues." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Technology Issues'}" />
                  
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client is Detail Oriented." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Detail Oriented'}" />
                  
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client is Price Sensitive." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Price Sensitive'}" />

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has experienced Multiple Transitions." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Multiple Transitions'}" />                  
 
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client had prior Service Issues." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Service Issue'}" />                                                                   

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client had Prior Return Accuracy Issues." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Return Accuracy Issues'}" />                  
  

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has multiple Client Treatment Alerts. Please reference the Client Treatment field for more details." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c != 'Prior Return Accuracy Issues; Prior Service Issue'}" />   

</apex:page>

Any thoughts on how I can incorporate multiple selected values scenarios into this design? I have tried changing the semi-colon to a comma, but that also didn't work. I feel like I have exhausted my research options. I would appreciate any feedback!

Thanks,
Mitch

Hi, 

I am new to apex and visual force, but have picked up somethings from helpful posters online. I am needing some help in clearing search results. I have written the Visual Force Page code and the Apex Class controller code to contain a "Clear" button, but when clicked the clear button only clears the text input field on the search and not the search results grid. Any thoughts on how to expand the Apex Class to also clear the search results?

Visualforce Markup:
<apex:page controller="search" >  
    <apex:form >
        <apex:outputLabel style="font-weight:bold;" value="Search By Client (Full Name or Email):" >
        </apex:outputLabel>
        &nbsp;<apex:inputText value="{!textData}"/>
           &nbsp;<apex:commandButton value="Search" action="{!result}"/> 
             &nbsp;<apex:commandButton value="Clear" action="{!clear}"/> 
           <br>
           </br>
        <apex:pageBlock >
              <apex:pageBlockTable value="{!opportunity}" var="opp">
                   <apex:column >
                        <apex:facet name="header">Full Name</apex:facet>
                        {!opp.Full_Name__c}
                   </apex:column>
                   <apex:column >
                        <apex:facet name="header">Technician</apex:facet>
                        {!opp.Technician__c}
                   </apex:column>
                  <apex:column >
                        <apex:facet name="header">Opportunity Year</apex:facet>
                        {!opp.Opportunity_Year__c}
                  </apex:column>
                  <apex:column >
                        <apex:facet name="header">Stage</apex:facet>
                        {!opp.StageName}
                  </apex:column>
                  <apex:column >
                        <apex:facet name="header">Status</apex:facet>
                        {!opp.Status__c}
                  </apex:column>
                </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>    
</apex:page>

Apex Class:
public class search 
{

    public PageReference clear() {
        textData = '';
        return null;
    }

    public string textData{get;set;}
    public List<Opportunity>Opportunity{get;set;}   
    public PageReference result()
    {
        Opportunity= [Select Full_Name__c, Technician__c, Opportunity_Year__c, StageName, Status__c from Opportunity where Full_Name__c Like :'%'+textData+'%' OR Client_Email__c Like :'%'+textData+'%'];    
        return null; 
    }
}

Thanks for your consideration!

Hi, I am trying to download an app from AppExchange to complete a trailhead exercise.

"Extend your reporting strategy with AppExchange" - Admin Beginner

However, when I attempt to download it it is setting the "Organization" to my company's production org and not the org related to my trailhead playground. Any idea how to change where that organization is mapped? I tried logging in as my playground user ID and password to AppExchange and login works fine, but it is still downloading to the incorrect org... Thanks!
 
Hello,
I am trying to display a message to the user based on the values selected in a record's picklist field. The following code works correctly for single values, until multiple values are selected in the picklist. When multiple selections are made, the code is not displaying the desired message see bolded code snippet below:

<apex:page standardController="Account"
           sidebar="false"
           showHeader="false"
           showChat="false">

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has had prior Technology Issues." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Technology Issues'}" />
                  
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client is Detail Oriented." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Detail Oriented'}" />
                  
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client is Price Sensitive." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Price Sensitive'}" />

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has experienced Multiple Transitions." 
                  severity="info" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Multiple Transitions'}" />                  
 
<apex:pageMessage title="Client Treatment Alert"
                  summary="This client had prior Service Issues." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Service Issue'}" />                                                                   

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client had Prior Return Accuracy Issues." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c = 'Prior Return Accuracy Issues'}" />                  
  

<apex:pageMessage title="Client Treatment Alert"
                  summary="This client has multiple Client Treatment Alerts. Please reference the Client Treatment field for more details." 
                  severity="error" 
                  strength="3"
                  rendered="{!Account.Client_Treatment__c != 'Prior Return Accuracy Issues; Prior Service Issue'}" />   

</apex:page>

Any thoughts on how I can incorporate multiple selected values scenarios into this design? I have tried changing the semi-colon to a comma, but that also didn't work. I feel like I have exhausted my research options. I would appreciate any feedback!

Thanks,
Mitch

Hi, 

I am new to apex and visual force, but have picked up somethings from helpful posters online. I am needing some help in clearing search results. I have written the Visual Force Page code and the Apex Class controller code to contain a "Clear" button, but when clicked the clear button only clears the text input field on the search and not the search results grid. Any thoughts on how to expand the Apex Class to also clear the search results?

Visualforce Markup:
<apex:page controller="search" >  
    <apex:form >
        <apex:outputLabel style="font-weight:bold;" value="Search By Client (Full Name or Email):" >
        </apex:outputLabel>
        &nbsp;<apex:inputText value="{!textData}"/>
           &nbsp;<apex:commandButton value="Search" action="{!result}"/> 
             &nbsp;<apex:commandButton value="Clear" action="{!clear}"/> 
           <br>
           </br>
        <apex:pageBlock >
              <apex:pageBlockTable value="{!opportunity}" var="opp">
                   <apex:column >
                        <apex:facet name="header">Full Name</apex:facet>
                        {!opp.Full_Name__c}
                   </apex:column>
                   <apex:column >
                        <apex:facet name="header">Technician</apex:facet>
                        {!opp.Technician__c}
                   </apex:column>
                  <apex:column >
                        <apex:facet name="header">Opportunity Year</apex:facet>
                        {!opp.Opportunity_Year__c}
                  </apex:column>
                  <apex:column >
                        <apex:facet name="header">Stage</apex:facet>
                        {!opp.StageName}
                  </apex:column>
                  <apex:column >
                        <apex:facet name="header">Status</apex:facet>
                        {!opp.Status__c}
                  </apex:column>
                </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>    
</apex:page>

Apex Class:
public class search 
{

    public PageReference clear() {
        textData = '';
        return null;
    }

    public string textData{get;set;}
    public List<Opportunity>Opportunity{get;set;}   
    public PageReference result()
    {
        Opportunity= [Select Full_Name__c, Technician__c, Opportunity_Year__c, StageName, Status__c from Opportunity where Full_Name__c Like :'%'+textData+'%' OR Client_Email__c Like :'%'+textData+'%'];    
        return null; 
    }
}

Thanks for your consideration!

A visualforce search page where the user can perform wild card search for candidates using their location and or skill set
All,

I have seen several other posts on "Cannot Install NNNNNN: Missing Organization Feature:" but my situation is in the Trailhead Module on Making Better Decisions with Analytics" we are asked to install the Salesforce Community Management Package for Communities with Chatter. When I do (for either just the sysadmin or for all users) I get the errors:

Missing Organization Feature: Networks
Missing Organization Feature: NetworksEnabledOnce

I have already created three different communities, so everything is working there, but when I try to install this app I keep getting this error. I do NOT have an object named "network" or "networks" - but am not sure if that matters as the install error above (is not that verbose.)

Should I just create a custom object named "Networks"? or would I probably miss something in the setup that will still cause the install to fail?

Any and all help appreciated - this really slows down my studying - SF should be monitoring these more closely...