케이스 목록 구성요소에 대한 샘플 코드

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • 이벤트가 트리거될 때 작업을 정의하기 위해 샘플 코드가 제공됩니다. 웹 페이지에 구성요소를 포함하기 전에 사용 사례에 대한 샘플 코드를 업데이트합니다.

    샘플 코드

    { 
    
    'SN_EMBEDX_CASE_LIST#RECORD_SELECTED' : (e) => { 
    
    // This event is dispatched when a record is selected. 
    
    var {table, record_sys_id} = e.detail.payload; 
    
    // the logic to construct the URL for the Case View component. Add your portal URL here. 
    
    const caseViewURL = '/caseview?emb_table='+table+'&emb_recordid='+record_sys_id; 
    
    // Redirect to the Case view component page 
    
    open(caseViewURL,'_self'); 
    
    }, 
    
    'SN_EMBEDX_CASE_LIST#COMPONENT_READY' : (e) => { 
    
    // This event is dispatched when a component is ready and usable. 
    
    }, 
    
    'SN_EMBEDX_CASE_LIST#COMPONENT_ERROR' : (e) => { 
    
    // This event is dispatched when a property validation or internal error occurs. 
    
    var {errorMessage, errorType} = e.detail.payload; 
    
    console.log(errorMessage, errorType); 
    
    }