• LindaKat
  • NEWBIE
  • 10 Points
  • Member since 2013
  • Sr Salesforce Administrator
  • Digitalglobe

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 7
    Questions
  • 6
    Replies
For the module "Customize Your Login Process with My Domain", I am unable to add a custom domain in my developer org because there is no New or Add button.  I am a system administrator and I don't see any Administrative Permission on the System Admin profile that would need to be checked to do this.   Here's what I see when I click on My Domain:
User-added image
 
I completed the entire samples on ContactList.vsp as directed, and with no Problems but after Saving it many times, the Pagination does not show on preview.  Please let me know if you see any errors.  All the code snippets were copied from the Trailhead Module.  Here's the code:

<apex:page standardController="Contact" recordSetVar="contacts">
    <apex:form >
        <apex:pageBlock title="Contacts List" id="contacts_list">
            
            Filter: 
                <apex:selectList value="{! filterId }" size="1">
                 <apex:selectOptions value="{! listViewOptions }"/>
                <apex:actionSupport event="onchange" reRender="contacts_list"/>
                </apex:selectList>
            
            <!-- Contacts List -->
            <apex:pageBlockTable value="{! contacts }" var="ct">
<!-- Pagination -->
<table style="width: 100%"><tr>

    <td>
Page: <apex:outputText value=" {!PageNumber} of {! CEILING(ResultSize / PageSize) }"/>    </td>            

    <td align="center">
<!-- Previous page -->
<!-- active -->
<apex:commandLink action="{! Previous }" value="« Previous"
     rendered="{! HasPrevious }"/>
<!-- inactive (no earlier pages) -->
<apex:outputText style="color: #ccc;" value="« Previous"
     rendered="{! NOT(HasPrevious) }"/>

&nbsp;&nbsp;  

<!-- Next page -->
<!-- active -->
<apex:commandLink action="{! Next }" value="Next »"
     rendered="{! HasNext }"/>
<!-- inactive (no more pages) -->
<apex:outputText style="color: #ccc;" value="Next »"
     rendered="{! NOT(HasNext) }"/>
    </td>
    
    <td align="right">
Records per page:
<apex:selectList value="{! PageSize }" size="1">
    <apex:selectOption itemValue="5" itemLabel="5"/>
    <apex:selectOption itemValue="20" itemLabel="20"/>
    <apex:actionSupport event="onchange" reRender="contacts_list"/>
</apex:selectList>
    </td>

</tr></table>

                <apex:column value="{! ct.FirstName }"/>
                <apex:column value="{! ct.LastName }"/>
                <apex:column value="{! ct.Email }"/>
                <apex:column value="{! ct.Account.Name }"/>
            </apex:pageBlockTable>
         
        </apex:pageBlock>
     </apex:form>
</apex:page>
I would like to create a simply text message in a scrolling banner on the home page.  All the documentation I can find is out of date and no longer works.  
I followed the instructions for this module but when I open my phone to Salesforce1, click on Top Accounts and Opportunities, I get a flashing red error "Unfortunately there was a problem.  Please try again......"  Any ideas?

I have consultants working on this who say it can't be done.  They are working on a discount/approval process based on different attributes of a product where the list price will be different based on which values are chosen from various picklist fields on the opportunity line item.

 

EX: You order a car with leather seats, fancy stereo and sunroof extra.  So the list price of the car is $15000, leather seats add $500, stereo adds $500, sunroof adds $500.  The new list price becomes $16,500.  That price is then discounted and goes through an approval process based on the %discount.  This has to be done at the product line item on the opportunity because other products on the opportunity may not need approval.

 

Any ideas???

Our record types are based on the record owner's Record Type.  I created a new field on the User record called Record Type that I will manually update.  I need to create a workflow that will update the record type of an Account or Opportunity if the Owner changes and the Record type is not the same as the Record type for the User.

I'm deploying an Apex Class from a Dev sandbox to a Full and getting a compile error that I did not get in the Dev sandbox.  The error is Compile Error: Invalid type: SRMapping__c.   Any ideas?

 

Here's the first part of the code:

