- Goal: I have this table where I can selected N rows. In the table there is a toolbar that has a button that will run a javascript resource query:
const { selectedSourceRows } = statementsByLoanIdTable;
selectedPdfUrls.setValue(Object.values(selectedSourceRows).map(obj => obj.signedDownloadLink));
selectedPdfUrls.value.forEach(url => {
utils.openUrl(url, '_blank')
});
The problem with this snippet is that utils.openUrl()
only opens 1 url even if it's looping through the list. How can I get around this?
- Screenshots: