"Invoke a Browser Script" Action in OBIEE 11g

Follow website : http://www.rittmanmead.com/2012/07/navigating-to-bi-content-in-obiee11g-and-passing-multiple-parameters/
In file "D:\oracle\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp\_WL_user\analytics_11.1.1\silp1v\war\res\b_mozilla\actions\UserScripts.js"
I added the following function(s) to "UserScripts.js":
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")]};
However, this function "USERSCRIPT.customPortalPageNav" cannot be displayed in "Invoke a Browser Script" Action.
If I put the function name "USERSCRIPT.customPortalPageNav" directly in the "Invoke a Browser Script" Action dialogue, an error message will be shown. It said:
The function "USERSCRIPT.customPortalPageNav" does not exist.
Please check with your administrator that this function has been setup correctly in the user-defined script file.
What I have done wrongly? Or, how can I check the "UserScripts.js" file path is correct? How can I find a correct path for "UserScripts.js">

Hi Dpka,
Yes, I do. But, still the same.
In fact, I can see two sample functions in "Invoke a Browser Script" Action. (i.e. USERSCRIPT.putUrlInFrame, USERSCRIPT.example_displayParameters).
I edit "USERSCRIPT.example_displayParameters", replace "new USERSCRIPT.parameter( 'p3', 'Enter value for Param 3' )" to "new USERSCRIPT.parameter( 'p3', 'Enter value for Param 3', 'p3 default value' )".
Still, there is no default value for "p3".
So, I wonder whether my file path is wrong. But, how can I know where is the exact path?

