• Ryan McNeely
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 6
    Replies
I realize the documentation says Case Status is not inline editable (i.e. in List View). https://help.salesforce.com/articleView?id=customviews_edit_inline_listview_lex_considerations.htm&type=5

However, somehow, about 8 months ago, I was, in fact, able to make Case Status inline editable!!! Here's my proof:

User-added image
This is in an old Sandbox which we successfully pushed to Prod back then. They were using Status inline edit often on Prod until recently.

I can't figure out how to bring back this feature to the newer Sandbox and to Prod. In the newer Sandbox, I checked FLS, it's viewable and editable. The List View is set to a single Case Record Type.

What could they have added to the newer Sandbox which would kill this inline edit feature?

Why does the documentation contradict what I was able to do?

I might think it's a difference in Salesforce versions, but I see references to documentation in 2012 that said Case Status is not inline editable.
Application Profile - grandparent
Application - parent
Country Availability - grandchild

I want to populate Application_Profile__c.Locales__c with Country_Availability__c.Locale__c

You'll notice:   += record.Locale__c + ";"
This is because most Application Profiles will have many Country Availability records associated with it. I need to append each Locale.

Expected result:
Application_Profile__c.Locales__c = "en_CA;en_US"

Actual result:
The script runs with no apparent errors, but Application_Profile__c.Locales__c is still a blank text field.
 
try {
    List<CountryAvailability__c> grandchildList = 
        [SELECT Application__r.Name, Locale__c, 
                Application__r.Application_Profile__r.Appscom_Approved_Locales__c
            FROM CountryAvailability__c 
            WHERE fieldX = true];
        
    System.debug('*****' + grandchildList); 
    
    for(CountryAvailability__c record : grandchildList){    
        record.Application__r.Application_Profile__r.Appscom_Approved_Locales__c 
            += record.Locale__c + ";";
    }
    
    System.debug('&&&&&&&' + countryAvailabilityList);  
    update countryAvailabilityList;

} catch(Exception e) {
    System.debug('An unexpected error has occurred: ' + e.getMessage());
}

 
I'm on a low budget project, creating a site where Consultants can login and input their Expenses and Hours Worked.

How do I decide between Sites and Communities, both from a use case stand-point and from a cost perspective?

The company already has SFDC. I'll be adding 5 custom objects which the Consultant will be interacting with via a few VF pages I create.
I'm building a custom app for a small business (low budget). They are Consulting business, and they have independent contractors who need to be able to log into an external website and log their hours worked, add expenses, etc. My question is how do I create this external website. Consultants would need to login into their personal space. Is Salesforce Sites still the best way?
In reading, Communities seems to be replacing Sites, but does it allow for authentication, and does it cover my use case?

