• Nalini ch 6
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 22
    Replies
Hello 

I am getting the below error while saving my  component can anyone help me 

Failed to save CarsearchForm12.cmp: Unterminated expression: Source
carsearchform.cmp

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <aura:attribute name ="buttonLabel"  type="string" default="Search" />
    <aura:attribute name ="NewLabel"  type="string" default="New button" />
    <aura:attribute name ="showNew" type="Boolean" default="false" />
     <aura:attribute name="carTypes" type="String[]" />
    <aura:handler name="init" value="{!this}"  action="{!c.doInit}" />    
                                                              
    <lightning:layout horizontalAlign="center">
    <lightning:layoutItem padding="around-medium">
    <lightning:select name='selectItem' aura:id ="carTypeList" label='All Types'
                      variant="label-hidden" value="" onchange= "{!.c.newValueSelected">
        <option value ="" text="All types" />
<aura:iteration items ="{!v.carTypes}" var="carType">
                        <option value="{!carType}" text="{!carType}" />
                        </aura:iteration>
        </lightning:select>
        </lightning:layoutItem>
        
        <lightning:layoutItem padding="around-medium">
<lightning:button label="{!v.buttonlabel}" onclick="{!.c.onSearchClick}" variant="brand" />            
            <aura:if isTrue="{!v.showNew}">
                <lightning:button variant='neutral' label="{#v.newLabel}"/>
            </aura:if>
                                                                                         
        </lightning:layoutItem>
        </lightning:layout>     
</aura:component>


I have created a custom object 
 

There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: DCEPOCSV
Hello Salesforce folks,
I am Jinseong Jeong who is learning salesforce with trailhead. while learning salesfroce, I got this error. Please below the meesage and hele me out solve this issue.
"please post to the developer forums and reference error id: IDAWKWIV"
Hello, I am trying to create a custom button, but when I select content source as visualforce page, I can't do anything with the last component on the screen, "Content". It won't let me fill in anything, nor will it let me select the up/down arrows. Is there something that I need to enable for this to work? User-added image
Hi Every one,

I need to disable keyboard functionalites in salesforce lightning how can we do that ? 
Like  key E functionaliy while clicking E it's opening Edit details.. 
 If any one know please  help me .
 
Thanks
Surender reddy
Email-to-case, When customer add a image in the body of the email like screen shot . Case is created and user will reply to that mail in case feed. That screen shot image has to scripted off in lightning .

