• yogaraj kv
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
Hi,
I am facing issue on challenge 7, The AddBoatReview component doesn't define the description using lightning:inputRichText. The rich text component should be bound to the BoatReview__c.comments field, and suppress font selection.

 My code -
<div class="slds-form-element">
                <label class="slds-form-element__label" for="description">Description</label>
                <div class="slds-form-element__control">
                    <lightning:inputRichText aura:id="description" title="description" disabledCategories="['FORMAT_FONT']" value="{!v.boatReview.Comments__c}"/>
                </div>
            </div>
Any suggestion?
Hello,
I have created an lightning application using Bootstrap,JQuery js. its working fine without lightning locker service enabled. It's not working with Lightning locker service enabled. I  did some analysis on the chrome debugger tool. 
Without Lightning locker service,
The JS resource loaded under the domain name refer image1
User-added image
With Lightning locker service,
The JS resource loaded under the file:// folder refer image2 [its trying to refer from local]. Am getting error like 'Cannot read property'expando' of undefined throws at/resource/DesignWR/jquery.js:5:4569'
User-added image
<ltng:require scripts="/resource/DesignWR/js/jquery.js,    
                           /resource/DesignWR/js/bootstrap.min.js"
                  styles="/resource/DesignWR/css/bootstrap.css,
                          /resource/DesignWR/css/bootstrap.icon-large.min.css"
                  afterScriptsLoaded="{!c.disableFocus}"/>
Kindly help me to resolve this issue



 
Hi,
I am facing issue on challenge 7, The AddBoatReview component doesn't define the description using lightning:inputRichText. The rich text component should be bound to the BoatReview__c.comments field, and suppress font selection.

 My code -
<div class="slds-form-element">
                <label class="slds-form-element__label" for="description">Description</label>
                <div class="slds-form-element__control">
                    <lightning:inputRichText aura:id="description" title="description" disabledCategories="['FORMAT_FONT']" value="{!v.boatReview.Comments__c}"/>
                </div>
            </div>
Any suggestion?
Hello,
I have created an lightning application using Bootstrap,JQuery js. its working fine without lightning locker service enabled. It's not working with Lightning locker service enabled. I  did some analysis on the chrome debugger tool. 
Without Lightning locker service,
The JS resource loaded under the domain name refer image1
User-added image
With Lightning locker service,
The JS resource loaded under the file:// folder refer image2 [its trying to refer from local]. Am getting error like 'Cannot read property'expando' of undefined throws at/resource/DesignWR/jquery.js:5:4569'
User-added image
<ltng:require scripts="/resource/DesignWR/js/jquery.js,    
                           /resource/DesignWR/js/bootstrap.min.js"
                  styles="/resource/DesignWR/css/bootstrap.css,
                          /resource/DesignWR/css/bootstrap.icon-large.min.css"
                  afterScriptsLoaded="{!c.disableFocus}"/>
Kindly help me to resolve this issue



 
I'm passing this challenge, however when I actually test it out by clicking on an account in the account list item, I get this exception: 

"Something has gone wrong. Action failed: c$AccountMap$controller$accountSelected [TypeError: Cannot read property 'reuseTiles' of undefined] Failing descriptor: {c$AccountMap$controller$accountSelected}."

I did some debugging and found that the location and latitude of the account are indeed being capture by my event, so it looks like this might be a problem with the leaflet function map.panTo(). Does anyone know the solution to this issue? Here's my code, although it's exactly the same as the tutorial's.
 
({
    jsLoaded: function(component, event, helper) {

        setTimeout(function() {
            var map = L.map('map', {zoomControl: false}).setView([37.784173, -122.401557], 14);
            L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}',
                {
                    attribution: 'Tiles © Esri'
                }).addTo(map);
            component.set("v.map", map);
        });
    },

    accountsLoaded: function(component, event, helper) {

        // Add markers
        var map = component.get('v.map');
        var accounts = event.getParam('accounts');
        for (var i=0; i<accounts.length; i++) {
            var account = accounts[i];
            var latLng = [account.Location__Latitude__s, account.Location__Longitude__s];
            L.marker(latLng, {account: account}).addTo(map);
        }  
    },

    accountSelected: function(component, event, helper) {
        // Center the map on the account selected in the list
        var map = component.get('v.map');
        var account = event.getParam("account");
        alert(account.Location__Latitude__s + ', ' + account.Location__Longitude__s);
        map.panTo([account.Location__Latitude__s, account.Location__Longitude__s]);
    }
})

 
Hi All,

Please look into this, I am not able to call the jQuery datatable function. Below are the details - 

DatatableApp.app - 
<aura:application >
        <c:DatatableComponent />
</aura:application>

DatatableComponent.cmp -
<aura:component controller="DatatableController">
<!-- Static Resource details - jQuery js file --> (jQUerySource), jQuery Datatable file --> (jqueryDatatableJS) -->
	<ltng:require scripts="/resource/1466061468000/jQuerySource,/resource/1466061531000/jqueryDatatableJS" afterScriptsLoaded="{!c.jsLoaded}"/>
<!-- doInit method will call JS controller and then will get the details from Apex Controller and put in into the HTML using aura:iteration -->
  <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> 
              <table class="display" id="#sampleTable">
			<thead>
				<tr>
					<th>ID</th>
				</tr>
			</thead>
			<tbody>
				  <aura:iteration items="{!v.cases}" var="case">
         <tr><td>1</td><td>{!case.Id}</td></tr>
       </aura:iteration>
			</tbody>
		</table>
        </div>
        <div class="col-md-2"></div>
    </div>
 </aura:component>
DatatableComponentController.js - 
 
({
    jsLoaded: function(component, event, helper) {
        debugger;
        $('#sampleTable').DataTable();
    },
   doInit: function(component, event, helper) {    
      helper.getCaseList(component);   
   }
})
DatatableComponentHelper.js - 
({
    getCaseList: function(component) {
    var action = component.get("c.getCases");
    var self = this;
    action.setCallback(this, function(actionResult) {
        component.set("v.cases", actionResult.getReturnValue());            
    });
    $A.enqueueAction(action);
  }   
})
DatatableController.apxc - 
public class DatatableController {
   @AuraEnabled
   public static List<Case> getCases() {
       system.debug([SELECT Id FROM Case limit 10]);
       return [SELECT Id FROM Case limit 10];
   }   
}
On click of preview button. I am getting this error -

User-added image

I am using jquery data table (https://datatables.net/) here.

Need urgent help.

Thank you in advance.
 

For a normal Email Task (workflow rule), you can specify that the sender is an org-wide email address.

We need to be able to set this for the Approval Request Notification template on an Approval Process.

 

How do I accomplish this?  It is critical to our business that the submitters of the request DO NOT have their name and email on the notification.