For some super advanced tricks we can take a look at the following APIs
Within Javascript section of any widget we can leverage the following API calls
glb_api["add_channel_value"]
This is used to add new parameter value
USAGE:
glb_api["add_channel_value"]("param_name","param_value");
glb_api.drill_refresh()
glb_api["show_tool_tip"]
glb_api["add_channel_value"](parentDiv+"_map_region_value",codeVal)
glb_api["export_page_pdf"]=MT.exportPage2PDF;
glb_api["export_page_png"]=MT.exportPage2PNG;
glb_api.get_page()
glb_api.get_page_obj()
glb_api.refresh_obj= function(pid)
glb_api.get_channel_list = function()
glb_api.get_channel_value = function(pid)
glb_api.get_url_param = function()
Once you call the above API, it will add a key value pair that can be used within other widgets for further filtering of the SQL query.
This is used to add new parameter value
USAGE: glb_api[“add_channel_value”];
glb_api[“export_page_pdf”]=MT.exportPage2PDF;
glb_api[“export_page_png”]=MT.exportPage2PNG;
glb_api.drill_refresh = function() //create shorthand reference to be used in javascript
{
MT.currentPage._refreshAllDataURL(true,’DATA’);
}
glb_api.get_page = function()
{
return MT.currentPage;
}
glb_api.get_page_obj= function(pid)
{
if (typeof(MT.currentPage.objArray[pid])!=”undefined”) return MT.currentPage.objArray[pid];
else return “none”;
}
glb_api.refresh_obj= function(pid)
{
if (typeof(MT.currentPage.objArray[pid])!=”undefined”)
MT.currentPage.objArray[pid]._refreshDataURL();
}
glb_api.get_channel_list = function()
{
return MT.channel;
}
glb_api.get_channel_value = function(pid)
{
return MT.channel[pid];
}
glb_api.get_url_param = function()
{
return MT.get_str;
}