assistance in case of data model BI Publisher
Hi allI created the data model of BI Publisher,
< Parameters >
< name of the parameter = 'documents' dataType = 'character' defaultValue = "" / >
< / Parameter >
< dataQuery >
< SQLStatement instance name = "Q1" >
<! [CDATA]
If (: documents == "s") then {}
Select "ihbojnlj" double s; }
else {}
Select "ffffffj" double s;
}
[]] >
< / sqlStatement >
< / dataQuery >
I am facing problem how to use in case of syntax, if the value of documents = initiative so I'll run A query
If the value of documents = pr, then I'll start query B and so on.
do you have any idea?
Thanks in advance
You can use something like
Select "ihbojnlj" s where double: documents == "s".
UNION
Select "ffffffj" s where double: documents == 'a '.
Tags: Business Intelligence
Similar Questions
-
Can I use session variables in data model BI publisher SQL query?
Hi Experts,
We apply security at the level of the BI Publisher 11g data.
In OBIEE we do so using session variables, so I wanted to just ask if we can use the same session variables in BI Publisher as well
That is, we can include a where clause in the SQL for the sample data as
Where ORG_ID = @{biServer.variables ['NQ_SESSION.]} {[INV_ORG']}
I would like to know your opinion on this.
PS: We implement security EBS r12 in BI Publisher.
Thank youRead this-> OBIEE 11 g: error: "[nQSError: 23006] the session variable, NQ_SESSION.» LAN_INT, has no definition of value. "When you create a SQL query using the session NQ_SESSION variable. LAN_INT in BI Publisher [ID 1511676.1]
Follow the ER - BUG: 13607750 -NEED TO be able TO SET up a SESSION IN OBIEE VARIABLE AND use it IN BI PUBLISHER
HTH,
SVS -
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
-
How to recover data from plsql table in the BI publisher data model
Hi all
I created a data model for XML editor report. In the data model I m get plsql table data. for this I created a package with a function in the pipeline. I am able to run sql in sql developer. But if I run the program at the same time, then I got error like "java.sql.SQLSyntaxErrorException: ORA-00904:"XXXXX": invalid identifier.
I used the same settings in the data model and simultaneous program...
Please tell me what to do...
Thanks in advance...
Kind regards
DossI think P_ORG_ID is the parameter
so use:P_ORG_ID
-Add
also why not use simple sql query?Published by: Alexandr Sep 14, 2012 04:48
-
How data (xml) sample in the data model get updated in bi publisher?
Hi all
I want to know how data sample get updates that is used in the reports to bi publisher data model?
Thanks in advance
VishalHello
Its actualization based on the query that you create in the data model.
Hope this answer will help you. Please let me know it's what you are expected?
Thank you
RDM -
Hide button in the data model of bi publisher 11.1.1.6.4 apply
Hi all
According to the oracle documentation, we can hide the button apply in the data model in OBIEE 11.1.1.6... Version. However, I checked the version 11.1.1.6.0,11.1.1.6.4 there is no feature in the data model to hide the button apply as shown in the figure below. Is available in 11.1.1.7.0 latest version only?
http://Tinypic.com/r/bg9yf/5
Thank you
SushilI think that is in with settings in the "Apply" button. You do not have the ablility to show the button apply or not. You can set it in the display options settings page-> show the button apply.
I work with the version of Oracle Business Intelligence 11.1.1.6.7 and I am able to set this property.
Thank you
Bipuser -
No data found message in the BI Publisher data model?
Hello
I built a BEEP report, based on the data model.
Please advice if there is no data returned by the query, how to display an error message something like 'no data found with above settings.
Thank you
Murali.Murali
If there is no data then the generated XML will be empty of data but won't be valid. If all you need to do in the layout template is something like
No data found
where INVOICES is a repeated group waited in the data
Tim
-
Multiple datasets in single data model
Dear experts,
We have created a unique data model that has several sets of data sharing common to BI 11 g Publisher parameters.
We are facing a problem of performance (data recovery is very slow) while to fetch data from database on execution.
How to improve the performance in this case?
Your help will be very appreciated.
Thanks in advance!
DB BLOB data recovery should not be a problem. But just to make sure that you remove your SQL BLOB type and see to it there improvements?
Unfortunately I can't find any documents which mention the process of execution of the data sets.
But you can do a proof for yourself:
Add sysdate with timestamp on each set of SQL data and you can see the date with timestamp in the output xml (data view tab) which will show you what set of data is performed first and then what that and etc...
It will be executed in the order of your data set creation. You can see the structure of the data set in the Structure tab.
Have you considered the approach below?
I recommend you to do.
Is there is no adjustment to make in your SQL, then you can use triggers of events (before the data type).
You can create a package that runs your sql DB and insert the data into a temporary table and then just ask the temporary table on the data set.
-
Hello OTN.
I don't understand why my sql query will pass by in the data model of the BI Publisher. I created a new data model, chose the data source and type of Standard SQL = SQL. I tried several databases and all the same error in BI Publisher, but the application works well in TOAD / SQL Developer. So, I think it might be something with my case so I'm tender hand to you to try and let me know if you get the same result as me.
The query is:
SELECT to_char (to_date ('15-' |)) TO_CHAR(:P_MONTH) | » -'|| (To_char(:P_YEAR), "YYYY-DD-MONTH") - 90, "YYYYMM") as yrmth FROM DUAL
Values of the variable:
: P_MONTH = APRIL
: P_YEAR = 2015
I tried multiple variations and not had much luck. Here are the other options I've tried:
WITH DATES AS
(
Select TO_NUMBER (decode (: P_MONTH, 'JANUARY', '01',))
'FEBRUARY', '02',.
'MARCH', '03'.
'APRIL', '04'
'MAY', '05'.
'JUNE', '06'.
'JULY', '07',.
'AUGUST', '08'.
'SEPTEMBER', '09'.
'OCTOBER', '10',.
'NOVEMBER', '11'.
"DECEMBER", "12."
'01')) as mth_nbr
of the double
)
SELECT to_char (to_date ('15-' |)) MTH_NBR | » -'|| (TO_CHAR(:P_YEAR), 'DD-MM-YYYY') - 90, "YYYYMM")
OF DATES
SELECT to_char (to_date ('15-' |: P_MONTH |)) » -'|| ((: P_YEAR, 'MONTH-DD-YYYY')-90, "YYYYMM") as yrmth FROM DUAL
I'm running out of ideas and I don't know why it does not work. If anyone has any suggestions or ideas, please let me know. I always mark answers correct and useful in my thread and I appreciate all your help.
Best regards
-Konrad
So I thought to it. It seems that there is a bug/lag between the guest screen that appears when you enter SQL in the data model and parameter values, to at model/value data.
Here's how I solved my problem.
I have created a new data model and first created all my settings required in the data model (including the default values without quotes, i.e. APRIL instead "Of APRIL") and then saved.
Then I stuck my sql query in the data model and when I clicked ok, I entered my string values in the message box with single quotes (i.e. "in APRIL' instead of APRIL)
After entering the values of string with single quotes in the dialog box, I was able to retrieve the columns in the data model and save.
In the data tab, is no longer, I had to enter the values in single quotes, but entered values normally instead, and the code worked.
It seems the box prompted to bind the values of the variables when the SQL text in a data model expects strings to be wrapped in single quotes, but no where else. It's a big headache for me, but I'm glad that I solved it, and I hope this can be of help to other institutions.
See you soon.
-
Hi, I'm new to BI Publisher. How to change the format of date in BI Publisher. I have already 1 format of database, but in the reports that we want to use a different format, how can we do?
I have already 1 format of database, but in the reports that we want to use a different format.
data relate to the model through representation of xml data (I omitted the case on the use of csv like data source etc)
If you have two place for interaction date
(1) the database in xml format
(2) the model xml
so you can form date of case 1 and only to tag for it in the model
If you want to change the format of the xml representation data you can change in case 2 ( Mathieu Sundarasamy-Oracle (as I prefer) or very little 934101 of path) or in case 1 (change of format mask in the generation of xml)
so, you have two ways to work with date
and if you use the first case to dictate using the format mask appropriate for the needs of report production and no more
but in the second case the new date format based on the representation of the date to xml format
If you in case 1 and then change the format mask for your needs
If you in case 2 then post sample xml or try yourself in order to adapt the example Mathon Sundarasamy-Oracle
-
Data model (error: not a valid month)
Hi all
I develop a report of BI Publisher using data model where I FastInventory range date as start date and end Date. When I try to run the report I get the error as
ORA-01843: not one month valid
ORA-06512: at line 3 level
In my default package, at the beginning of the model, I said start date and end date of. In the report, for date settings start date and end, I've given parameter as date type and date in the form MM/DD/YYYY format.
The same report runs and if I use the model type of data as a sql query. But if I use the data model, I get the above error. I need to put the report using the data model. I can provide my data structure if necessary.
Could someone help me?
Thanks in advance...In case you haven't, try:
AND trunc (NPP. NOTE_TIMESTAMP) BETWEEN to_date (: p_start_date, ' DD/MM/YYYY') AND to_date (: p_end_date, ' MM/DD/YYYY ' ")
-
Activity indicator for loading data model
Hello
I'm looking in using an activity indicator to show for my list view to load the user (as it takes 2-3 seconds to display list to be filled with data that it receives the files from my server).
Here is my list view & data source:
ListView { id: listView1 dataModel: dataModel1 leadingVisual: [ Container { id: dropDownContainer1 topPadding: 20 leftPadding: 20 rightPadding: 20 bottomPadding: 20 background: Color.create("#212121") DropDown { id: dropDown1 title: qsTr("Date:") + Retranslate.onLocaleOrLanguageChanged Option { id: all text: qsTr("All") + Retranslate.onLocaleOrLanguageChanged selected: true } Option { text: qsTr("23/06/2014") value: "23/06/2014" } Option { text: qsTr("24/06/2014") value: "24/06/2014" } Option { text: qsTr("25/06/2014") value: "25/06/2014" } Option { text: qsTr("26/06/2014") value: "26/06/2014" } Option { text: qsTr("27/06/2014") value: "27/06/2014" } Option { text: qsTr("28/06/2014") value: "28/06/2014" } Option { text: qsTr("29/06/2014") value: "29/06/2014" } Option { text: qsTr("30/06/2014") value: "30/06/2014" } Option { text: qsTr("01/07/2014") value: "July 1 2014" } Option { text: qsTr("02/07/2014") value: "July 2 2014" } Option { text: qsTr("03/07/2014") value: "July 3 2014" } Option { text: qsTr("04/07/2014") value: "July 4 2014" } Option { text: qsTr("05/07/2014") value: "July 5 2014" } Option { text: qsTr("06/07/2014") value: "July 6 2014" } onSelectedIndexChanged: { if (selectedOption == all) { dropDownDataSource1.sQuery = "" } else dropDownDataSource1.sQuery = dropDown1.at(dropDown1.selectedIndex).value; } } } ] listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.fixtureInfo description: Qt.formatTime(new Date(ListItemData.timestamp * 1)) } } ] onTriggered: { var selectedItem = dataModel1.data(indexPath); var detail = fixtures.createObject(); detail.fixtureInfo = selectedItem.fixtureInfo detail.dateInfo = selectedItem.dateInfo detail.timeInfo = selectedItem.timeInfo detail.timeZone = Qt.formatTime(new Date(selectedItem.timestamp * 1)) detail.courtInfo = selectedItem.courtInfo detail.resultInfo = selectedItem.resultInfo navigationPane1.push(detail) } }
GroupDataModel { id: dataModel1 sortingKeys: [ "dateNumber", "id" ] grouping: ItemGrouping.ByFullValue sortedAscending: false }, DataSource { id: dataSource1 property string sQuery: "" onSQueryChanged: { dataModel1.clear() load() } source: "http://tundracorestudios.co.uk/wp-content/uploads/2014/06/Fixtures.json" type: DataSourceType.Json onDataLoaded: { //create a temporary array tohold the data var tempdata = new Array(); for (var i = 0; i < data.length; i ++) { tempdata[i] = data[i] //this is where we handle the search query if (sQuery == "") { //if no query is made, we load all the data dataModel1.insert(tempdata[i]) } else { //if the query matches any part of the country TITLE, we insert that into the list //we use a regExp to compare the search query to the COUNTRY TITLE (case insenstive) if (data[i].fixtureInfo.search(new RegExp(sQuery, "i")) != -1) { dataModel1.insert(tempdata[i]) //Otherwise, we do nothingand donot insert the item } } } // this if statement below does the same as above,but handles the output if there is only one search result if (tempdata[0] == undefined) { tempdata = data if (sQuery == "") { dataModel1.insert(tempdata) } else { if (data.fixtureInfo.search(new RegExp(sQuery, "i")) != -1) { dataModel1.insert(tempdata) } } } } onError: { console.log(errorMessage) } },
onCreationCompleted: { dataSource1.load() }
In another part of my application, I use an activity indicator to load a webView but I couldn't reshape it for the list view.
The following code works when my webView loads:
WebView { id: detailsView settings.zoomToFitEnabled: true settings.activeTextEnabled: true settings.background: Color.Transparent onLoadingChanged: { if (loadRequest.status == WebLoadStatus.Started) { } else if (loadRequest.status == WebLoadStatus.Succeeded) { webLoading.stop() } else if (loadRequest.status == WebLoadStatus.Failed) { } } settings.defaultFontSize: 16 }
Container { id: loadMask background: Color.Black layout: DockLayout { } verticalAlignment: VerticalAlignment.Fill horizontalAlignment: HorizontalAlignment.Fill Container { leftPadding: 10.0 rightPadding: 10.0 topPadding: 10.0 bottomPadding: 10.0 horizontalAlignment: HorizontalAlignment.Center verticalAlignment: VerticalAlignment.Center ActivityIndicator { id: webLoading preferredHeight: 200.0 preferredWidth: 200.0 horizontalAlignment: HorizontalAlignment.Center onStarted: { loadMask.setVisible(true) } onStopping: { loadMask.setVisible(false) } } Label { text: "Loading Content..." horizontalAlignment: HorizontalAlignment.Center textStyle.fontSize: FontSize.Large textStyle.fontWeight: FontWeight.W100 textStyle.color: Color.White } } }
onCreationCompleted: { webLoading.start() }
Therefore, what I am trying to make is: get the activity indicator to show when the list view is charging and when it's over, for the activity indicator be invisible. Also, if the user doesn't have an internet connection or loses the signal while the data is filling: would it be possible to recover data from a file stored locally instead ("asset:///JSON/Fixtures.json")?
Thanks in advance
With the help of a few other developers I maneged to make everything work properly.
Jeremy Duke pointed out that I would need to use the onItemAdded in my data model of the Group:
onItemAdded: { myActivityIndicator.stop(); myActivityIndicator.visible = false; loadMask.visible = false; searchingLabel.visible = false; }
Adding that, the loading stops when an element has completed the list.
Thanks for your help
-
Yesterday I was working in my design of the database with data v4.1.1.887 maker and then saved work in file and closed the application.
And today, something bad happened, the application opens my design but only displays a list of the areas that I created for my design.
I can't display in the Explorer window of my: logic model, structured data types that I created, process and business information model diagrams.
I migrated to v4.1.1.888 Data Modeler and the problem persists, then looked at the previous issues resolved in the forum and found an answer to a similar case of problem
4.0EA2 (v4.0.0.820) Data Modeler after accepting migration from previous installation of v3.3.0.747 DM preferences settings.
So I deleted the files preferences (I use Windows Vista) C:\Users\username\AppData\Roaming\Oracle SQL Developer data Modeler\system4.0.0.887 and 8, but the problem persists there.
I also looked at the directory of the files that make up my design, and the size and the number of them seem to be without significant alteration I looked a few days ago.
Can give me a solution to this problem?
Hi David,
After some research and testing, I finally solved the problem. I did the following:
I deleted the text value from my memory of java in the java Control Panel of windows,
I deleted the 4.1.1. C:\Users\username\AppData\Roaming\datamodeler\4.1.1 carpet
I changed the memory to-Xmx2048m in datamodeler.conf in the datamodeler\datamodeler\bin folder
then tried to start the Data Modeler but never value began, then reduced to-Xmx1024m and he began
and not migrated preferences the next time I opened the Data Modeler and set preferences with utf-8 (I noticed it comes by default with coding cirillic)
I closed and restarted datamodeler the external newspaper and made settings worked very well.
Then I started to test with 3 versions of my design work for this month, their sizes are 5MB, 10MB, 10.1 MB the recent
I opened and closed each oldest works to the latest and the oldest two worked fine without error in the external journal.
However, the recent open all the drawings but I found an opening in the external log error:
2015-07-24 19:46:31, 685 [Thread-25] ERROR XMLTransformationManager - cannot parse list of objects: C:\Systems\Software\Event-Cloud\Workspaces\Des-Database\v1.0.0.1-whole\dbd-150721-1\v100-dev\businessinfo/Objects.local
Oracle.Xml.Parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of the element root waited.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:463)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:404)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:245)
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:175)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(XMLTransformationManager.java:3236)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPartManyFiles(XMLTransformationManager.java:3692)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(XMLTransformationManager.java:3545)
at oracle.dbtools.crest.model.design.Design.openDesign(Design.java:1438)
I checked the Objects.local file and it's there. then I closed the design without saving changes and ended Datamodeler application.
Then I opened the Objects.local with Notepad ++ and I found and structure XML and the data that I wrote in my family business contact section has disappeared from the design
I restarted Datamodeler opened and closed my recent design and that article accompanied by white, the datamodeler clos
Search the file and noted increased its size 153 MB so she tried to open it with notepad ++ but it crashed.
So I compared the previous Objects.local files and they are content equal and I did not modify this related part and the IDS are the same.
I then removed the big Objects.local bad and replaced it with the previous version of the file and then started to Datamodeler
and my recent design opens and closes fine without errors in the external journal.
I think your application when open a file and found a critical error Stops to load the file and reports the external newspaper but if a non-critical error
It displays the design and the log window does not show something goes wrong, in my case, I was not aware of this.
Kind regards
Julio.
-
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
-
groups-3 data urgent in the data model (bi pub 10 g do not show xml tags)
Hello
I have a requirement that the needs of data comes from 3 groups.
In the 10g data model, I saw master - detail... like 2 groups
How to reach 3 groups
When I do, not able to see the 3rd Group (Group 3) xml tags
Group 1
-Select inv_id
-Returns inv_id
Group 2
-Select col2
where col2 =: inv_id
Group 3
-Select data where
col_1 =: col2
pelase help>
Group 1
-Select inv_id
-Returns inv_idGroup 2
-Select col2
where col2 =: inv_idGroup 3
-Select data where
col_1 =: col2
>
Looks like that okWhen I do, not able to see the 3rd Group (Group 3) xml tags
What is the structure of article dataStructure?
It can be asor post more information on the structure of article dataStructure
I prefer unique identify related as columns
group 1 --select inv_id as grp1_ind_id --returns inv_id group 2 --select col2 as grp2_col2 where col2=:grp1_ind_id group 3 --select data where col_1=:grp2_col2
because I saw the case, then the columns with the same name does not properly
Maybe you are looking for
-
IMAC? FOXNEWS ap in notifications want removed
Greatings, Has begun to receive notifications from FOX. Their FOXNEWS ICON appeared in my list of notifications in Sys Pref. Not sure how he got there. Must have inadvertently clicked on something in a story. Can turn on and outside banners/alerts, b
-
Pavilion G6: Win XP drivers for laptop HP Pavilion G6
I have a laptop HP Pavilion G6. The number of SKUS is A6Z74UA #ABA. I need Win XP drivers for this model. I saw postings for different models of G6. How to identify which model is my laptop?
-
How to register QGeoCoordinate fo QML
Hello is it possible to use QGeoCoordinate as type for Q_PROPERTY? don't have to work - QML allways tells me that it is an unknown type I can't save as type qmlRegisterType(...) does not compile registration as a Metatype does not help: qRegisterMeta
-
Hi all Yesterday, I installed a Cisco SG500-28 switch L3 routing als in our "Core". Today, every customer with this switch as default gateway Gets a message from "ICMP flood Attack" in our company ESET firewall security. Y at - it a setting that I ca
-
How to find files of outlook data on a hard drive removed from a windows xp machine?
My phone no longer works and I was able to get most of the data of my backups that they did not understand my outlook e-mail accounts. I have the removed disk and got a hard drive enclosure. Problem is that I can not locate the outlook.pst file. Do y