PostInteraction Implementation and override
Posted: Tue Mar 08, 2022 3:04 pm
Hi, we have this bit of code
viewer used type is viewer: Stimulsoft.Viewer.StiViewer,
viewer.jsObject.postInteractionOld = viewer.jsObject.postInteraction;
viewer.jsObject.postInteraction = (params: PostInterraction) => {
if (params.action == 'InitVars') {
//
}
if (params.action == 'Variables' && AllowApiReportCallback.includes(viewer.report.reportName)) {
///
}
viewer.jsObject.postInteractionOld(params);
};
Problem is it keeps complaining Property 'postInteractionOld' does not exist on type 'StiJsViewer'.ts(2339) Any ideas?
viewer used type is viewer: Stimulsoft.Viewer.StiViewer,
viewer.jsObject.postInteractionOld = viewer.jsObject.postInteraction;
viewer.jsObject.postInteraction = (params: PostInterraction) => {
if (params.action == 'InitVars') {
//
}
if (params.action == 'Variables' && AllowApiReportCallback.includes(viewer.report.reportName)) {
///
}
viewer.jsObject.postInteractionOld(params);
};
Problem is it keeps complaining Property 'postInteractionOld' does not exist on type 'StiJsViewer'.ts(2339) Any ideas?