Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Custom portal Navigation

32
Views
7
Comments
4049147
4049147 Rank 2 - Community Beginner

Hi,

I wanted to update the action links to navigate to a new dashboard by invoking a browser script. I created the function called customPortalPageNav in Userscript.js as shown below.

USERSCRIPT.customPortalPageNav = function(arg_array){

  var str="parent.PortalPageNav(1";

  for(args in arg_array){

  var arg_name=args;

  var value=arg_array[arg_name];

  str+=",'"+value+"'";

  }

  str+=")";

  eval(str);

};

USERSCRIPT.customPortalPageNav.publish={parameters:[

  new USERSCRIPT.parameter("1","Dashboard","/shared/FOLDERNAME/_portal/DASHBOARDNAME"),

  new USERSCRIPT.parameter("2","Page","Insert your Page"),

  new USERSCRIPT.parameter("3","Table","Insert Table"),

  new USERSCRIPT.parameter("4","Column","Insert Column"),

  new USERSCRIPT.parameter("5","Value","Insert Value")]};

I restarted the Presentation Servers after making this change. However, I still see this function not appearing when I choose the action links in column properties of the dashboard. Has anyone come across this issue? please let me know if I missed any steps here ? I am not sure why the new function isn't showing up.

Thanks.

Comments

  • FTisiot
    FTisiot Rank 6 - Analytics Lead

    Hi,

    I found that the issue is due to caching.

    Please try:

    a) restart the analytics deployment in the console

    b) delete the history in your browser

    c) close and open your browser

  • 4049147
    4049147 Rank 2 - Community Beginner

    Thank you for the information. Can you please elaborate on the first point? Do you mean I should upgrade analytics deployment?

  • Restarting the Weblogic deployment can be done in Weblogic Administration Console. All the deployments have controls to start/stop/restart them.

  • 4049147
    4049147 Rank 2 - Community Beginner

    I restarted analytics deployments on the weblogic console, cleared cache and retried, but I am still seeing the same error. When I click on "Invoke browser script" and choose function name I don't see "USERSCRIPT.customPortalPageNav" available to select.

  • FTisiot
    FTisiot Rank 6 - Analytics Lead

    Did you check if there are multiple files named UserScript.js?

    maybe the changes are applied to the wrong one

  • 4049147
    4049147 Rank 2 - Community Beginner

    You caught it right. I made changes to the wrong file. Modified the right file and it worked fine.

    Thank you for all the help

  • FTisiot
    FTisiot Rank 6 - Analytics Lead

    Happy to help!

    If this thread contains the solution to your problem please mark it as solved to help others with the same problem!

    Francesco