• Priya Subbaraman
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 10
    Replies
I have written this to code to display the columns from Implementation__c object.  I am using lightning:recordviewform to display.  It displays like this :
User-added imageCan anyone help me to display the Labels on the top.  Ideally, I would want the labels to be displayed in one row and the values underneath it. 
Here is the copy of my code.
<!-- Add this component to an Implementations record Lightning page -->
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">
    
    <lightning:recordViewForm recordId="{!v.recordId} objectApiName="Implementation__c" >
        <div class="slds-box slds-theme_default">
           <lightning:messages />
               <lightning:outputField fieldName="Account__c" />
               <lightning:outputField fieldName="Partner__c" />
                <lightning:outputField fieldName="Risk__c" />
               <lightning:outputField fieldName="Stage__c" />
               <lightning:outputField fieldName="Status__c" />
               <lightning:outputField fieldName="Budgeted__c" />
               <lightning:outputField fieldName="Billed__c" />
               <lightning:outputField fieldName="Forecast_Margin__c" />
                <lightning:outputField fieldName="Current_Margin__c" />
         </div>
    </lightning:recordViewForm>
        
</aura:component>

Thannk you for any help! 
Hi,

Can someone explain this question to me? The web site where I found this question states the answer as 0 orders will be successfully loaded, but I didn't understand why.   Is it because the governor limit on the number of SELECTs is 100?

Thank you.
Priya

List<Account> customers = new List<Account>();
For (Order__c o: trigger.new)
{
Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c];
a.Is_Customer__c = true;
customers.add(a);
}
Database.update(customers, false);
The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders.
How many Orders are successfully loaded when the developer attempts to load the 150 Orders?
I am on the Trailhead module : Quick Start Heroku Connect : Prepare the App for Local  Development.  I am getting this error when I run the following command on the command prompt, to git clone a repository.

User-added image

Basically, it looks like I am unable to access the heroku-connect-phone-change  app.  I could successfully login into heroku and complete the previous 2 units.  I am stuck on this 3rd unit since 2 days.  Did anyone face the same problem like me? Please help.

Thanks,
Priya
Hi,

I am working on the Trailhead Challenge for Bulk Apex Triggers.  I see that the challenge requires us to add a record to the Task object if the Opportunity.StageName is "Closed Won".  However, my dev org does not show the Task object.  Do we have to create one?

Thanks,
Priya
Hello All,

I am on the Data Security:Control Access to Fields chapter of Trailhead.  Even though, I have done the steps as listed by the challenge
1)Create an Account Profile
2)Change the Object Settings for Account and Contacts Object
3)Changed the Field Setting for Rating field in the Account Object
4)Created a Rating permission set and changed the access for Rating field of the Account object.

I keep getting this error "The 'Account' profile was not found".  I am stuck on this since 1 day.  Is anyone else facing the same problem? How did you solve it? Thank you.

Priya
Hi,

Can someone explain this question to me? The web site where I found this question states the answer as 0 orders will be successfully loaded, but I didn't understand why.   Is it because the governor limit on the number of SELECTs is 100?

Thank you.
Priya

List<Account> customers = new List<Account>();
For (Order__c o: trigger.new)
{
Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c];
a.Is_Customer__c = true;
customers.add(a);
}
Database.update(customers, false);
The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders.
How many Orders are successfully loaded when the developer attempts to load the 150 Orders?
I am on the Trailhead module : Quick Start Heroku Connect : Prepare the App for Local  Development.  I am getting this error when I run the following command on the command prompt, to git clone a repository.

User-added image

Basically, it looks like I am unable to access the heroku-connect-phone-change  app.  I could successfully login into heroku and complete the previous 2 units.  I am stuck on this 3rd unit since 2 days.  Did anyone face the same problem like me? Please help.

Thanks,
Priya
Re-factored my code from previous units with base lightning components, but receiving this error.  Here's my new form component.  Any help would be much appreciated.