Similar Messages

  • Invoking a Browser Script in OBIEE 11.1.1.5.0

    Hi
    In-order to meet a requirement I modified the Userscript.js in 11.1.1.5.0 located at "E:\Middleware\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\b_mozilla\actions". After this I restarted all the services in EM, BI Server and ADMIN Server, but to no avail, the changes didn't reflect. It would be very helpful and greatly appreciated if you could provide a work-around/pointer etc to help reolve this issue. Should you require any information please let me know.
    Thanks!!

    Check this:-
    How-to: OBIEE 11g Javascript Integration using Action Framework (Browser Script) ~ Ask John OBIEE - Oracle Business Inte… 
    Mark if helps,
    Thanks,

  • Passing a date presentation variable in 'Invoke a Browser Script'

    Hi,
    I have a problem with passing presentation variable with Invoke a Browser Script.
    In my main report i set the filters and it works correctly:
    ColumnDate is greater than or equal to  @{vStartDate}{01/05/2015}
    ColumnDate is less than or equal to  @{vEndDate}{04/05/2015}
    (It works with different dates, i have tested, not only for the values between 01/05/2015 and 04/05/2015)
    i gave the same filters to the detail report.
    When i choose the action link to go the detail report, it only brings me the values between 01/05/2015 and 04/05/2015 .
    If i remove the default date values then both report gives the error :
    A date value was expected (received "vStartDate"). 
    Error Details
    Error Codes: GYYEWLWG 
    What i am doing wrong?
    Please help me.
    Thanks in advance.

    You should be using prepared statements.
    String scoredGoalsQuery = "SELECT count(name) from player_goal_rel where name = ? and pdate BETWEEN ? and ?":
    PreparedStatement pstmt = connection.prepareStatement(scoredGoalsQuery);
    pstmt.setString(1, pName);
    pstmt.setDate(2, startYear);
    pstmt.setDate(3, endYear);
    ResultSet scoredGoalsResult = pstmt.executeQuery();

  • Issues with integrating Java script functions in OBIEE 11G

    Hello experts..
    I am trying to integrate some Javascript functions in my OBIEE 11G Dashboard..
    I have modified the original common.js file and renamed it as insight_common.js in the following directory (backed up the original file of course)
    OBIEE 11G Folder/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/7dezjl/war/res/b_mozilla/insight_common.js
    In my dashboard, I have a dashboard object as text component where I have checked 'Contains HTML Markup'. I have written the following code:
    hello
    <script src="/res/b_mozilla/insight_common.js" type="text/javascript"></script>
    <script type="text/javascript">
    sayHi();
    </script>
    However, when I launch the dashboard, it is not working.
    In the Google Chrome browser as I inspected the element to investigate the reason, I am getting the following error under 'console'
    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/res/b_mozilla/insight_common.js
    Uncaught ReferenceError: sayHi is not defined saw.dll:611
    It seems that OBIEE is not recognizing the new file that I made..
    Is there a way around this?
    Thanks

    Srini
    I don't have backgrounds in coding, so a lot of what I wrote came from my own researching...
    Now I have tried your latest suggestions again as the below:
    1.<script type="text/javascript" src="res/b_mozilla/insight_common.js">
    sayHi();
    </script>
    and
    2.
    <script type="text/javascript" src="res/test.js"></script> ----- in my case: <script type="text/javascript" src="res/b_mozilla/is_common,js"></script>
    Now both codes this time do not yield any outputs when launching the dashboard. The section is blank and the preview of the Text section in the dashboard is blank as well..
    So, are you sure these are all the steps I need to take to call javascript function in OBIEE?
    Do I need to define anything in weblogic or other places?
    I hope I am not missing any steps..
    Thanks and let me know..

  • Calculated Items and Action Links (OBIEE 11g)

    Hi,
    On OBIEE 11g here...
    I have an anaylsis which shows a pivot table with only 6 columns of calculated items, with all of the standard columns hidden. The split of the pivot has been achieved using a variable created using the bin function.
    I have set an action link on the measure shown in the pivot table to navigate to another analysis and, while clicking on one of the measures in a pivot column runs the specified report, it is not run using the the necessary parameters required to match the dataset shown in that particular column.
    Is it possible to drill to a separate report and pass through the required filters from a measure showing in a calculated item, as it would be on a measure showing in a standard pivot table column?
    Thanks,
    Ang

    You need to have 'Is Prompted' for that specific measure. I would suggest to use action links on other columns instead of metrics.
    Pls mark as correct/helpful if helps

  • Shell script for running obiee 11g services in linux

    Hi
    We have a requirement to create a shell script inorder to run OBIEE 11G services in Linux OS. It would be very helpful and greatly appreciated if any pointer(s)/documentation on this is provided.
    Thanks

    we had run the scripts using nohup "nohup ./startWeblogicServer.sh &" and reopened putty to run other nodemanager and opmnctl scripts, now everything has started and working fine.
    Thanks all..

  • Passing Job ID, Job instance from Agent to EJB-based action in OBIEE 11g?

    We would like to ZIP compress Agent-scheduled report output, according to documentation using "Java Jobs" is an option but not recommended in 11g (only upgraded from 10g). Instead EJB-based java actions should be used.
    Documentation has explanation of EJB-based Java action, however there's a problem when an Agent invokes the EJB-based action how can it pass out Job ID and Instance ID, etc so the custom action can refer to the related job information? When using "Java job" approach it offers public interfaces to do so. In EJB-based action there seems no information provided, the example in the documentation only demonstrates user to enter parameter values manually without any way to pass out parameter from the invoker (e.g. an Agent).
    In this case, is there any public interface or any other way that an Agent can pass out Job ID related values when invoking an Java method? This seems also true for other actions like invoking web services, HTTP service, etc that no Job parameter can be passed out.
    Thanks.
    geoff

    998365 wrote:
    [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 871b810] [68013] Scheduler service started.
    [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 871b810] Scheduler service started.
    [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 871b810] [71076] Oracle BI Scheduler crmtest6:9705 has been changed to an Inactive state.
    [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 41222940] [43071] A connection with Cluster Controller CRMTEST6:9706 was established.
    [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 41222940] [71075] Oracle BI Scheduler crmtest6:9705 has been changed to an Active state.*
    [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004rSLEMUx3AtH4pzSt1iW000119000000] [tid: 41222940] [43065]from the log it looks like its started as it changed the state to active. are you able to connect to database using biplatform schema details?

  • OBIEE ActionLink-Action-Invoke a Brower Script ISSUE

    I am having an issue while trying to use the "Invoke a Browser Script" feature in Action Link. The "Select Script Function" screen is blank, meaning I am not able to select any of the functions from the UserScripts.js residing in the below directory
    /xxx/xxx01/appl/Middleware/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/7dezjl/war/res/b_mozilla/actions/UserScripts.js
    Steps which I created are
        1. Login to Analytics
        2. Edit a Report
        3. Select Criteria
        4. Select a Column under Selected Columns section
        5. Click on Column Properties
        6. Click on Interaction Tab
        7. Selected "Action Links" from the Primary Interaction drop down list
        8. Add Action Link
        9. Entered name as xTest for Link Text
        10. clicked on Create New Action Icon
        11. Selecte Invoke a Browser Script option
        12. clicked on the Browse button for Funtion Name
        13. the Select Script Function pop-up menu is BLANK
    Refrence Article: http://www.rittmanmead.com/2012/07/navigating-to-bi-content-in-obiee11g-and-passing-multiple-parameters/
    Any help on this will be highly appreciated.
    Thanks
    Hari

    Hi Dpka,
    Yes, I do. But, still the same.
    In fact, I can see two sample functions in "Invoke a Browser Script" Action. (i.e. USERSCRIPT.putUrlInFrame, USERSCRIPT.example_displayParameters).
    I edit "USERSCRIPT.example_displayParameters", replace "new USERSCRIPT.parameter( 'p3', 'Enter value for Param 3' )" to "new USERSCRIPT.parameter( 'p3', 'Enter value for Param 3', 'p3 default value' )".
    Still, there is no default value for "p3".
    So, I wonder whether my file path is wrong. But, how can I know where is the exact path?

  • OBIEE 11g: How to send email from Analysis (via Action Framework)

    Hi,
    I have installed OBIEE 11g SampleAppLite in my POC box.
    One of the features I want to have is to allow users to send their feedback (email) about a report to the report owner. Can this be done without launching Outlook? I tried to Invoke a Browser Script and found that I can display a form showing Recipient, Subject and Message text fields, but I do not know how to send the email.
    Thanks!

    Hi Devarasu,
    Thanks for your reply. The link you gave is for sending iBots. But if I do this, users will not be able to send their feedback / comment.

  • Action links in OBIEE 11g

    Hi All,
    Can anyone help to understand all Action Links in obiee 11g.
    Thank You,
    Ram.

    Hi Ram,
    Here are a couple URLs with examples on those types of actions.
    Java Method example
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    Invoke Browser Script
    http://www.rittmanmead.com/2012/07/navigating-to-bi-content-in-obiee11g-and-passing-multiple-parameters/
    Invoke an HTTP Request
    This is a way to create a simple http GET or POST method, you can google around and find any number of examples on this.
    JB

  • Action Framework in OBIEE 11g

    Hi All,
    I wanted to know whether the action framework in OBIEE allows us to perform some post processing on a report. I need to first obtain a report in OBIEE then swap values in a column based on a mapping table and then email the report to a list of users.
    Thanks,
    Nikita

    Hi Ram,
    Here are a couple URLs with examples on those types of actions.
    Java Method example
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    Invoke Browser Script
    http://www.rittmanmead.com/2012/07/navigating-to-bi-content-in-obiee11g-and-passing-multiple-parameters/
    Invoke an HTTP Request
    This is a way to create a simple http GET or POST method, you can google around and find any number of examples on this.
    JB

  • OBIEE 11g: Dashboard not invoking simple javascript alert

    Hi Experts,
    I'm trying to invoke one simple ALERT command with javascript in obiee 11g dashboard. The purpose is when it loads, it should print one ALERT message and also when we change something in the prompt and clicking Apply button.
    Here is code written in a text item (Checked html markup option) after prompts;
    <script language="Javascript">
    alert ("Hello");
    </script>
    The Javascript alert message is showing when the dashboard page loads, but its not coming when we click the Apply button after changing the prompts.
    Can anyone give helpful hint, how to check it and why its not showing up when we press Apply button?
    Any hint or some useful links will b highly appreciated.
    Thanks in advance.

    You just used code and I would say the default event is onload of the page, thats the reason you are able to see alert.
    Since you didnt ask or written code onClick event to show alert, its not showing.
    You need to tell to browser when to prompt alert message instead of onload.
    Hope you are more confuse about 'how to do'
    if yes, mark :)
    give some more info about your actual req. that helps any other gurus to help.
    Edited by: Srini VEERAVALLI on Mar 27, 2013 8:42 AM

  • Actionable Framework in OBIEE 11g

    Hi Experts,
    I have a queryon the "Actionable Intelligence" in OBIEE 11g. I came to know we can invoke external bussiness applications in OBIEE through these. We have a .NET application which we want to invoke in OBIEE presentation through this. It should be a link in a dashboard clicking on which should open the application for us. Can anyone please brief me the steps how to achieve this.
    Thanks in advance.
    Regards,
    Satyabrat

    Hi,
    Can anyone give me some updates on this.
    Regards,
    Satyabrat

  • Action Links - Browser Script

    Hi All,
    This has been a long process. I just wanted to use Action Links to open an external webpage based on a URL field that is stored in our data warehouse. The problem (based on my findings) is that external webpages can only be launched from OBIEE with a fixed part of the URL and then a query string section that follows the ? symbol. This is great if you are looking to launch a url with a query string (ie. google, cnn, etc.) but it doesn't help you if your url has no question mark.
    My first solution was to build a redirect asp page. I would point the URL to this asp page with the real URL positioned after the question mark. The asp page would strip out the query string from the end of the url and then launch that webpage. This works great but it relies on an asp page being stored somewhere on a server (by IT). I would rather take advantage of the out of the box action link functionality using OBIEE solely. So I started looking at browser scripts. I am so close but can't get the last bit to work.
    I have a function that looks like this:
    USERSCRIPT.Show_URL = function popitup(url){
    var url = c
    alert(url);
    My only issue is that this shows a comma at the beginning of the c variable. The c variable comes from the USERSCRIPT.parameter function sample that is in the USERSCRIPT.js file. Any ideas why there is a comma before my url? I tried using the replace function to get rid of it but it keeps erroring out saying 'Object doesn't support this property or method'.
    Much Appreciated,
    Mike

    I finally got this to work on my own with a bit of work.
    I borrowed some of the code for the displayparameters ootb function in the USERSRIPTS.js file but changed the variable that they have in the alert function from c to a. I then swapped out the alert function for the window.open function. This code now opens the url in my cell regardless of whether or not there is a ? in the url which in my case, there was not. I have set the parameter 1 to be the column value of the URL field.
    USERSCRIPT.Launch_URL=function(b){var c="";for(args in b){var d=args;var a=b[d];c+=""+d+""+a;c+="\n"};window.open(a,'name')};
    USERSCRIPT.Launch_URL.publish={parameters : []};
    Perhaps this will save someone else some time.
    Mike
    PS Oracle could have save me a lot of work by just allowing variables to be passed into web page url's without the requirement of a question mark. Easy nice enhancement they should incorporate into next release.
    Edited by: user8030589 on May 24, 2013 10:48 AM
    Edited by: user8030589 on May 24, 2013 10:49 AM

  • OBIEE 11g - APEX Integration through Action links

    Hi All,
    We are trying to achieve SSO between OBI and APEX. We got this working by the below process.
    1. Integrate OBI domain with AD
    2. Integrate APEX with the same AD ( Perform standalone configuration)
    3. Create Action Link in OBI pointing to APEX form
    4. Accessing Action Link does not prompt the credentials
    5. APEX form opens up in a separate tab in browser
    We checked this by logging into OBI using an AD ID and jumping to APEX from there through action link. However the user context is not getting carried forward to APEX. For example if we login as "d123456" AD user in OBI, when we access APEX form the user name is appearing as "NO BODY" at the top right corner. We have a use case where in we want to capture the ID who is accessing the APEX form. The field is updated as NOBODY.
    But if we login to APEX stand alone URL, then the actual AD user name can be seen on APEX pages.
    Can some one help on how to carry forward the user context from OBI to APEX.
    Thanks in advance.

    Hi,
    I'm rearching the integration between Siebel Sales 8.1 and and obiee 11g, can you please share how to do the integration between the two? Some issue we can discuss together.
    Any docs or points would be very helpful.
    Thanks.

Maybe you are looking for