function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hema YejjuHema Yejju 

i want a custom object field to provide input on record page while i am clicking quick action button

@AuraEnabled(cacheable=true)
     public static Map<Id,String>   getCaseextCd(Id recordId){
      List<Case>  csext = new List<Case>();
     List<object__c> csExList=new List<object__c>();
     Map<Id,String> caseIdCommentforsales=new Map<Id,String>(); 

  
    csext=[Select Id, (SELECT Case__c, Comment_for_Sales__c,Approver__c FROM object__r FROM Case WHERE Id=:recordId];

          System.debug('csext :::'+csext);

        for(Case c:csext){

                if(!c.object__r.isEmpty()){
                    csExList.add(c.object__r); 
                } 
                
            }
       for (object__c csEx:csExList){
        caseIdCommentforsales.put(csEx.Case__c,csEx.Comment_for_Sales__c ); 
    
        system.debug('caseIdCommentforsales'+caseIdCommentforsales);

            }
            
            return caseIdCommentforsales;
     }


LWC:

 @wire(getCaseextCd, { recordId: '$recordId', fields: [NAME_FIELD1] })
    cons(result) {
        this.caseCommentr = result;
        if (result.error) {
            this.caseCommentr = undefined;
        }
    };

_______________________________________________

My LWC was incorrect and i am unable to write the lwc how to display the field on Click of the quick action button and how to stroe the input given for the field on the record for the particualr Objetc.field 
Hema YejjuHema Yejju
can some one help me here 
mukesh guptamukesh gupta
Hi Hema,

Please follow below url:-

https://www.apexhours.com/call-apex-method-from-lightning-web-components/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 
Hema YejjuHema Yejju
Hi Mukesh,

i an trying to display one custom object field using <lightning-record-edit-form> inside of </lightning-quick-action-panel> to display that field on my button click of quick action .

but i am not getting my custom object field on UI.

could you pleasse let me  know what was the mistake

<lightning-record-edit-form
         object-api-name={MY_CUSTOM_OBJECT}
         record-id={recordIdcaseext}
         onsuccess={handleSuccess}
        >

import MY_CUSTOM_OBJECT from '@salesforce/schema/Case_Ext__c';