Work has been a killer lately, and unfortunately that did not include any programming whatsoever. Luckily this evening I finally got some spare time to play with APEX Page Designer again.
When I do am doing development stuff I have many browser tabs open or even multiple browsers at the same time.
I thought it would be cool if you could see the current application and page id in the browser tab.
This is especially useful if looking at those miniature preview windows you have in the Windows task bar.
var l_appid = pe.getCurrentAppId(); // get current appid from PageDesigner model
var l_page = pe.getCurrentPageId(); // get Currrent page from PageDesigner model
var l_title = $(document).attr('title');
l_title = l_title.replace(/\s\[.*$/,'');
l_title += ' [' + l_appid + ':' + l_page + ']';
There are probably some edge cases that need to be tested.
I’m planning on adding the feature to the next Xplug version.