In classic, the image is automatically replaced with its inline image name. but not in lightning
Actually, I want to create a website on RajaQQ (http://proboards46.com/)which will be based on games. Different games are providing points then you can withdraw the point by money
I want to change all date formats in Salesforce to DD-Mon-YYYY (example: 15-May-2020).  I know that I can change the Locale to change the date format, however, in most cases this shows up as 15-05-2020.   I also know I could probably write visualforce pages for each page a date occurs on, but that doesn't seem reasonable.

Is there a way to chagne all the date formats in the system with code (some sort of aura controller?)?
Error: "salesforce entity type cannot be inserted: Library" when trying to create ContentWorkspace object passing just Name as parameter thru API. Please help
Thank you.

Custom field updating with a random value while using that field through connected app

I have a field securoity token under contact object and we are trying to generate a token using external application with the connected app and we are not able to update the field as there is a default random value generated on that field.
 

Trying to test my first component for pulling quote line items into a VF email template. Any help greatly appreciated! 
VF Component:
<apex:component access="global" controller="SortedLineItemsController">
<apex:attribute name="value" type="Quote" assignTo="{!quote}" description="TODO: Describe me"/>

<apex:repeat var="li" value="{!sorted}">
<tr>
<td>{!li.Part_Name__c}</td>
<td>{!li.Technology_Pick__c}</td>
<td>{!li.Rev__c}</td>
<td>{!li.Material__c}</td>
<td>{!li.Description_Summary__c}</td>
<td>${!li.UnitPrice}</td>
<td>{!li.Quantity}</td>
<td>${!li.TotalPrice}</td>
</tr>
</apex:repeat>

<!-- Needed to work around limitation that the standard controller cannot "see"
the linkage between the value attribute and the opportunity property -->
<apex:variable var="oli" value="{!value.QuoteLineItems}" rendered="false">
{!oli.Part_Name__c}
{!oli.Technology_Pick__c}
{!oli.Rev__c}
{!oli.Material__c}
{!oli.Description_Summary__c}
{!oli.UnitPrice}
{!oli.Quantity}
{!oli.TotalPrice}
</apex:variable>
</apex:component
Apex Controller:
public class SortedLineItemsController {
    public Quote quote { get; set; }
    
    public QuoteLineItem[] getSorted() {
        if (quote == null || quote.quoteLineItems== null) {
            return null;
        }
        
        
        QuoteLineItem[] result = new QuoteLineItem[1];
        for (QuoteLineItem item : Quote.quoteLineItems) {
            result.add(0, item);
        }
        
        return result;
   }
}

​​​​​​​
How can I have case condition in where clause 

I was trying to run below it says malformed 
 
Select columns 
 FROM table
  WHERE
  1 = CASE
        WHEN 'STD' = 'FULL' THEN 1
        WHEN 'STD' = 'STD'
              AND ((lastmodifieddate >= 2020-05-13T00:00:00.000Z AND lastmodifieddate <= 2020-05-13T23:59:59.000Z) 
                    OR (CreatedDate >= 2020-05-13T00:00:00.000Z AND CreatedDate <= 2020-05-13T23:59:59.000Z) 
                 ) THEN 1
        WHEN 'STD' = 'CSTM'
                AND ((lastmodifieddate >= 1970-01-01 00:00:00T00:00:00.000Z AND lastmodifieddate <= 1970-01-01 23:59:59T23:59:59.000Z)
                      OR (CreatedDate >= 1970-01-01T00:00:00.000Z AND CreatedDate <= 1970-01-01T23:59:59.000Z)
                    ) THEN 1
        ELSE 0
  END

 
Hi everyone-
Full disclosure, I'm not a coder so if you offer help, could you please be VERY specifi with where and how this would work? I am using opportunities. I have a custom object called 'Referents' linked to my opportunities through a lookup field (Referents is a related list on my Opportunity page layout). There can be multiple referent records linked to one opportunity. I have built a visualforce page to create a pdf that includes all of my opportunity fields, but I'm hoping to also create something that will allow me (with a click of a button) to generate a pdf of all referent records associated with an opportunity. I'm assuming some type of loop would need to be included so that every referent record could be added to the pdf. Can anyone help? Is this even possible? Thank you!!!

Meg
Hi, 

I have a package which is due for it's security review. However I'm not ready to release a new version on appexchange yet. Can I send the same package for periodic review? Or is it necessary to have a newer version of package? 

Thank you
//Visualforce page for pageBlockTable

<apex:page standardController="Loan__c" extensions="AmoSchedRelatedListExtension">
    <apex:pageBlock title="">
        <apex:pageBlockTable value="{!Loan__c.amortization_line_items__r}" var="ali">
            <apex:column value="{!ali.Period__c}"/>
            <apex:column value="{!ali.Month__c}"/>
            <apex:column value="{!ali.Principal_Balance__c}"/>
            <apex:column value="{!ali.Monthly_Payment1__c}"/>
            <apex:column value="{!ali.Interest__c}"/>
            <apex:column value="{!ali.Principal_Payment__c}"/>
            <apex:column value="{!ali.Consulting_Fee__c}"/>
            <apex:column value="{!ali.Adjusted_Principal__c}"/>
            <apex:column value="{!ali.Adjusted_Consulting_Fee__c}"/>
            <apex:column value="{!ali.Total_Payment__c}"/>
            <apex:column value="{!ali.Remaining_Principal_Balance__c}"/>
            <apex:column value="{!ali.Interest_Payments_Received__c}"/>
            <apex:column value="{!ali.Consulting_Fee_Payments_Received__c}"/>
            <apex:column value="{!ali.Principal_Payments_Received__c}"/>
            <apex:column value="{!ali.Total_Payments_Received__c}"/>
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>
 
//Apex Class attempting to order the block table in ascending order by Period

public with sharing class AmoSchedRelatedListExtension
{
    private final Id loanId;
    public List<Amortization_Line_Item__c> alis { get; set; }
 
    public AmoSchedRelatedListExtension(ApexPages.StandardController stdController)
    {
        loanId = stdController.getId();
        alis = [select Id
                              ,Period__c
                              ,Month__c
                              ,Principal_Balance__c
                              ,Monthly_Payment1__c
                              ,Interest__c
                              ,Principal_Payment__c
                              ,Consulting_Fee__c
                              ,Adjusted_Principal__c
                              ,Adjusted_Consulting_Fee__c
                              ,Total_Payment__c
                              ,Remaining_Principal_Balance__c
                              ,Interest_Payments_Received__c
                              ,Principal_Payments_Received__C
                              ,Consulting_Fee_Payments_Received__c
                              ,Total_Payments_Received__c
                     from Amortization_Line_Item__c
                   where Loan__c =:loanId
               order by Period__c ASC];
    }
}
Hi everyone,

I'm attempting to add a visualforce page to a lightning record page that displays the related Amortization Line Items of a Loan. Both Loan and Amortization Line Item are custom objects. My intent is to use apex:pageBlockTable to display the related list with more than the standard 10 columns (if there is a better way to achieve this, please  recommend).

As you can see my code above, I have the visualforce page and an apex class which I was hoping would correctly order by period ascending (starting at 1 or 0, depending on the loan). 

On one record, it almost worked but it started at period 4, listed the remaing rows correctly until the final period 36 and then just had no order to it for periods 2, 3, and 1. Other records just order by Period descending.

Any help is much appreciated. Thank you!
User-added image
User-added image
Hi,
We have added new featues to the existing project and would like to notify the users in community,

Could you please let me know how can we notify the users about new featues?
 
Thanks,
Raj
  • May 13, 2020
  • Like
  • 0
I created connected app. So now to the client what I need to provide Just consumer id, consumer secret  is enough
or I need to provide access toKen too, or provide url with acces token and sobject to access , I'm confused here, how we do in real time project's.