Hello!
I'm having an issue with a DA I created for copying comment value from first textarea item to the following fields in the same report. The textarea field is created within a report region SQL query APEX_ITEM.TEXTAREA(1, ..., ..., ...).
I created a button which runs a JavaScript expression with the following code:
if ($('input[name=f01]').val() == undefined) {
apex.message.clearErrors();
apex.message.showErrors([{type:'error',location:'page',message:'No comments inserted',unsafe: false}]);
} else {
$('input[name=f01]').val($('input[name=f01]').val());
}
Whatever is inserted into the textarea the code still returns an error saying 'No comments inserted', which means it's not receiving any data from the textarea item. Why is that? How to get around that issue? I have used the same method on other items and it's working as needed.