Hello,
I need the record registry on the sidebar page to automatically refresh when the page is opened. I'm trying to use crt.HandleSidebarOpenRequest (version 8.1.4). Here is my code:
handlers: /**SCHEMA_HANDLERS*/[
{
request: "crt.HandleSidebarOpenRequest",
handler: async (request, next) => {
console.log("Обробник викликано");
const result = await next?.handle(request);
console.log("Після next.handle(request)");
const handlerChain = sdk.HandlerChainService.instance;
// Оновлюємо дані при відкритті сторінки
await handlerChain.process({
type: "crt.LoadDataRequest",
$context: request.$context,
params: {
config: {
loadType: "reload",
useLastLoadParameters: true
},
dataSourceName: "DataGrid_69bg53fDS"
}
});
console.log("вуцауца");
return result;
}
}
]/**SCHEMA_HANDLERS*/,
However, the handler is not triggering. Could you please help?