Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APEX 19.2: XLSX buttons keeps adding to the download dialog in IG, if there are more than one IG on a page #107

Open
lyoup opened this issue Aug 29, 2023 · 1 comment

Comments

@lyoup
Copy link

lyoup commented Aug 29, 2023

Hi Pavel,

If there are more than one interactive grid on a page, each time the "Download" dialog is opened in a new grid, more XLSX buttons are added. First time we have 1 button (OK), in a second grid there will be 3 buttons, calling download again in the first grid will show 4, calling from another grid adds 4 buttons etc. The number of buttons is growing until they are shown outside the dialog and cover all the screen...

I tried to fix the code IG2MSEXCEL.js adding $("button").remove(".ir-to-ms-excel-button"); before the section where a new button is appended in the function addDownloadXLSXiconToIG, but it only helped to create only one button on each call (so it is not a Fibonacci sequence).

Best regards
Natalia

@lyoup
Copy link
Author

lyoup commented Aug 29, 2023

fixed by modifying the command which clones the button:

var $button = $(".ui-button--hot:first").clone();

instead of

var $button = $(".ui-button--hot").clone();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant