Run OBIEE Agent via Button Event - Part 2

In the Part 1, we have seen how to create Agent Run button.

In this exercise, let us look at one specific requirement.

The Admin should be able to execute the agent from the OBIEE dashboard only when the difference between the Next Run Date of the agent being selected from the dashboard prompt and current sysdate is no more than 15 days.

Let us start our exercise.

In the last exercise we say 3 agents. Go and edit their Schedule Time/Frequency.

Please note that you must first build a small subject area using scheduler tables in OBIEE.
The detailed document can be found in Oracle support. ( DOC ID - 1227908.1)

In my case I have it in my OBIEE application so I am just extending it to suit my needs.
It is called Scheduler Jobs.

From this Scheduler Jobs SA,

Pull Agent Name, Agent Path and Next Run Time column in the report.

On top of it, we shall add two calculated columns.

One is sysdate or current date and another is difference between next run date and sysdate.

See below snaps.






























Here is the output. Look at the Difference Column. 



















In the above snapshot, look at the next run time. I have in the beginning of this exercise changed the schedule times of those 3 agents that we saw in the Part 1.


We shall be using the report Agent - ConditionToDisplay in another report as a filter.

Let us see.

Create one more report using Scheduler Jobs SA.

Take Agent Path column and make it IS PROMPTED.

Take one more column. Any column. Go to its column formula and write 

cast (15 as double)

Look here.CODE column---> 
























Now look here carefully, we shall be using the report Agent - ConditionToDisplay as a filter
condition report.

Operator is GREATER THAN ALL





















, 
In the same report, edit the No Data view as shown below. This report name is Checks.


















Done.

Now Go to Dashboard editor.

Repeat the same exercise.

Add Variable Prompt in 1st section.

Add Static Text with JS code in the 2nd section.

In the 2nd section condition, select Checks Report and condition is rowcount is not equal to zero.

Done. Save changes and Run the dashboard. 













Read the No Data message. It is designed as per the requirement.

Please once scroll up and see the output of Agents- ConditionToDisplay report.

The Difference column value of AgentSimple is 210. That is more than 15.

Hence when you select this agent from the prompt in this dashboard, you should not be able to execute it. 

Let us see.

See below 2 agents. User can execute them as the difference count is less than 15.



    


























Now look at AgentSimple. 




Yes so we are unable to execute it from this dashboard page as the difference between the next run date of this agent and today's sysdate of the machine is more than 15 days.


Thank you. 

Run OBIEE Agent via Button Event - Part 1

Before I begin to write anything I must note that I have taken the Java script code from 

https://gianniceresa.com/2017/03/scripts-to-use-agents-in-obiee-12c-mass-enabling-and-execution-from-a-page/

I have done modifications to the code according to my OBIEE webcat setup.


Let us start the exercise.

I have created 3 agents as shown below.


















Capture the paths of these agents as we are going to create one variable prompt using them. 

Look here.

Variable Prompt name is PATH.




Now open the JS code and in the below line

// set agent path
ibotHandler.tItemInfo = {'path': '/shared/Example agents/Test Agent 01'};

Change the path of the agent in the shared folder to '@{PATH}'

Done.

Now, Create one intermediate report. We shall be using it in Guided Navigation Condition.

Please focus on the column expression and the advanced SQL filter.















Go to Dashboard Editor.

Add the variable in first section.

In the second section, add the static text object. Put the code. Enable HTML.

In the second section condition, add below condition :















Okay, so we are done. Save the changes and Run the dashboard.

Select any agent from the list.











































Click on Run Agent Button.


Agent is running. .. ..














Agent has executed successfully.


Font Size and Colour Prompt

Hello !

In this exercise, we are going to give the end users an option to select the color and size of 
font of the values in table view.

Let us take a preview of what we are supposed to show on the dashboard.


















Select Font Size =3 and Color as Green















Select Font Size =8 and Color as Blue















Let us see how to develop.


Create 2 Variable Prompts. [ COL and FZ ]

Font Color - (red,green,blue)
Font Size - (3,5,8)















Now create a report. Add 3-4 columns.

Go to first column and edit column formula in a following manner.





















And in the Data format, choose HTML type.

Make the changes for the remaining columns in the same manner.

Note - In case you have NUMERIC column, you will have to typecast it.

Like this -->























And then change the data format as HTML




















That's it. You are done and ready to test the dashboard.

OBIEE12c - Installation Error- Could not obtain archive information since it is corrupted

