Is it possible to make the condition depending on the sql statements in the data models
Hi allIs it possible to include the condition based on sql statements in the data models.
For example
if (some parameter is not null)
<sqlstatement name="STATEMENT_1">
...
</sqlstatement>
else
<sqlstatement name="STATEMENT_2">
...
</sqlstatement>
Is something like this? Also, the good doc is available for ' how to take full advantage of the "data models" in BI Publisher?Thank you
-Sookie
Hello Sookie,
I couldn't find the time to get a data model of demonstration of work for you, but I'll try to explain.
First, write a PL/SQL package. Make sure that you set all the parameters of model of data such as a global variable in the default PL/SQL package.
CREATE OR REPLACE
package as employee
function BeforeReportTrigger return Boolean;
query_text varchar (2000);
number of p_DEPTNO;
END;
/
CREATE OR REPLACE
package as body employee
function BeforeReportTrigger return Boolean IS
Start
IF (p_DEPTNO = 10) THEN
query_text: = select col1, col2, col3 from HR.
elsif (p_DEPTNO = 20) THEN
query_text: = select col1, col2, col3 hr_history.
on the other
query_text: = select col1, col2, col3 hr_history1.
end if;
Returns true;
end;
/
Use this package in the default package in your data model. Check the "defaultPackage ="employee"in the following data model header.
Sample data model
------------------------------
--
--
--
--
Before running the query SQL, data engine reads the "before the release of the report" and all the texte_requete argument based on the p_DeptNo value. When executing the Q1, engine sqlQuery analyze the query ' & quert_text and replace it with the actual value. For example if the p_deptno = 10, the query will be "select col1, col2, col3 from HR.
Try it...
Tags: Business Intelligence
Similar Questions
-
Is it possible to make a conditional checkbox in a form?
Is it possible to make a conditional checkbox in a form? For example to check that OR not not both at the same time? i.e. If Yes is enabled you can not check no and vice versa?
You need to add or change the code in the form. Try these:
http://StackOverflow.com/questions/17599984/how-to-enable-a-disabled-checkbox-dynamically
IPT http://StackOverflow.com/questions/16163507/Enabling-and-Disabling-CheckBoxes-with-javascr
Thank you
Sanjit
-
Is it possible to make the back to Pentecost iPhone 6 and Air iPad
Is it possible to make the back to Pentecost iPhone 6 and Air iPad
You cannot back up an iPhone to an iPad or vice versa, but you can save them both to a computer via iTunes or you can backup to iCloud. See: How to back up your device using iCloud or iTunes - Apple Support
You can also synchronize contacts, photos, etc. between the iPhone and the iPad. See settings > iCloud on each device for things that you can synchronize.
-
Hi, is it not possible to make the flames, three years or frames, cc2015
Hi, is it not possible to make the flames, three years or frames, cc2015
Hi Pattie, the nice people at adobe helped me, everything is good now :-) Thank you
-
Is it possible to make the Cloud Adobe Applications scale to my 4K monitor?
Is it possible to make the Cloud Adobe Applications scale to my 4K monitor? I can't even read the text in applications to use them. The reason why I bought this monitor was to improve the graphics/video quality and then I find that I can't even use it to create content. These screens have been for some time. It seems that developers would keep upward with technology. I am at a loss for a solution. Help, please!
Hello
The creative Office Cloud will remain as it is there is no option to change the scale for that right now, but we can change the way that your apps looks, please follow the steps below:
Preferences > experimental features > IU 200% scale...
Let us know if that helps.
Kind regards
Bani
-
bought photoshop elements 11 year last for windows and use it in my office. The office is now crashed and not usable. So I bought iMac now. Is it possible to make the trade more to change the license in version iMac for a small fee. Otherwise, I can partition the hard drive in the iMac and install windows and also photoshop elements? What is the best alternative? Why?
A license of Photoshop Elements is good for Mac and Windows, it should be just a matter of download the Mac version and using your serial number to activate it.
PES 10: 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
If you have any problem with the activation contact Adobe support using cat... Start here If after selecting the relevant answers, you are unable to find a solution, choose "still need help? Contact us. "and the contact Chat option.
-
Is it possible to make the chat bubbles of cartoon in Adobe In Design style?
I was wondering if it is possible to make the chat bubbles of cartoon in Adobe In Design style, and if so could you tell me how it's done?
Thank you
Marc Autret has written a script that will do it. Take a look at her blog for the complete instructions for use:
-
Is it possible to reset the date of the last virus and update the spyware definitions in XP?
I have xpsp3. I was looking at my calendar to find out what day of the week, an event that happens in November, and unfortunately I forgot to go back to the date of the day before I have updated the definitions of viruses and spyware on MSE. Now, MSE think my latest definitions of viruses and spyware are obsolete, because they were supposed to be updated three months from now. So my question is: is it possible to reset the date of the last virus and update the spyware definitions in XP?
Correct the date on your computer. Remove the antivirus/malware product and reinstall.
-OR-
To restore before the update, use the system restore. Make sure the date is correct. Update.
Tom Ferguson
-
is it possible to display the Date and time in the address bar or a clock window constantly
I need to take screenshots with date stamps and time using the script of iMacros. Everything by taking screenshots iMacro don't add taskbar windows for the date and time. It takes screenshots of browser. Is it possible to display the Date and time in the address bar or a clock within the tab browser constantly to capture the screenshot with time stamp through iMacros
I added the big clock background Add-ons, but it is visible to new tabs.Badly looking for help and it will be really appreciated...
Try this extension:
-
Is it possible to organize the "My models" in the the for the evaluation version of Pages?
Is it possible to organize the "My models" in the latest version of Pages for the latest version of El Capitan? I would like to organize patterns that I create in folders that was available in many earlier versions. I would consider even install some software to do this. Thanks for your thoughts.
Pages v5.6.1 supports only the folder my models. It does not support peer model files, model external Pages or subfolders at the location of the folder my models. It is a departure from Pages ' 09 v4.3.
-
The relationship "designed to" make visible in the Data Modeler?
Hello
I was wondering about the following topic:
When I create (engineer), a table based on its entity, there is a relationship between the entity and the table.
So to speak: a relationship "carried out by".
This relationship can be demonstrated in Data Modeler?
If so,.
-can we use them to navigate a table to the entity and vice versa
-can we maintain, in the case of design changes and changes to the execution table?
I know that the relationship is available in the xml file that stores the table (Table > generatorID), but I am unable to see / use the relationship in the Data Modeler itself.
Kind regards
Art
Hi Art,
There is a section "Impact analysis" in the entity and table dialog boxes. Under the 'Mapping' node you will see mapped objects and can open the box from there.
You cannot create or modify the mappings manually for now.
Philippe
-
Calculate the fastest path between 2 nodes with the data model for the Oracle network
Hi all,
I have Oracle 10 g 2.
My problem is the following:
I created a network named ITALIA_NET in the data model for the Oracle network.
The table of links of this network is named: ITALIA_NET_LINK$.
The table of the nodes of this network is named: ITALIA_NET_NODE$.
The table ITALIA_NET_LINK$ contains a field named COST that contains links (in meters) lengths.
I've already calculated the SHORTEST PATH between two nodes of the network, by using the method of shortestPath() (using the Java API) as shown on "Pro Oracle Spatial for Oracle Database 11 g" manual. Infact, this method makes reference to the COST field for $ ITALIA_NET_LINK to make this calculation.
Now, I want to calculate the FASTER PATH between two nodes of the network. I have the links (in hours) travel time to make this calculation.
My idea is to create a new field in ITALIA_NET_LINK$ named Cost2 containing the travel time from the links and then do the math by using the shorthestPath() method, referring to the Cost2 field to $ ITALIA_NET_LINK COST field instead.
By default, I know that the shorthestPath() method returns the COST field for $ ITALIA_NET_LINK. Is possible to change this setting and do that this method refers to the Cost2 field?
In the alternative, is another way for the calculation of the fastest way?
I want to leave the creation of another network as last solution, because I will have other costs of field (Cost3, cos4t,...)
Thank you much in advance.Your approach is good. You will have two networks and you can read them in memory and analyze of shortest path. The shortestPath method is static for the class of NetworkManager. You can use the same method for both networks, once they are read into memory.
...
read the network with time as cost of link
NetTime network = NetworkManager.readNetwork (dbConnection, 'ITALIA_NET_TIME');
read the network length as cost of link
Network netLength = NetworkManager.readNetwork (dbConnection, 'ITALIA_NET_LENGTH');calculate the quickest way
PathTime path = NetworkManager.shortestPath (netTime, startNodeID, endNodeID);
calculate the shortest path
PathLength path = NetworkManager.shortestPath (netLength, startNodeID, endNodeID);
...In the future, if you upgrade to 11g, network data model provides a load on demand (LOD) API that loads only the scores of necessary network in memory during the analysis. This command removes the restriction of the memory of the 10g (in memory API you use) API. API of LOD can handle very large networks and offers more features analysis and modeling capabilities.
The following link contains the tutorial of NDM LOD API ready for download. Just for your information.
https://spatial.SampleCode.Oracle.com/servlets/ProjectProcess?PageID=0Zl7oVKind regards
Jack -
Use the stored procedure to create the data model for the bi publisher report
Hi all
Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.
Thank you
ViratCheck out these links
BI publisher to use the stored procedure
Re: Stored procedures and dynamic columns
Re: Is it possible to use stored procedures in BI Publisher GUI?
Re: PL/SQL stored w / model XML?If brand pls help
-
Comment of tables and columns are included in the Data Modeler
Hi all
I used Oracle SQL Developer Data Modeler (Version 3.0.0.665) and created a data model for my project. I sent an email a PDF version of the data model to our systems analyst. She asked if I could re - create the data model and include table and column comments. Is this possible and if so how this work is it?
Thank you for your comments,
SeyedSeyed salvation,
I used the Data Modeler and create a report. The report included 36 .csv files
What is the purpose of this 'report' task, because 36 files csv does not sound like report to me. Watch "files > reports" feature - you can generate reports for your model. -for any model, single table or tables belonging to specific subview. The report of the complete table contains additional details, so if you need these comments, then only you can create a template and select column comments appear only. So some general information table will be also included.
Philippe
-
Trigger code of the report to the data model
Hi all
I inserted a report trigger in a data model and created the desired in my database function. Everything works as expected.
My question is, is it possible to write trigger report within the data model? Given the choice, I'd rather have the trigger code integrated within the data model itself rather than in a separate package.
I have found no examples of this, but I just wanted to confirm that it is impossible.
Thank you.
Published by: jasonr on May 17, 2011 07:39No,
The code must be executed by the trigger will be a PL/SQL package, and he resides in DB only.
Maybe you are looking for
-
Today when I opened Firefox tab in the upper left menu was missing. ???How to print without menu tab? How to restore the menu tab?
-
Receipt of the notice of my validated activities
It seems that I get no notification of my answer posted activities. I tried to add my preferences option, but I get thousands of emails. I just want to receive MY messages update only. Any DETAILED response will be appreciated. Thank you
-
Bus SM - HP 2000-2b29NR controller
Got a HP 2000 [-2b29NR] and I cannot understand the correct driver for: SM Bus controller PCI\VEN_1022 & DEV_780B & SUBSYS_188B103C & REV_14PCI\VEN_1022 & DEV_780B & SUBSYS_188B103CPCI\VEN_1022 & DEV_780B & CC_0C0500PCI\VEN_1022 & DEV_780B & CC_0C05
-
8900 blackBerry Smartphones blackberry curve problem
I had the problem when I use the phone before entering the password a message came enter blackberry to continue...! How to solve this problem?
-
NAC L2 OOB VG issue with wired user
Hi all Need your favour, I tried to do L2 OOB virtual door of entrance to the NAC for wired user with the following text: The two interfaces of certification authorities are trunk with only the VLANS respective authorized. CASE is added to the CAM. S