機械翻訳について

UpdateSidePane操作 - setSectionId

この操作は、Fusionアプリケーションの特定のサイド・ペインのセクションまたはアイコンまたは可視性を更新するために使用されます。 SidePaneContextオブジェクトの作成時に、sidePaneのIDを渡す必要があります。 「The SidePane」セクションは、setSectionId APIをコールすることで、すでに拡張したものとは異なるセクションに設定できます。 セクションIDは、SidePaneの拡張時に使用されたセクションIDと一致する必要があります。

TypeScriptの例を次に示します:

const updateSidePaneContext = async () => { 
    const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1'); 
    const sidePaneContext: ISidePaneContext = await uiEventsFrameworkInstance.getSidePaneContext('sidePaneId'); 
    const payload:IUpdateSidePaneRequest = uiEventsFrameworkInstance.requestHelper.createPublishRequest('UpdateSidePane') as IUpdateSidePaneRequest; 
    payload.setSectionId('newSectionId');
    sidePaneContext.publish(payload).then((response: IOperationResponse) => { 
        console.log(response)    
    }).catch(() => { }) 
}

JavaScriptの例を次に示します:

const updateSidePaneContext = async () => {
    const uiEventsFrameworkInstance = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
    const sidePaneContext = await uiEventsFrameworkInstance.getSidePaneContext('sidePaneId');
    const payload = uiEventsFrameworkInstance.requestHelper.createPublishRequest('UpdateSidePane');
    payload.setSectionId('newSectionId');
    sidePaneContext.publish(payload).then((response) => {
        console.log(response);
    }).catch(() => { })
}