Can we dynamically select DataSets in Data Model of a BI Publisher Report?
Hello,
I have a requirement as below -
For a report 'XX Report1' we have Data Model(concatenated SQL Data Source) with 3 Datasets -
New DataSet1 - WebService Call (WSDL) (Say D1)
New DataSet2 - SQL QueryA (Say D2)
New DataSet3 - SQL QueryB (Say D3)
Layout - 'XXRTFFile.RTF'
And another report 'XX Report2' with Data Model(concatenated SQL Data Source) with 3 Datasets -
New DataSet1 - SQL QueryC (Say D4)
New DataSet2 - SQL QueryA (D2)
New DataSet3 - SQL QueryB (D3)
Layout - 'XXRTFFile.RTF'
Note that DataSet2 and DataSet3 have the same queries in both the reports.
'XX Report1' is called from Siebel frontend through a URL
'XX Report2' is called from Batch Programming later.
The requirement is to come up with a single Report for both of these calls.
So, I thought of merging all the DataSets in to 1 Data Model as D1,D2,D3,D4.
Is there a way for us to select the DataSets from Data Model using the Parameters when Report is run, so that the report picks up D1, D2, D3 if it is called from Siebel frontend and D4,D2,D3 if its run from Batch Programming?
Please let me know.Thanks in advance.
Thanks,
Phani
The web services API would probably be your best bet. http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm#CHDGIJHH
There is some Java examples in the above. I'm guessing the c# code wouldn't be too different.
Bryan
Similar Messages
-
Export/Report on dynamic properties in SQL Data Modeler
I'm thinking of using dynamic properties to hold meta-data in SQl Data Modeler, but I can't find a way of exporting or reporting on this info once I have created it.
Am I missing something?
Regards,
JohnJohn,
you can download DM 4.0.1 - dynamic properties can be included in custom report templates and into generated reports.
Philip -
How can i dynamically select columns based on the input parameter?
I have an input parameter which takes single numeric value.
Based on this value i have to dynamically select table-columns .
For eg: if i have following fields in my table :
SEM_1
SEM_2
SEM_3 and SEM_4.
And if i give numeric input as 2 , then i have to select "SEM_2" column only.
if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
how do i achieve this dynamic feature in the "Select ..... From...... table...." statement in the ABAP??Hi,
you should try something like this.
TYPES: cond(72) TYPE c.
data: condtab TYPE TABLE OF cond,
condw type cond.
data: lv_field(30) type c value 'SEM_'.
write p_num to lv_field+4(1).
condw = lv_field.
append condw to condtab.
SELECT (CONDTAB) FROM table INTO.....
Kostas
Message was edited by:
Kostas Tsioubris -
Where can I find the Oracle CRM Data Model?
I am unable to find a data model for Oracle CRM. I am trying to understand the table relationships and fields within. Can anyone direct me as to whether a published model exists and - if so - where it could be found?
Thank youhttps://etrm.oracle.com/pls/etrmlatest/etrm_search.search
-
Is there a Data Model in BW for Financial Reporting?
Hi,
I am required to integrate a non-SAP Financial application to SAP BW. I am wondering if there exists a Data Model in SAP BW that supports out of the box canned reports. This will help me target the interface design to feed the existing Data Model. Any pointers to this Data Model and list of canned reports would be very helpful.
Thanks,
NitinHave you looked at the BI content:
http://help.sap.com/saphelp_nw04/helpdata/EN/65/7beb3cad744026e10000000a11405a/frameset.htm
This will link to an R3 backend but it will give you an idea of what can be done? -
Dynamic data source in a BI Publisher report.
Hello,
I create a web page where I put a link to an BI Publisher Report and I want to pass a parameter to this link to indicate that XML file (datasource) this report should use.
Example : http://servername:port/analytics/saw.dll?bipublisherEntry&Action=open&itemType=.xdo&*XMLPATHANDFILENAME=\\...*
Is this possible?
Thanks!
Edited by: 830315 on May 17, 2012 11:03 AMBasically what are you trying to do :
Attaching Mutiple Data Definition to a XML Program and deciding which one to call ased on parameter.Sorry you can not do that one Data DEfinition per Report.
ut there is one way of doing that.
Create multiple data defintion( mutiple programs) and then a master program something like
IF Master Program Param1 = 'X'
call BI Program 1
ELSIF Master Program Param1 = 'Y'
call I Program 2....
End IF; -
Data Modeler bug? - it keeps reporting missing physical model files
Hi,
I'm having a rather serious problem with the latest data modeler, Oracle SQL Developer Data Modeler 3.1.4.710. It keeps losing physical model files for some reason.
I started to notice that it was not generating all the tables in my small design. After hours of struggle I found multiple error messages in the log file:
2012-12-18 10:51:20,126 [Thread-71] ERROR XMLTransformationManager - Unable to load object from XML: C:\cygwin\home\Brian\codebase\models\data\Design\rel\395D160B-C7224B8EAD05\phys\D9582E4E-2ED963CB9D32\View\seg_0\A555DB9B-8864-9C0B-DCA8-BAC5231F55C6.xml
java.io.FileNotFoundException: C:\cygwin\home\Brian\codebase\models\data\Design\rel\395D160B-C7224B8EAD05\phys\D9582E4E-2ED963CB9D32\View\seg_0\A555DB9B-8864-9C0B-DCA8-BAC5231F55C6.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openPhysicalModel(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openPhysicalModel(Unknown Source)
at oracle.dbtools.crest.swingui.browser.BrowserPanel$88.run(Unknown Source)
These messages appeared every time I opened my physical model (Oracle 10g).
After deleting and recreating the physical model the problem went away for a while. But after closing and reopening the design I started to see the errors again.
Has anyone seen something similar?
Regards,
BrianThanks Philip!
The workaround does the trick for the tables, primary keys and unique keys.
I have just observed that table level constraints show a slightly different behaviour.
Names show up like TCC5, TCC6, etc.
Seems the same problem as previously in SQL*Modeler forgets check constraint names
Is there a workaround for that problem too ?
I already noticed that there is no parameter NameChanged for a table constraint.
Enrico -
Select multiple values from the parameters in BI Publisher report Error
In the database, I wrote a function to retrieve data to report:
FUNCTION FN_TL002(cBDSID nvarchar2)
RETURN SYS_REFCURSOR as
TYPE t_cursor is REF CURSOR;
v_cursor t_cursor;
begin
OPEN v_cursor FOR
select Brach, txmonth, txdate, total from tl001
where brach in (cBDSID)
order by brach;
RETURN v_cursor;
end fn_tl002;
In Bi Publisher:
- I have a type parameter Option select multiple ( pBranch), LOV get data from database.
* In Data model : TL001 name
+ SQL query : select FN_TL002(:pBranch) from dual
if select a value not error, and then select two values of an error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'FN_TL002'
please help me!
Thanks all!See my response in the thread Re: Multi selecting drop down in BI publisher 11g report
The LOV is a Java array and your function needs to accept that array. To do this the data data type has to be a VARRAY Type. -
Data is repeating in xml publisher report
Hi,
We desinged the orcle xml publisher report.
When we are running the report, the address infromation is repeating in every page.
We have not mentioned any where the for each logic.
Can any one help me on this issue.
We designed the report as 'rdf data mocel' and designed and rtf for this.For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
HTH
Srini -
How can I dynamically change the Application Date Format?
Hi everyone...
In my application (v 3.2) I let the user set the application date format dynamically through a "preference" value they can change on the go.
I then take the format they pick and assign their value (ie: DD-MON-YYYY) and pad 'HH:MI' to it and use this as the PICK_DATE_FORMAT_MASK which works great for most date pickers.
The problem I have is that some date picker I use in the application don't require the HH:MI, they simply need the DD-MON-YYYY part. Could I use the NLS_DATE_FORMAT for this? Would I then be able to use date pickers with the "use application date format"? It doesn't seem to work for me.
In other words, I basically need 2 date formats for my application date pickers; 1 for simply the dates and 1 for dates including time. And these 2 formats are chosen by the user by setting an application preference dynamically at run time.
Not sure if I make sense here....any idea?
Thanks!
Francois"use application date format" is the choice you want.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Can a dynamic select stmt in a ref cursor be done?
Hello all!
I have a form in which a user can select a number of checkboxes that coorespond to fields in a table. After checking the desired boxes, the user can then click on a button and a variable (v_query) in a "when button pressed" trigger is populated with the text of a sql query. The trouble is, I want to incorporate the code contained in v_query into the REF cursor OPEN statement where it is expecting a sql query. The idea here is that the cursor would loop through the table fetching rows based on the select statement variable (v_query) and write them to a file using TEXT_IO(See below code). First, can this be done? Second, is there a better way to do accomplish this?
DECLARE
TYPE t_cur IS REF CURSOR ; -- define t_cur as a type
c_cur t_cur ; -- define an actual variable of type t_cur
r_emp emp%ROWTYPE ; -- PL/SQL record to hold row
v_query VARCHAR2(2000) := 'SELECT * FROM emp' ; -- the query!
BEGIN
-- OPEN FILE
out_file := Text_IO.Fopen('C:\BACHELOR\TEST.txt', 'w');
OPEN c_cur FOR v_query ; -- v_query could contain any valid query
LOOP
FETCH c_cur INTO r_emp ; -- get first row from dataset
EXIT WHEN %NOTFOUND
--PRINT TO FILE
Text_IO.Put_line(out_file, r_emp);
Text_IO.New_Line(out_file);
END LOOP;
CLOSE c_cur ; -- remember to close the cursor! ;)
END;Hello all!
I have a form in which a user can select a number of checkboxes that coorespond to fields in a table. After checking the desired boxes, the user can then click on a button and a variable (v_query) in a "when button pressed" trigger is populated with the text of a sql query. The trouble is, I want to incorporate the code contained in v_query into the REF cursor OPEN statement where it is expecting a sql query. The idea here is that the cursor would loop through the table fetching rows based on the select statement variable (v_query) and write them to a file using TEXT_IO(See below code). First, can this be done? Second, is there a better way to do accomplish this?
DECLARE
TYPE t_cur IS REF CURSOR ; -- define t_cur as a type
c_cur t_cur ; -- define an actual variable of type t_cur
r_emp emp%ROWTYPE ; -- PL/SQL record to hold row
v_query VARCHAR2(2000) := 'SELECT * FROM emp' ; -- the query!
BEGIN
-- OPEN FILE
out_file := Text_IO.Fopen('C:\BACHELOR\TEST.txt', 'w');
OPEN c_cur FOR v_query ; -- v_query could contain any valid query
LOOP
FETCH c_cur INTO r_emp ; -- get first row from dataset
EXIT WHEN %NOTFOUND
--PRINT TO FILE
Text_IO.Put_line(out_file, r_emp);
Text_IO.New_Line(out_file);
END LOOP;
CLOSE c_cur ; -- remember to close the cursor! ;)
END; -
Dynamic Selection of 'To' date
Hi,
I have Planned Order Start date 'From' and 'To' option in our selection screen of a customized program. I want 'From' fiield to be blank and 'To' field mandatory. The calcuation of 'To' date should be dyanamic in nature (depending upon Selection variable and Name of Variable maintained in the Variant)
If I use the variant option for the same then the system proposes the date in 'From' field and not 'To' field after calculating it dynamically.
This is required so that the system should fetch all the past Planned Orders plus the Orders coming within 'To' date option in the selection screen.
Thanks in Advance.
Regards,In the 'variable name' select the indicator (first column) as 'I' (Select specified values) and select 'LE' (less or equal) from 'option' (second column). After selecting the said options upon hitting enter you'll get a new pop up where you need to enter the number of days further into the future that you want the dynamic date should be calculated (a positive means future, a negative means in the past). Once you save the variant, you'll see the setting appearing in the 'from'. Do not worry about the setting that appears in the 'from' instead of 'to'. When you select this variant or execute this program via this variant the date will be calculated based on the current date + future number of days and all past dates from that future date. Again do not worry about the setting in the 'from' - this is how it is set up.
-
Can I dynamically select the FTP account and destination?
I have a situation where, dependent, on a field in the contents of a CSV file I need to FTP it to a certain location.
Now there are over 40 cases and I'd rather not set up 40 outbound FTP services, each with their own account but would rather have just one and dynamically set the account information from a configuration available from within the pipeline (i.e. via some user defined properties).
Is there a way of doing this?
regardsI've made some progress on this. The XQuery function:
fn-bea:lookupBasicCredentials
can be used to get service account information at run time so now all I need is to be able to override some header values so that the FTP transport uses them instead but also need a means to change the FTP URL.
Surely someone has come across this problem before and solved it? -
Can edges cross in the topological data model?
I'm evaluating Oracle Spatial, and having read through the topology documentation, it appears that edges cannot cross in the Oracle Spatial model. In other words, it looks like edges that 'cross' must actually have a shared node at the point or points of intersection. Is that correct?
And in fact what that means is that edges cannot cross. Edges may touch at a common node but cannot cross another or themselves.
-
No Data Found Option in BI Publisher Report
Hi All,
Could you please help me.
I am looking for NO DATA FOUND OPTION in BIP Report.
Ex -
In the body of the report, I will write simple select statement
Select * from emp;
If the table do not contain data the out put should display " NO DATA FOUND IN THE DATA BASE"
Can some one help me on this....This is a sample query actually my sql query contains 100+ lines.
Please help me,Take a look at these:
http://winrichman.blogspot.com/2009/05/no-data-found.html
http://blogs.oracle.com/xmlpublisher/2007/06/no_data_found.html
Also, search the forum. This has been covered before.
Thanks,
BIPuser
Maybe you are looking for
-
Problem to generate classes from a gsoap server's wsdl with wsimport
Hello, I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap. Here, the wsdl file : <?xml version="1.0" encoding="UTF-8"?> <definitions name="form" targetNamespace="https://enterpris
-
I bought Adobe Photoshop Elements 12 to import RAW pictures. Indeed my pictures could have been imported. But I could not convert them in JPG. The extension of my pictures is RW2 it seemed to be a different kind, special from Panansonic camera"s. At
-
Can the screen on my i phone 4s be replaced
Can the I phone 4s screen be replaced, I have contacted Apple who say it cannot be replaced because of the technicality of the phone, apparently they will replace/give me a whole new phone for £139.99 upon attending a 'genius' appointment? Just a bit
-
Why event handler runs after reconcilliation
Hello, I had done flat-file full reconcilliation where users mentioned in file are inserted in OIM but before starting my reconcilliaiton task i had created an event handler as seperate task whose purpose was to write group name,userid,first name & l
-
Ability to programmatically control a JSF tag outside the JSP?
Hi All, I created my own JSF component (a small grid) and I would like to know if it's possible to programatically control it outside my JSP. For example let's say that I have the following snippet of code in my JSP: <mytag:grid id="grid1"/> Is it po