public with sharing class oppProductFieldSelExtension {
   //List that holds all Selection Items
    public List<ExtendedProduct> selection {get;set;}
        public List<ProdOppLineWrapper> oppSelections{get; set;}
        public List<OpportunityLineItem> existingItems {get; set;}
        public String oppID {get; set;}
        public Opportunity oppRec {get; set;}
        public ProductsIDTracker__c prodTracker {get; set;}
        public List<PriceBookEntry> prodPriceBkList {get; set;}
        public List<String> productIDs{get; set;}
        public List<String> prodPriceBkIDs{get; set;}
        //public list<selectOption> sensor_Resolution {get;set;}      
    //soql string without the order and limit      
    private String soql {get;set;}
    //the collection of products to display
    public List<ExtendedProduct> products {get;set;}
    //Product Family list
    private List<String> productFamilies;
    //String to hold selected Family
    private String selectedFamily;
    //Pricebook to look at
    private list<Pricebook2> pricebook;
    //Map of Field Names and Description of that field
    Map<String,Schema.SObjectField> fields;
    private String selectedField;
    private String selectedOperator;
    private String fieldSearch;
    private String quickSearch;   
    public List<selectOption> resolutionList {get;set;}
    //public String sensorKeys {get; set;}
   
    //public String sensor {get;set;}
   
    public map<String, SRMapping__c> mapResolution1 {get;set;}   
   
         public String getselectedOperator()
        {
                return this.selectedOperator;
        }
        public void setselectedOperator(String s)
        {
                this.selectedOperator = s;
        }

The challenge is to search for the inserted record with an inline SOSL search, using Execute Anonymous.

This is what I did using Execute Anonymous Window
 
List<List<sObject>> searchList = [FIND 'Mission Control' IN ALL FIELDS 
                                  RETURNING Contact(FirstName, LastName,
                                  Phone, Email, Description)];
Contact[] searchContacts = (Contact[])searchList[0];
System.debug('Found the following contacts:');
for (Contact c : searchContacts) {
   System.debug('"'+c.LastName + ', ' + c.FirstName+'"');
}

But still there's an error when I check the challenge.

Challenge Not yet complete... here's what's wrong: 
Could not find the contact's name in the debug log. Be sure to run a query for your record, and to write your contact's name to the debug log using the System.debug() method.
For the module "Customize Your Login Process with My Domain", I am unable to add a custom domain in my developer org because there is no New or Add button.  I am a system administrator and I don't see any Administrative Permission on the System Admin profile that would need to be checked to do this.   Here's what I see when I click on My Domain:
User-added image
 

Hi All,

In attempting to compile the first test class provided in the 'Explore Custom Transaction Security Policies' module, I receive 2 compile errors.

The first was around line 29, where the semi colon beside eventData needs to be moved outside of the right parenthesis.

However after trying to compile after that change there is another error complaining that the platform field of the LoginHistory object (declared as loginHistoryObj for our instance) is not writeable.  Below are the lines of importance...

    /* Create a history object that has Platform = Android 4. */
    LoginHistory loginHistoryObj = new LoginHistory();
    loginHistoryObj.Platform = 'Android 4';  <----
this is where the compile is complaining (Error: Compile Error: Field is not writeable: LoginHistory.Platform at line 7 column 5)

I checked the LoginHistory Object documentation, and it looks like it should be writeable to me.

Does anyone have any suggestions? or is this a bug of some sort?

I completed the entire samples on ContactList.vsp as directed, and with no Problems but after Saving it many times, the Pagination does not show on preview.  Please let me know if you see any errors.  All the code snippets were copied from the Trailhead Module.  Here's the code:

<apex:page standardController="Contact" recordSetVar="contacts">
    <apex:form >
        <apex:pageBlock title="Contacts List" id="contacts_list">
            
            Filter: 
                <apex:selectList value="{! filterId }" size="1">
                 <apex:selectOptions value="{! listViewOptions }"/>
                <apex:actionSupport event="onchange" reRender="contacts_list"/>
                </apex:selectList>
            
            <!-- Contacts List -->
            <apex:pageBlockTable value="{! contacts }" var="ct">
<!-- Pagination -->
<table style="width: 100%"><tr>

    <td>
Page: <apex:outputText value=" {!PageNumber} of {! CEILING(ResultSize / PageSize) }"/>    </td>            

    <td align="center">
<!-- Previous page -->
<!-- active -->
<apex:commandLink action="{! Previous }" value="« Previous"
     rendered="{! HasPrevious }"/>
<!-- inactive (no earlier pages) -->
<apex:outputText style="color: #ccc;" value="« Previous"
     rendered="{! NOT(HasPrevious) }"/>

&nbsp;&nbsp;  

<!-- Next page -->
<!-- active -->
<apex:commandLink action="{! Next }" value="Next »"
     rendered="{! HasNext }"/>
<!-- inactive (no more pages) -->
<apex:outputText style="color: #ccc;" value="Next »"
     rendered="{! NOT(HasNext) }"/>
    </td>
    
    <td align="right">
Records per page:
<apex:selectList value="{! PageSize }" size="1">
    <apex:selectOption itemValue="5" itemLabel="5"/>
    <apex:selectOption itemValue="20" itemLabel="20"/>
    <apex:actionSupport event="onchange" reRender="contacts_list"/>
</apex:selectList>
    </td>

</tr></table>

                <apex:column value="{! ct.FirstName }"/>
                <apex:column value="{! ct.LastName }"/>
                <apex:column value="{! ct.Email }"/>
                <apex:column value="{! ct.Account.Name }"/>
            </apex:pageBlockTable>
         
        </apex:pageBlock>
     </apex:form>
</apex:page>
I followed the instructions for this module but when I open my phone to Salesforce1, click on Top Accounts and Opportunities, I get a flashing red error "Unfortunately there was a problem.  Please try again......"  Any ideas?

Hi All,

In attempting to compile the first test class provided in the 'Explore Custom Transaction Security Policies' module, I receive 2 compile errors.

The first was around line 29, where the semi colon beside eventData needs to be moved outside of the right parenthesis.

However after trying to compile after that change there is another error complaining that the platform field of the LoginHistory object (declared as loginHistoryObj for our instance) is not writeable.  Below are the lines of importance...

    /* Create a history object that has Platform = Android 4. */
    LoginHistory loginHistoryObj = new LoginHistory();
    loginHistoryObj.Platform = 'Android 4';  <----
this is where the compile is complaining (Error: Compile Error: Field is not writeable: LoginHistory.Platform at line 7 column 5)

I checked the LoginHistory Object documentation, and it looks like it should be writeable to me.

Does anyone have any suggestions? or is this a bug of some sort?