• Pavushetti Abhilash 3
  • NEWBIE
  • 25 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 31
    Questions
  • 12
    Replies
Hi Everyone,
There are few survey reports displays the responses of questions in survey which is submitted by customer. So that report contain responses. All these reponses stored in SURVEY QUESTION SCORE object. 
This SURVEY QUESTION SCORE object is not a direct object, wont show in configuration part( object manager, OWD, Permission sets and profile). 
Until unless survey question score object has required permission the REPORT DATA will not visible to that user.
How can I acheive this. Remaining reports(based on case) are visible to specific user. (given all survey related permissions). Its a challenge for me. Please me out guys.

Thanks
Hi Everyone.
I need to add Email(not email button) beside Post in layout (dragged chatter publisher in feed) . So I added email in layout  and assigned to two profiles profile A and profile B. For profile A its visible. For profile B its not visible. Only post is displaying. I cheked with feature settings, support settings. I dont think there is problem with settings, because Email is showing to one profile A but not B. Is there any permissions required in profile B?  What will be the reason for not displaying. Same layout for another profileA it displays but not profile B. Please let me know.
eMAIL NOT DISPLAYING BESIDE POST.
Hi eveyone.
I need to display row number as seperate column with Row number as label in Custom LWC datatable. For every record should display serial number as seperate column with header. 
NOTE: I am not asking about show-row-number= true.
I should display row number as seperate field/column in table.

<c-custom-type-component
                            class="POdataTable slds-table_header-fixed_container slds-scrollable_x slds-border_top" 
                            key-field="Id" 
                            data={POrecords}
                            columns={columns} 
                            selected-rows={preSelectedRows} 
                            onrowaction={getPopUpInfo}
                            onpicklistchanged={tablePicklistChanged} 
                            onchangeofreturnqty={handelReturnQty}   
                            onselectedrow={handelSelectedRow}   
                            hide-checkbox-column                     
                        ></c-custom-type-component>

@track columns = [
{
            label: 'Row Number', cell: (row, index) => index + 1 
        }
]
If I am wrong PLEASE let me know. Thanks. 
Hi Everyone.
I want to add colors to LWC standard Lightning datattable. Please let me know how to add. 
<div class="slds-m-top_small slds-m-bottom_xx-large" >
                        <c-custom-type-component
                            class="POdataTable" 
                            key-field="Id" 
                            data={POrecords}
                            columns={columns} 
                            onrowselection={selectedRecord}  
                            selected-rows={preSelectedRows}
                            onsave={handleReturnQuantity}
                            draft-values={saveDraftValues} 
                            onclick={removeInlinePopover}
                            oncancel={clearSelecteData}
                            min-column-width="120"
                            onrowaction={getPopUpInfo}
                            suppress-bottom-bar={supp}
                            onpicklistchanged={picklistChanged}
                        ></c-custom-type-component> 
                    </div>

-----JS----
{label:'PO#', fieldName:'PO_Number__c', type:'text',class : "POdataTable", innerWidth:120, cellAttributes: 
        { class: 'slds-text-color_success slds-text-title_caps slds-color__background_gray-5'}
    },-------- so on columns
-------CSS-----
.THIS {
}
.THIS .POdataTable thead th span { 
background-color: #2a5596; 
color: white;
}
Hi everyone.
I have a custom object Address__c. In address there are few fields called Strret, Colony, City, State, Country. In LWC combobox drop down, these custom object fields should display. Please let me know the required code part. For example just like in Amazon while selecting delivery we will get picklist values with addresses linked to account. If we have 4 addresses amazon will ask in dropdown the ask to select one address. 
Hi folks.
I did the INLINE EDITING in SLDS table LWC. When user updated the record with INLINE EDITING and clicks on SAVE the record not updating. Record updates only when we RELOAD THE PAGE. Record should update as soon as user click on save. Please help me regarding this. Refer below HTML and JS code. Let me know any change in refreshApex()..
-------------------HTML-------------------
<template>
    <div class="slds-m-bottom_large">
        <div class="slds-grid slds-gutters">
            <div class="slds-col slds-size_4-of-5" style='font-weight: 500;font-size: 18px'>
                <span>RMA Case Line Item History</span>
            </div>
        </div>
    </div>
    <div class="landingpagebody">      
        <lightning-card title="">          
        <div class="slds-m-top_large">                  
            <lightning-datatable draft-values={draftValues}  
                                show-row-number-column 
                                onsave={handleSave} 
                                key-field="Id" 
                                data={rmarecord} 
                                columns={columns}
                                onrowselection={updateSelected}
                                oncellchange={cellChange}  
                                onclick={navRecordpage}></lightning-datatable>                             
        </div>
    </lightning-card>
    </div>
</template>
------------------------JS----------------------------
import { LightningElement, wire, track, api} from 'lwc';
import { getRecord, getFieldValue } from "lightning/uiRecordApi";
//import CONTACT_ID from "@salesforce/schema/User.ContactId";
import USER_ID from "@salesforce/user/Id";
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import getSelectedCaseLineItems from '@salesforce/apex/rmaCaseLineItemController.getSelectedCaseLineItems';
import updateCases from '@salesforce/apex/rmaCaseLineItemController.updateCases';
import { refreshApex } from '@salesforce/apex';
import { updateRecord } from 'lightning/uiRecordApi';

 // import { recordId } from 'lightning/uiRecordApi';

export default class RmaCaseLineItem extends LightningElement {
    