<aura:component >   
    <aura:attribute name="newItem" type="Camping_Item__c"    default="{ 'sobjectType': 'Camping_Item__c',
                         'Name': '',
                         'Price__c': 0,
                         'Quantity__c': 0,                         
                         'Packed__c': false
                       }"/>
 
    <aura:registerEvent name="addItem" type="c:addItemEvent"/>
    <lightning:layout >
        <lightning:layoutItem padding="around-small" size="6">
<div aria-labelledby="newItemForm">

    <!-- BOXED AREA -->
    <fieldset class="slds-box slds-theme--default slds-container--small">

    <legend id="newItemForm" class="slds-text-heading--small 
      slds-p-vertical--medium">
      Add Camping Item
    </legend>

    <!-- CREATE NEW CAMPING ITEM FORM -->
    <form class="slds-form--stacked">          
        <lightning:input aura:id="itemForm" label="Camping Item Name"
                         name="Name"
                         value="{!v.newItem.Name}"
                         required="true"/> 
        <lightning:input type="number" aura:id="itemForm" label="Quantity"
                         name="Quantity"
                         maxlength="16"
                         min="0"
                         step="1"
                         value="{!v.newItem.Quantity__c}"
                         required="true"/>
        <lightning:input type="number" aura:id="itemForm" label="Price"
                         name="Price"
                         min="0"
                         step=".01"
                         value="{!v.newItem.Price__c}"
                         formatter="currency"
                         messageWhenRangeUnderflow="Enter an amount that's at least .01."/>
        <lightning:input type="checkbox" aura:id="itemForm" label="Packed?"  
                         name="Packed"
                         checked="{!v.newItem.Packed__c}"/>
        <lightning:button label="Create Expense" 
                          class="slds-m-top--medium"
                          variant="brand"
                          onclick="{!c.clickCreateItem}"/>
    </form>
  </fieldset>
  <!-- / BOXED AREA -->

</div>
        </lightning:layoutItem>
    </lightning:layout>
</aura:component>
Hi,

I am working on the Trailhead Challenge for Bulk Apex Triggers.  I see that the challenge requires us to add a record to the Task object if the Opportunity.StageName is "Closed Won".  However, my dev org does not show the Task object.  Do we have to create one?

Thanks,
Priya
Hello All,

I am on the Data Security:Control Access to Fields chapter of Trailhead.  Even though, I have done the steps as listed by the challenge
1)Create an Account Profile
2)Change the Object Settings for Account and Contacts Object
3)Changed the Field Setting for Rating field in the Account Object
4)Created a Rating permission set and changed the access for Rating field of the Account object.

I keep getting this error "The 'Account' profile was not found".  I am stuck on this since 1 day.  Is anyone else facing the same problem? How did you solve it? Thank you.

Priya
I am stuck at  this point:

User-added image
I just want to know what is going to be the syntax for resetting the newItem value provider with a Camping_Item__c sObject??

My Code is as follows:

(1) campingList Component:
 
