Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Button for copy to clipboard issue APEX 23.1

Faezeh EbrahimiNov 19 2023

I've made a button and I've a Display Only page item called P5_COPY When I click on button , it should copy the value of P5_COPY into clipboard .

Here what i did :

var str = apex.item('P5_COPY').getValue();
navigator.clipboard.writeText(str);

But it copied 'str' not the value ! even the first line of code shows the value of page item .

Details about my dynamic action :

Event Scope : static

Type : immediate

event : click

Selection Type : JQuery selector

jQuery Selector : #P5_COPY

Where did I go wrong ?

Any help would be appreciated !

Comments
Post Details
Added on Nov 19 2023
4 comments
2,172 views