    @api recordId;
    objectApiName = 'R4C_Case_Line_Item__c'; 
    @track rmarecord;
    @track conid;
    @track error;
    @track draftValues = [];
    wiredRecords;

    @track columns = [ 
       
        {label:'Approval status', fieldName:'Approval_status__c', type: 'boolean',editable: true},
        {label:'PO#', fieldName:'Name', type:'url', 
        typeAttributes: {
            label: { 
                fieldName: 'Name' 
            },
            target : '_blank'
        }
        },        
        {label:'SO#', fieldName:'SO__c', type:'text'},
        {label:'PO Date', fieldName:'PO_Date__c',type:'text'},
        {label:'Sold To', fieldName:'Sold_To__c', type:'text'},
        {label:'Ship To', fieldName:'Ship_To__c', type:'text'},
        {label:'Line Item', fieldName:'Line_Item__c', type:'text'},
        {label:'Intel Product Number', fieldName:'MMID__c',type:'text'},
        {label:'Intel Product Name', fieldName:'EPM_Name__c', type:'text'},
        {label:'Customer Part Number', fieldName:'Stocking_ID__c', type:'text'},
        {label:'Quantity', fieldName:'Quantity__c', type:'text'},
        {label:'Return Quantity',fieldName:'Return_Quantity__c', type:'number'},
        {label:'Billed Quantity', fieldName:'Billed_Quantity__c',type:'text'},
        {label:'Net value', fieldName:'Net_Value__c', type:'currency'},
        
    ]
    @wire(getSelectedCaseLineItems, {caseid: '$recordId'}) caseLineItems({data, error}){
        
        if(data){
            this.rmarecord = data;
            console.log(data);
          //  console.log(recordId);
        }
        if(error){
            console.log(error);
        }
    }
    
    handleSave(event){
      //  this.draftValues = event.detail.draftValues;
        const recordInputs = event.detail.draftValues.slice().map(draft => {
            const fields = Object.assign({}, draft);
            return { fields };
        });
         console.log('RECORDINPUTS', JSON.stringify(recordInputs));
        // Updating the records using the UiRecordAPi
        const promises = recordInputs.map(recordInput => updateRecord(recordInput));
        Promise.all(promises).then(rmarecord => {
            this.dispatchEvent(
                new ShowToastEvent({
                    title: 'Success',
                    message: 'Records Updated Successfully!!',
                    variant: 'success'
                })
            );
            this.draftValues = [];
            // Display fresh data in the datatable
             return this.refresh;
        }).catch(error => {
            this.dispatchEvent(
                new ShowToastEvent({
                    title: 'Error',
                    message: 'An Error Occured!!',
                    variant: 'error'
                })
            );
        })  .finally(() => {
            this.draftValues = [];
        }); 
    
    }
    
    
    
    
    // This function is used to refresh the table once data updated
    async refresh() {
        await refreshApex(this.rmarecord);
    } 
  
}
-----------------------------------------------------------------------------
User-added imageHi Folks,
I want to create a new case using NEW BUTTON in case object. So there were no standard button NEW available. In case object "Search Layout for Salesforce Classic" gone to List Views edit and Checked (box) the New button. So the button added. When I click on NEW button, I got the above error.(pic 1) Please provide the solution to overcome.
User-added image
ANOTHER METHOD:
I have created Action(New button) in Buttons and Links. So when i click on NEW button, its asking "please select atleast one existing record" (pic 2). So when i select one existing record, based on that its creating new record. I need to create new record directly without asking existing record. How could I overcome this. Please provide any solution among two methods. 
I'm working on the process builder challenge, and I can't seem to get it to work. Any help would be greatly appreciated.
Challenge: You've been given a requirement to keep Contact addresses in sync with the Account they belong to. Use Process Builder to create a new process that updates all child Contact addresses when the address of the Account record is updated. This process: Can have any name. Must be activated. Must update Contact mailing address fields (Street, City, State, Post Code, Country) when the parent Account shipping address field values are updated.
What I did:
1. All Contact validation rules were deleted.
2. Under process builder, Choose an object was set to Account (when a record is created or updated)
3. Under criteria: dummy name, selected when conditions are met, selected all 8 of the account shipping fields (isChanged, boolean true) and Any of the conditions are met.
4. Craeted a UPDATE action. Added fields Mailing street field reference with Account.shipping street, Mailing city ref with Acct.shippingcity, etc, etc.
So child (contact) mailing address will change when there is an update in parent(account) shipping address.
So when I check the challenge it doesnt accepting and thrown a message ""We updated the shipping address in an account record, but we can’t find the new address values in each child contact’s mailing address. Make sure the process is active"". 
I am sure that my process is active. I checked my all contacts mailing address, few contacts have mailing address few doesnt have. For few conatcts I added address( street, city, postcode, country,state). But so many contacts are exist. Does this affecting my challenge? How could I overcome this????
Hello, I am displaying custom object records in Datatable via @wire, Since account is a lookup, it displays account id instead of account name. How can I display the name of the account in the colum. 

I have tried the following but it doesn't work. Please suggest.
 {
        label: 'My Accounts',
        fieldName:'My_Account__r.Name
        type: 'text',
        sortable: true
  }
 
Hi everyone,
I'm working with a lightning component and it's working cool but I want to know if it's possible to disable certain days from a datepicker (weekends).
I did something similar but just for past days. 

I've reading that could be possible using jQuery but I can't find a good "documentation" about that, 

Thanks. 
Regards.