• Balaji Selva Sekaran 8
  • NEWBIE
  • 10 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
I am getting error like below when i open more than 5 tabs or keep the session open for more than 5 minutes.

Can some one help me please?

User-added image
I am trying to create a case record using lightning recordForm by just simply giving layout type as Full, when i try creating record from the page after i click save it throws me blank page whereas the record got created in the object .

Am i missing something here please?
==========================================
<template>
    <div class="slds-box" style="background-color: lavender">
        <lightning-record-form columns="2" layout-type="full" object-api-name={Caseobject}>
        </lightning-record-form>
    </div>
</template>
============================================

import { LightningElement } from 'lwc';
import case_object from '@salesforce/schema/Case';
export default class CaseRecordForm extends LightningElement {
    Caseobject=case_object;
}
User-added imageUser-added image
I have started using VS Code for my salesforce development, but i don't see autocomplete works in my vscode.
i have refreshed SFDX: Refresh SObject Definitions, the command is success but still no luck.

Can someone help me with this please?
Is it possible to integrate with multiple external systems? If yes then should we adding multiple URL in remote site settings?
I have an custom object called ProductDetail__c where i am trying to fetch the data from apex method using @wire as function as shown in the screenshot and after clicking view details button , i want to navigate to the record detail page but it is not happening.

Can someone help me with this please and how to put the debug statements inorder to debug on my own.

Sorry i am new to LWC.

Apex class
============================================
public with sharing class ProductManager {
    @AuraEnabled(cacheable=True)
    public static List<ProductDetail__c> fetchProductData(){
       
        List<ProductDetail__c> ProdList=new List<ProductDetail__c>();
        ProdList=[select Id,Name,Product_Family__c,Product_Description__c,Product_Code__c from
                    ProductDetail__c where IsActive__c = True];
        return ProdList;
    }
}
==========================================
import { LightningElement, wire } from 'lwc';
import  fetchProductData  from '@salesforce/apex/ProductManager.fetchProductData';
export default class ServerProductData extends LightningElement {
    ProductDetails;
    ProductId;
    errorDetails;
    @wire(fetchProductData)
    ProductDetailInfo({error,data})
    {
        if (data)
        {
            this.ProductDetails= data;
        }
       
        else if(error){
            this.errorDetails= error;
        }
    }
    navigateDetails(event){
        this.ProductId = event.target.value;
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attributes:{
                recordId:this.ProductId,
                objectApiName:'ProductDetail__c',
                actionName:'view'
            }
        });
    }
}
=================================================

<template>
    <div class="slds-box">
        <template if:true={ProductDetails}>
            <div class="slds-grid slds-wrap slds-gutters">
                <template for:each={ProductDetails} for:item="Prod">
                    <div class="slds-col slds-large-size_4-of-12 slds-medium-size_1-of-12 slds-size_1-of-12 slds-p-around_small" key={Prod.Id}>
                        <lightning-card title={Prod.Name}>
                            <lightning-button label="View Details" variant="success" slot="actions" onclick={navigateDetails} value={Prod.Id}>
                            </lightning-button>
                            <div class="slds-var-p-around_small">
                                <p>{Prod.Product_Description__c}</p>
                                <p>{Prod.Product_Code__c}</p>
                            </div>
                        </lightning-card>
                    </div>
                </template>
            </div>
        </template>
    </div>
</template>
=================================================
User-added image
I have two different custom objects course List and Trainer List, and i have established master detail relationship between two.
Course List is master and Trainer List is detail and when i try to create a new record in trainer list object, i want to search the courses according to the names but by default it is appearing to search with auto number which is quite difficult for me to identify which course i am mapping the trainer.

Is there any alternative for this?


User-added image
I am getting error like below when i open more than 5 tabs or keep the session open for more than 5 minutes.

Can some one help me please?

User-added image
I am trying to create a case record using lightning recordForm by just simply giving layout type as Full, when i try creating record from the page after i click save it throws me blank page whereas the record got created in the object .

Am i missing something here please?
==========================================
<template>
    <div class="slds-box" style="background-color: lavender">
        <lightning-record-form columns="2" layout-type="full" object-api-name={Caseobject}>
        </lightning-record-form>
    </div>
</template>
============================================

import { LightningElement } from 'lwc';
import case_object from '@salesforce/schema/Case';
export default class CaseRecordForm extends LightningElement {
    Caseobject=case_object;
}
User-added imageUser-added image
I have started using VS Code for my salesforce development, but i don't see autocomplete works in my vscode.
i have refreshed SFDX: Refresh SObject Definitions, the command is success but still no luck.

Can someone help me with this please?
Hi, this method gives me a map. I would like to call this method in aura component and haveit displayed on the screen .

User-added image
I have an custom object called ProductDetail__c where i am trying to fetch the data from apex method using @wire as function as shown in the screenshot and after clicking view details button , i want to navigate to the record detail page but it is not happening.

Can someone help me with this please and how to put the debug statements inorder to debug on my own.

Sorry i am new to LWC.

Apex class
============================================
public with sharing class ProductManager {
    @AuraEnabled(cacheable=True)
    public static List<ProductDetail__c> fetchProductData(){
       
        List<ProductDetail__c> ProdList=new List<ProductDetail__c>();
        ProdList=[select Id,Name,Product_Family__c,Product_Description__c,Product_Code__c from
                    ProductDetail__c where IsActive__c = True];
        return ProdList;
    }
}
==========================================
import { LightningElement, wire } from 'lwc';
import  fetchProductData  from '@salesforce/apex/ProductManager.fetchProductData';
export default class ServerProductData extends LightningElement {
    ProductDetails;
    ProductId;
    errorDetails;
    @wire(fetchProductData)
    ProductDetailInfo({error,data})
    {
        if (data)
        {
            this.ProductDetails= data;
        }
       
        else if(error){
            this.errorDetails= error;
        }
    }
    navigateDetails(event){
        this.ProductId = event.target.value;
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attributes:{
                recordId:this.ProductId,
                objectApiName:'ProductDetail__c',
                actionName:'view'
            }
        });
    }
}
=================================================

<template>
    <div class="slds-box">
        <template if:true={ProductDetails}>
            <div class="slds-grid slds-wrap slds-gutters">
                <template for:each={ProductDetails} for:item="Prod">
                    <div class="slds-col slds-large-size_4-of-12 slds-medium-size_1-of-12 slds-size_1-of-12 slds-p-around_small" key={Prod.Id}>
                        <lightning-card title={Prod.Name}>
                            <lightning-button label="View Details" variant="success" slot="actions" onclick={navigateDetails} value={Prod.Id}>
                            </lightning-button>
                            <div class="slds-var-p-around_small">
                                <p>{Prod.Product_Description__c}</p>
                                <p>{Prod.Product_Code__c}</p>
                            </div>
                        </lightning-card>
                    </div>
                </template>
            </div>
        </template>
    </div>
</template>
=================================================
User-added image