How to copy text from Interactive Grid Oracle Apex
Copy Text From Interactive Grid Oracle Apex
Topic Introduction: In Oracle Apex Interactive Grid, often we face a problem that can't copy column text, if we want to copy it will copy hole row. In this type of situation we can use this technic to copy specific cell value from a Interactive Grid Report.
1. Create a Dynamic Action On Page Load
i. Identification > Name:
ii. When > Event: Page Load
2. Create a Action Under True
i. Identification > Name:
ii. Identification > Action: Execute JavaScript Code
iii. Settings > Code
document.addEventListener('copy', (event) => {const activeElement = $(document.activeElement)[0];const textToCopy = activeElement?.innerText || window.getSelection();event.clipboardData.setData('text/plain', textToCopy);event.preventDefault();});
No comments