Render Report Page in Dialog modal on same page #7359
Unanswered
flashyjunior
asked this question in
Help
Replies: 2 comments 1 reply
-
Please any assistance will be greatly appreciated |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can't test the code now but this is the execute function from the framework that you are calling: export function execute(options: ReportExecuteOptions) {
var opt = options.getParams ? options.getParams() : options.params;
postToUrl({
url: '~/Serenity.Extensions/Report/' + (options.download ? 'Download' : 'Render'),
params: {
key: options.reportKey,
ext: options.extension ?? 'pdf',
opt: opt ? JSON.stringify(opt) : ''
},
target: options.target ?? '_blank'
});
} I would try to set the target option to "_self" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I generate a report that opens in a new tab using the below code snippet after the save button is clicked in the dialog, how can i make it render on the same page probably in a modal or something instead of opening in a new browser that gets sometimes get blocked by the browser.
Beta Was this translation helpful? Give feedback.
All reactions