Today we are going to discuss about an error that occurs at the very beginning of the OBIEE 12c installation. 

Please note that I am using Windows 7/64 Bit machine. I have successfully installed jdk1.8.0_65 and updated PATH and CLASSPATH variables. I have Oracle database 12.1.0.1 and Oracle Fusion Middleware- fmw_12.2.1.0.0_infrastructure is installed on my machine.

Have a look at the below snapshot.




































Create one folder X and save 2 files as shown in the above snapshot. File 1 gives me setup file (setup_bi_platform-12.2.1.0.0_win64). File 2, upon first extraction, gives a zipped folder called (setup_bi_platform-12.2.1.0.0_win64-2) and further extraction of it gives Disk 2 folder.

Keep only Disk 2 folder and setup file - setup_bi_platform-12.2.1.0.0_win64 in the folder X.

And try to run the setup file setup_bi_platform-12.2.1.0.0_win64.

You may come across an error which says "Could not obtain archive information since it is corrupted"














Solution (Part 1) -

Archive the setup file - setup_bi_platform-12.2.1.0.0_win64 using 7-Zip.

















You may get an another error. You may not be able to fully extract the setup file. Have a look at the error.

















The Antivirus software installed on your machine may not allow the "autorun.inf "file from getting archived.


Solution ( Part 2 ) -

Please raise a ticket with your IT help desk center. Ask them to momentarily disable the antivirus. Then archive the setup file and enable it again. Extraction gives you Disk 1 and Autorun.inf.

Therefore the folder X now has all the required installation files/folders.










Go to the Command Prompt.

Navigate to the Disk 1 folder and run the jar file to initiate the installation.




Thanks.

Filters and Variables - Hidden Prompt


We had one strange requirement from the client the other day. The client wanted to see the customer details on a dashboard page for a year month of the current year which has the maximum Actual Value Metric across different customer regions. Let us try to understand it in detail.


Have a look at the report shown below : 



Therefore as you can see here, June month of 2015 has the maximum actual value.

and thus customer details are to be  shown for 2015/06 on the dashboard page.

Now the first thing is - Get the logical SQL of this report.
And separate yearmonth part out of it.







































Now create a dashboard prompt.
Go to Default selection. Choose SQL Results. 
Paste the modified SQL. 






















Save the prompt at appropriate location.

Let us create the Customer Details report. 











Go to dashboard now, create one dashboard page (ex- Hidden Prompt) and open dashboard page properties.











Select the Hidden Prompt page.







































Run the dashboard page. We should be able to see the customer details for 2015/06.












Thank you.

Advantage of limiting prompt values by Members of Groups option

Have a look at the values of Region column.



















Create a dashboard prompt on Region column and do not include Missing, Not Applicable and UNKNOWN values.

We have used NOT IN clause to eliminated the above values from Region prompt.


















Run the prompt.











Go to Search.. option and ensure those values are present or not.


























































Let us find a solution.

Create a Group.

Take a Region column in the report and go to Selection Steps.

Select Region column from the list.









Edit Member Group. 

Select Action as Remove.

Manually remove UNKNOWN, Missing and Not Applicable from the list.

Do not check override with prompt option.

















Save the group at appropriate location in Shared folder.

Now go to Region prompt and include this group.















Perform both the checks and you will find the Missing, Not Applicable and UNKNOWN values completely being eliminated from the prompt.

































Thank you.

Advanced Trellis View

Advanced Trellis View is widely used in OBIEE reporting applications. 

Let us look at how to create it.

Have 3 dimensions and 2 measures in a report.

For ex - Region | Sub Region | Year Month | Actual Value | Target Value

Filter condition : Year = 2015

It makes sense when an appropriate time dimension attribute such as Yearmonth is included in the report. 





















Here we have put Region column in prompt section, Sub region in Rows section.

For both the measures (Actual Value and Target Value), we have selected the visualization type as Spark Bar.

Let us modify the graph properties.

Note that we have checked <include NULL rows> options.




















Graph output - 

When you hover your mouse over one of the measures it shows the measure value for
Start  - In this case target value for the starting yearmonth in the recordset
End - In this case target value for the last yearmonth in the recordset
Min - In this case the minimum target value in the recordset
Max - In this case the maximum target value in the recordset

Yearmonth values are shown directly. If we can add yearmonth caption then it would be more meaningful.
























Let us go to Yearmonth column and modify the column formula.















Hover you mouse again over the Target value column in the view.






















Thank you.