A little more context...
The company already has SFDC. I'll add objects there and leverage existing standard objects. Also, will need to add custom controllers.
For the front end, I will create VF pages - 4 to be exact: Expenses, Timesheet, etc. 
Hi All,
I'm having a hard time with the controller code for my visualforce Delete Button. When the user clicks the 'X', that entire row should disappear from the view, and the object should be deleted. I've been through so many wikis on the topic. You're help would be appreciated.
(I'd also like to know how to replace the 'X' with a nifty x button .png or similar)

User-added image
<apex:page controller="SockWarehouseController" tabStyle="Sock__c">
  <h1>Ocean Socks</h1>
      <apex:form >
          <apex:pageBlock title="Inventory"> 
              <apex:pageBlockSection columns="1">
                  <apex:pageBlockTable value="{!products}" var="pitem">
                        <apex:column headerValue="" >
                            <apex:commandButton action="{!deleteProduct}" value="X"/>
                        </apex:column>
                        <apex:column headerValue="Product" >                         
                            <apex:outputText value="{!pitem.Name}"/>
                        </apex:column>
                        <apex:column headerValue="Quantity">
                            <apex:outputText value="{!pitem.Quantity__c}"/>
                        </apex:column>
                         <apex:column headerValue="Price">
                            <apex:outputText value="{!pitem.Price__c}"/>
                        </apex:column>
                  </apex:pageBlockTable>
              </apex:pageBlockSection>
          </apex:pageBlock>
      </apex:form>
</apex:page>
 
public class SockWarehouseController {

    List<Sock__c> products;
    
    public List<Sock__c> getProducts() {
        if(products == null) {
           products = [SELECT id, Name, Quantity__c, Price__c FROM Sock__c];
        }
        return products;
    }
    
    public PageReference deleteProduct() {
        String socksId = ApexPages.currentPage().getParameters().get('id');
        System.debug(socksId);
        Sock__c sockObject = [Select id from Sock__c where id=:socksId];
        delete sockObject ;
        return null;
    }
}

 
I realize the documentation says Case Status is not inline editable (i.e. in List View). https://help.salesforce.com/articleView?id=customviews_edit_inline_listview_lex_considerations.htm&type=5

However, somehow, about 8 months ago, I was, in fact, able to make Case Status inline editable!!! Here's my proof:

User-added image
This is in an old Sandbox which we successfully pushed to Prod back then. They were using Status inline edit often on Prod until recently.

I can't figure out how to bring back this feature to the newer Sandbox and to Prod. In the newer Sandbox, I checked FLS, it's viewable and editable. The List View is set to a single Case Record Type.

What could they have added to the newer Sandbox which would kill this inline edit feature?

Why does the documentation contradict what I was able to do?

I might think it's a difference in Salesforce versions, but I see references to documentation in 2012 that said Case Status is not inline editable.
Application Profile - grandparent
Application - parent
Country Availability - grandchild

I want to populate Application_Profile__c.Locales__c with Country_Availability__c.Locale__c

You'll notice:   += record.Locale__c + ";"
This is because most Application Profiles will have many Country Availability records associated with it. I need to append each Locale.

Expected result:
Application_Profile__c.Locales__c = "en_CA;en_US"

Actual result:
The script runs with no apparent errors, but Application_Profile__c.Locales__c is still a blank text field.
 
try {
    List<CountryAvailability__c> grandchildList = 
        [SELECT Application__r.Name, Locale__c, 
                Application__r.Application_Profile__r.Appscom_Approved_Locales__c
            FROM CountryAvailability__c 
            WHERE fieldX = true];
        
    System.debug('*****' + grandchildList); 
    
    for(CountryAvailability__c record : grandchildList){    
        record.Application__r.Application_Profile__r.Appscom_Approved_Locales__c 
            += record.Locale__c + ";";
    }
    
    System.debug('&&&&&&&' + countryAvailabilityList);  
    update countryAvailabilityList;

} catch(Exception e) {
    System.debug('An unexpected error has occurred: ' + e.getMessage());
}

 
Hi All,
I'm having a hard time with the controller code for my visualforce Delete Button. When the user clicks the 'X', that entire row should disappear from the view, and the object should be deleted. I've been through so many wikis on the topic. You're help would be appreciated.
(I'd also like to know how to replace the 'X' with a nifty x button .png or similar)

User-added image
<apex:page controller="SockWarehouseController" tabStyle="Sock__c">
  <h1>Ocean Socks</h1>
      <apex:form >
          <apex:pageBlock title="Inventory"> 
              <apex:pageBlockSection columns="1">
                  <apex:pageBlockTable value="{!products}" var="pitem">
                        <apex:column headerValue="" >
                            <apex:commandButton action="{!deleteProduct}" value="X"/>
                        </apex:column>
                        <apex:column headerValue="Product" >                         
                            <apex:outputText value="{!pitem.Name}"/>
                        </apex:column>
                        <apex:column headerValue="Quantity">
                            <apex:outputText value="{!pitem.Quantity__c}"/>
                        </apex:column>
                         <apex:column headerValue="Price">
                            <apex:outputText value="{!pitem.Price__c}"/>
                        </apex:column>
                  </apex:pageBlockTable>
              </apex:pageBlockSection>
          </apex:pageBlock>
      </apex:form>
</apex:page>
 
public class SockWarehouseController {

    List<Sock__c> products;
    
    public List<Sock__c> getProducts() {
        if(products == null) {
           products = [SELECT id, Name, Quantity__c, Price__c FROM Sock__c];
        }
        return products;
    }
    
    public PageReference deleteProduct() {
        String socksId = ApexPages.currentPage().getParameters().get('id');
        System.debug(socksId);
        Sock__c sockObject = [Select id from Sock__c where id=:socksId];
        delete sockObject ;
        return null;
    }
}

 
<!--campingListItem.cmp-->
<aura:component >
	<aura:attribute name="item" type="Camping_Item__c" required="true"/>

	<ui:outputText value="{!v.item.Name}" />
	<ui:outputCheckbox value="{!v.item.Packed__c}" />
	<ui:outputCurrency value="{!v.item.Price__c}" />
	<ui:outputNumber value="{!v.item.Quantity__c}" />
	<ui:button label="Packed!" press="{!c.packItem}"/>
	
</aura:component>
<!--campingListController.js-->
({
	packItem : function(component, event, helper) {
		var button = event.getSource().get("v.disabled");
		component.set("v.item.Packed__c", "true");
		component.set(button, "true");
	}
})
What am I doing wrong?

 
I installed both the Opp Alert Coponent and the ContactsToday Component from the Trailhead Module "Working with Custom Lightning Components". However, they are not available to add as components in the Lightning App Builder. I've tried uninstalling an reinstalling, with no luck. The "Custom Components" section in Lightning App Builder shows 0.

Any help would be appreciated - I've had nothing but technical difficulties with this module and I want to earn that darn badge already!

I have a controller which aids in displaying a visualforce page with the Edit & delete functionality.However, my delete doesn't seem to work.

Kindly assist.Am using this post as a guide:

public class OrderDealsExtension {
	
	public List<Deals__c> deals {get;set;}
	public String SelectedDealId {get;set;}
	
	public OrderDealsExtension() {
		loadData();
	}
		
	public void loadData() {
			
		deals = [Select id,Name,Deal_Start_Date__c,Candidates__c,Contact__c,Deal_End_Date__c,Deal_Type__c,Deal_Buy_Price__c,Deal_Client_Rate__c,CreatedDate from Deals__c Order By CreatedDate desc];
	}
	
	public void deleteDeal(){
		if(SelectedDealId == null){
			return;
		}
		//find the deal record within the collection
		Deals__c tobeDeleted = null;
		for(Deals__c d :deals){
			if(d.Id == SelectedDealId){
				tobeDeleted = d;
				break;
			}
			
			//if deal record found delete it
			if(tobeDeleted != null){
				Delete tobeDeleted;
			}
			
			//refresh the data
			loadData();
		}
	}
	
}

Visualforce Page.

<apex:page controller="OrderDealsExtension">
<apex:form id="form" >
<apex:pageBlock title="Deals">
  <apex:pageMessages ></apex:pageMessages>
  <apex:pageBlockTable value="{!deals}" var="d">
     <apex:column >
       <apex:outputLink title="" value="/{!d.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-weight:bold">Edit</apex:outputLink>&nbsp;|&nbsp;
       <a href="javascript&colon;if (window.confirm('Are you sure?')) deleteDeal('{!d.Id}');" style="font-weight:bold">Del</a>
     </apex:column>
    <apex:column headervalue="Order Number" >
	<apex:outputLink value="/{!d.id}">
	<apex:outputField value="{!d.Name}"/>
	</apex:outputLink>
</apex:column>
<apex:column value="{!d.Candidates__c}" />
<apex:column value="{!d.Contact__c}" />
<apex:column value="{!d.Deal_Start_Date__c}" />
<apex:column value="{!d.Deal_End_Date__c}" />
<apex:column value="{!d.Deal_Buy_Price__c}" />
<apex:column value="{!d.Deal_Client_Rate__c}" />
  </apex:pageBlockTable>
</apex:pageBlock>

<apex:actionFunction action="{!deleteDeal}" name="DeleteDeal" reRender="form" >
   <apex:param name="dealid" value="" assignTo="{!SelectedDealId}"/>
</apex:actionFunction>
</apex:form>
</apex:page>