<aura:component >
	
    <aura:attribute name="newItem" type="Camping_Item__c"
     default="{ 'sobjectType': 'Camping_Item__c',
                    'Name': '',
                    'Quantity__c': 0,
                    'Price__c': 0,
                    'Packed__c': false }"/>
    
    <aura:attribute name="items" type="Camping_Item__c[]"/>
    
    <ol>
    <li>Bug Spray</li>
    <li>Bear Repellant</li>
    <li>Goat Food</li>
    </ol>
    
    <!-- CREATE NEW ITEM FORM -->
    <form class="slds-form--stacked">

      <div class="slds-form-element slds-is-required">
          <div class="slds-form-element__control">
              <ui:inputText aura:id="itemname" label="Name"
                  class="slds-input"
                  labelClass="slds-form-element__label"
                  value="{!v.newItem.Name}"
                  required="true"/>
          </div>
     </div>

     <div class="slds-form-element slds-is-required">
          <div class="slds-form-element__control">
              <ui:inputNumber aura:id="quantity" label="Quantity"
                  class="slds-input"
                  labelClass="slds-form-element__label"
                  value="{!v.newItem.Quantity__c}"
                  required="true"/>

          </div>
      </div>

      <div class="slds-form-element">
          <div class="slds-form-element__control">
              <ui:inputCurrency aura:id="price" label="Price"
                  class="slds-input"
                  labelClass="slds-form-element__label"
                  value="{!v.newItem.Price__c}"
                  />
          </div>
      </div>

      <div class="slds-form-element">
          <ui:inputCheckbox aura:id="packed" label="Packed?"
              class="slds-checkbox"
              labelClass="slds-form-element__label"
              value="{!v.newItem.Packed__c}"/>
      </div>

      <div class="slds-form-element">
          <ui:button label="Create Camping Item"
              class="slds-button slds-button--brand"
              press="{!c.clickCreateItem}"/>
      </div>

    </form>
    <!-- / CREATE NEW ITEM FORM -->
    
   

    <div class="slds-card slds-p-top--medium">
        <header class="slds-card__header">
            <h3 class="slds-text-heading--small">Items</h3>
        </header>
        
        <section class="slds-card__body">
            <div id="list" class="row">
                <aura:iteration items="{!v.items}" var="items">
                    <c:campingListItem item="{!item}"/>
                </aura:iteration>
            </div>
        </section>
    </div>

</aura:component>

(2) Controller code:
 
({
    clickCreateItem: function(component, event, helper) {

        // Simplistic error checking
        var validItem = true;

        // Name must not be blank
        var nameField = component.find("itemname");
        var itemname = nameField.get("v.value");
        if ($A.util.isEmpty(itemname)){
            validItem = false;
            nameField.set("v.errors", [{message:"Item name can't be blank."}]);
        }
        else {
            nameField.set("v.errors", null);
        }
        
        // Quantity must not be blank
        var quantityField = component.find("quantity");
        var quantity = nameField.get("v.value");
        if ($A.util.isEmpty(quantity)){
            validItem = false;
            quantityField.set("v.errors", [{message:"Quantity can't be blank."}]);
        }
        else {
            quantityField.set("v.errors", null);
        }

        var priceField = component.find("price");
        var price = priceField.get("v.value");
        if ($A.util.isEmpty(price)){
            validItem = false;
            priceField.set("v.errors", [{message:"Price can't be blank."}]);
        }
        else {
            quantityField.set("v.errors", null);
        }


        if(validItem){
            var newItem = component.get("v.newItem");
            console.log("Create item: " + JSON.stringify(newItem));
            //helper.createItem(component, newItem);
            //        var theItems = component.get("v.items");
 
        // Copy the expense to a new object
        // THIS IS A DISGUSTING, TEMPORARY HACK
        var newItem = JSON.parse(JSON.stringify(item));
 
        console.log("Items before 'create': " + JSON.stringify(theItems));
		theExpenses.push(newItem);
		component.set("v.expenses", theItems);
		console.log("Items after 'create': " + JSON.stringify(theItems));
        theItems.push(newItem);
        component.set("v.items", theItems);
        
        }
    }
})

 
Trying to complete this challenge.  Recieve the following error message.  Need help resolving:

"Challenge not yet complete... here's what's wrong: 
The page does not bind to the record ID value (in order to link to the record detail page)"

Here's my code for 'AccountList.vfp':

<apex:page standardController="Account" recordSetVar="accounts">
    <table border="1" >
  
        <apex:repeat var="a" value="{!Account}">
            <li>
                <apex:outputLink value="/<record id>">
                    Record
                </apex:outputLink>
            </li>
        </apex:repeat>
            
    </table>
</apex:page>
https://developer.salesforce.com/trailhead/force_com_introduction/data_management/data_import
I've tried 5-6 times now to use import wizard to import the file provided for the Data Management Module of Force.com Basics.  It just continues to give me an "There was a problem uploading the CSV file. Try again, or choose another file."  I've tried this on both a PC and a Mac, Chrome and Firefox and browsing to the file or drag and dropping the file, just get the same error every time.