Monday 29 April 2013

Passing the Values or Parameters from OBIEE report to any website

Scenario: 

Recently i have got a very interesting requirement i.e passing the parameters from OBIEE report to a different website. For example we have a report which displays delivery status of an Item, Let us say you purchased a mobile in online. Then you will receive the conformation of your shipment through the mail and mobile message. They are going to provide you one Unique ID for your shipment using which we can track the status of your shipment. for example assume that your shipment is done through Fedex, by using your unique tracking number you can find the shipment status by logging in to Fedex website. In this scenario the user wants to get the status of the shipment from OBIEE report itself. The report displays the tracking number column , Once the user clicks on the particular tracking number it has to go to the respective website and gets the details of that tracking number. In this post we can see how this can be achieved....

Step 1:

 Navigate the shipping website in our example it is Fedex. Try to get the details of any dummy tracking number. This exercise is only to capture the URL of that Page.

In the above example i have just logged in to Fedex website and given one dummy tracking number to capture the URL.

https://www.fedex.com/fedextrack/index.html?tracknumbers=12345678sdfsf&cntry_code=us

Here we need to analyze where the parameters are passing in this URL.

https://www.fedex.com/fedextrack/index.html?------> It is constant for all the tracking numbers, so it is not going to change.

tracknumbers-----> (12345678sdfsf) This is variable in nature here we need to pass the tracking number on which the user is clicking from OBIEE report.

&cntry_code=us----> This is the country code if we are looking at only US tracking numbers then we can make it as constant or we can change it using a variable.

Step 2:  

Edit the OBIEE report and go to Criteria tab. Click on the column properties of the tracking number column and go to Interaction tab. Go to Value--->Primary Interaction--->Select Action Links----> click on (+) "Add Action Link"


Step 3:

Then Click on "Create New Action"---> Select "Navigate to a Web Page"






Step 4:

You can see one new window popping up.In that new window paste the URL we got from the Fedex website. (https://www.fedex.com/fedextrack/index.html?tracknumbers=12345678sdfsf&cntry_code=us) then click on "Define Parameters" 


Step 5:

Then you can see the following window...




 Here we need to define the parameters. By default it recognizes the variables and defines below...In our example we have two parameters. 
1. Tracknumber
2.cntry_code 

Step 6:

Go to Value tab and click on the options and select Column Values and select the Tracking Number column.


Step 7:

 Check in all the check boxes as shown in the below screenshot..

Now we need to check with the URL highlighted in the above screenshot. There we can find some variable values in the following format {Variable_Name}. In our example we have two variables {1} and {2}

{1} = Tracking Number , It is going to capture the value of the tracking number on which the OBIEE user is clicking in the report.

{2} = Country Code, In this case it is fixed that is why we are selecting it as a static value from the value tab. In the same way we can define multiple parameters as per the requirement.

Step 8:

After doing all these configurations click on OK and go to Results tab. You can see the hyperlink is enabled on the Tracking Number column values. Click on any value it will navigate to the Fedex website and its going to show the status of the tracking number on which we clicked.

In the same way we can add multiple websites in the Action Link menu and define the conditional navigation.
 


6 comments:

  1. Hi Venkat,

    Could you please provide me your email id or else please feel free to message me on csiva37@gmail.com as I wanted to discuss a few issues in OBIEE.

    Many Thanks
    Siva Charan

    ReplyDelete
  2. Any way to pass parameters when navigating to BI content ?

    ReplyDelete
    Replies
    1. Hello,

      There are multiple ways to achieve your requirement. By default the parameters will be passed to the destination report/dashboard when the prompts are defined in the destination object. You can also get the same requirement using the GoURL feature in OBIEE.

      Thanks,
      Nagarjuna

      Delete
  3. Hi,
    I am not able to pass Column Value to prompt. Is there any other setting needs to be done?

    Thanks

    ReplyDelete
  4. Hi Ravindra,

    You need to define the parameters properly which we are going to consume in the url, please double check your parameters.

    Thanks,
    Nagarjuna

    ReplyDelete
  5. Hi Venkat,

    I am trying to apply this format into my company's URL but somehow its not working properly. Could you help me with this issue.

    Thanks,
    Praneeth

    ReplyDelete