fg

fg

Posts

JS async

async function refreshDashboard() { // refresh the Report apex.region("my_report").refresh(); console.log('Refreshing Report (1)'); return 'something'; } async function titleChange() { // Chane title of the Report if ($("#my_report #report_my_report").length){ $("#my_report #my_report_heading").text("There are some rows in the report - woohoo"); } else { $("#my_report #my_report_heading").text("Sorry, no rows to display"); } console.log('Changing title (2)'); return 'something'; } async function changeTitles() { await refreshDashboard(); await titleChange(); } changeTitles();

No comments :

Post a Comment