• mohd areeb 8
  • 0 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
  • 4
giving error while giving parameter in url for record related list
How can i do this? as i want to pass parent record id and its child name 
async connectedCallback() {
    await this.ScrollToTop();
    let result = await getLocationwithKeys({});
    this.LocationAllData =await this.filterCountData(result);
    console.log('this.LocationAllData....' + JSON.stringify(this.LocationAllData));

async filterCountData(result) {
    for (let i = 0; i < result.length; i++) {
        let count = 0;
        if (result[i].VFD_Datas__r)
            count = count + result[i].VFD_Datas__r.length;
        if (result[i].Existing_Keys__r)
            count = count + result[i].Existing_Keys__r.length;
        if (result[i].Refrigeration_Data_Tables__r)
            count = count + result[i].Refrigeration_Data_Tables__r.length;
        if (result[i].Add_Sensors_Data__r)
        count = count + result[i].Add_Sensors_Data__r.length;
        result[i].count = count;
            result[i].showrecordy =true;
    return result;

<select key={rel.Id} class="form-control" for:each={courseRels.data} for:item="rel">
<option >

@wire(getLocationList) courseRels;

apex controller
public static List<Location__c> getLocationList() {
return [SELECT Id, Name FROM Location__c];
<aura:component  controller = "EmailViewController">
    <aura:attribute name="userList" type="User[]"/> 
    <aura:handler name="init" value="{!this}" action="{!c.pickUser}"/>

    <lightning:combobox name="general" label="Many Options" 
               placeholder="Select a User Option" options{!v.userList}" onchange="{! c.pickUser}"/>

<.JS controller>

pickUser: function (component, event, helper) {
        var action = component.get("c.getUsers");
        action.setCallback(this, function(response){
                var state = response.getState();
                if (state === "SUCCESS") {
                    var listItems = response.getReturnValue();
                    component.set("v.userList", listItems);

<Apex Controller>

	public static List<User> getUsers()
		List<User> lstUsers = [SELECT Id,FirstName,LastName FROM User];

		return lstUsers;

Can some one please check my coode and tell me why my picklist in the lightning cmponent is not populating with anu values? 

Basiclaly on my lightning component I want a picklist of Users. 

Thanks !
I just can't seem to get pass stage 10, as I keep getting, the below error:
"The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values."
I have tried with different trail orgs and same issue persists.  Has anyone tried this challenge recently and do you have this issue?

The link in the button I have is "/one/one.app#/sObject/00O0N000004ti60/view?fv0={!Campaign.Id}" - the ID of the report is correct and when clicked from campaign it filters correctly.
Campaign report link

In a custom object I have a dependent picklist, and I have provided field level access(read/write) through permission sets. If i provide Read&write permission for Dependent field and only Read permission permission for Controlling field, I got the below error while loading the page.

ERROR: "The dependent picklist 'Dependentfield' requires its controlling field 'Controllingfield' to be present on the page."

Can anyone tell is this is the standard behaviour of salesforce or i need not do anything to make it work fine?

Thanks in advance.