アクションを公開してすべてのインサイトを取得
recordContextを現在のボウ・サー・タブ・アクティブ・レコードとみなして、インサイトを表示するTypescriptの例を次に示します:
let recordContext: IRecordContext = await uiEventsFrameworkInstance.getCurrentBrowserTabContext().getActiveRecord();
let insightContext: IInsightContext = await recordContext.getInsightsContext();
const payload: IShowInsightsRequest = uiEventsFrameworkInstance.requestHelper.createPublishRequest('GetAllInsights');
insightContext.publish(payload).then((response: IInsightsGetAllOperationResponse) => {
console.log((response.getResponseData() as IInsightsGetAllOperationResponseData).getInsights());
});
recordContextを現在のバウサ・タブ・アクティブ・レコードとみなして、インサイトを表示するJavaScriptの例を次に示します:
let recordContext = await uiEventsFrameworkInstance.getCurrentBrowserTabContext().getActiveRecord();
let insightContext = await recordContext.getInsightsContext();
const payload = uiEventsFrameworkInstance.requestHelper.createPublishRequest('GetAllInsights');
insightContext.publish(payload).then((response) => {
console.log(response.getResponseData().getInsights());
});