The call to 2 different functions, each one using a different data source
HelloI have a problem with the query (see attached code)
When I call the query qProducts getSupplier, I get a "runtime database query error - db2.tbl_product does not exist.
It's like in the qProducts query, the data source seems to be instead of db1 db2 and db2 does indeed not tbl_product.
However if we define a variable for example
< cfset x = #getSupplier () # >
then, in the query qProducts write us
where id_supplier in (#x #)
the query runs without any problem.
Can you please advise on this issue? It's a scope issue? Is this a problem with CF itself?
Thank you and best regards,
Yogesh Mahadnac
In getSupplier, return the valuelist instead of the query.
Tags: ColdFusion
Similar Questions
-
Dashboard calls between 2 different date columns
Hi all
I am creating a dashboard command prompt that will allow users to filter the report from 2 different date columns. We have an opening date column and a column of closing date. I want to allow users to choose an opening date and then a closing date that is at a later date. How could I go to set it up?
Thank you in advance!
I received your question, but I was not sure of your ability to create guest
You will use 2 open and closed dates in the command prompt and set the variables in the presentation. In the report for this 1 date column use <= and="">= instead of operator.
=>
-
2 applications on the same data source vs different data sources
Hello
What is the difference between having 2 planning applications on the same data source with the same user on the DB and with each on a separate user name and the new data source?
I have no problem space or privileges on the two schemas of the DB. I just want to know what the best technically?
Thank you
You need a separate data by application source otherwise each application will overwrite the other that they will share the same relational tables, if you want the planning application to work properly then two apps = two data sources
See you soon
John
-
Columns with the same name but different data or precision length.
DB version: 10 gr 2
In a diagram, I need to find all of the columns with the same name but different or precision data length (if the column is of type number). I know I have to use the USER_TAB_COLS view for this. But I need to find a logic to compare the names of columns and its lengths.something like
select t1.table_name , t1.column_name , t1.data_type , t1.data_length , t2.table_name , t2.column_name , t2.data_type , t2.data_length from user_tab_columns t1 , user_tab_columns t2 where t1.table_name != t2.table_name and t1.column_name = t2.column_name and t1.data_type = t2.data_type and t1.data_length != t2.data_length
... could be a starting point.
-
How to connect to the administration by using JDBC as data source tool in OBIEE
Hello
Can someone explain to me how to connect to using JDBC administration tools? Any reference document would help. I have found no documentation for this.
Grateful for the help.
Thank you.
Use the BI Publisher. OLIVIER only uses ODBC, no JDBC.
-
My dozens of bookmarks, I often want to open 5 or 6 of them at the same time - maybe a couple of weather reports, a couple of radio stations, a couple of other Web sites. But I see no way to do this without laboriously find a bookmark, select it, opening the site, then return to the Favorites, find the second bookmark, select it, open the site and so on. There is probably a way for me to select several independent bookmarks, then open them at the same time. Thanks a lot for your help. Don
Oh I see, when I read your question, my understanding is that you have Web sites that you are opening regularly you would like to open all at once. This is why I have proposed to create a folder with these specific bookmarks.
However, your clarification, it seems that you want to open Web sites randomly here and there. So, essentially, you want to SELECT favorite sites and then open them at the same time.
There is a way to do it. Access your bookmarks by clicking on the menu button drop-down orange Firefox (upper-left). It is:
- Go to \Firefox\Bookmarks\Show all bookmarks;
- Click on "Bookmarks Menu" (in the sidebar);
- Use the CTRL key to select your favorite Web sites.
- Right click and choose "all open tabs.
It's always a bit laborious, but it's the easiest way, I could find, especially if you want to open several tabs at the same time.
-
Receive error message when calculating the two fields with different date format
I'm more familiar with SQL Server and Oracle, then after a search online without success, I ask here.
I use developer PL/SQL with DB Oracle 11g Release 11.2.0.2.0 Enterprise 64-bit
MyTable:
ID_Number VarChar2
Date of Date_Received
Select ID_Number,
Date_Received,
To_Date (substr (ID_Number, 1.6), "YYMMDD") SentDate,.
Date_Received - NumDays To_Date (substr (ID_Number, 1.6), "YYMMDD")
FROM MyTable
Where substr (ID_Number, 7.3) in ('ABC', 'ABD')
and length (Trim (translate ((substr (ID_Number, 1,6)), '0123456789',' '))) a null value
ID_Number Date_Received SentDate NumDays
131002ABC1654106 10/16/10/2013-2013 14 2
131004ABD8813899 4/12/2013-4/8/2013 4
131014ABD1844832 10/16/10/14 OF 2013-2013 2
Sometimes the first 6 characters in the ID_Number aren't the numbers and length (Trim (translate deletes records))
I want just the records where NumDays > 2
I tried to put the request in a subquery and using where NumDays > 2 outside. I also tried using the calculation directly in the Where clause. Without it in Where clause it works very well, with him in a place, I get the following error:
ORA-01931: Date format picture ends before converting all of the input string
I don't know how to put the two dates in the same format. I tried to declare the format without result. I don't understand how I can calculate in the selection, but do not use the same calculation in Where clause.
Thank you for your help.
Hello
SQL is a language to describe the desired results. How the system gets these results belongs to you don't have much say about which conditions will be applied when.
One place where you can control the order of things is a CASE expression. When you say
CASE
WHEN condition_1
THEN expression_1
END
You can be sure that expression_1 will be evaluated only when cond_1 is set to TRUE.
Try something like this:
WITH got_sent_date AS
(
SELECT id_number, date_received
CASE
WHEN the TRANSLATION (SUBSTR (id_number, 1, 6)
, 'x' 0123456789 '.
, 'x'
) IS NULL
THEN TO_DATE (SUBSTR (id_number, 1-6)
, "YYMMDD".
)
END AS sent_date
FROM MyTable
WHERE (id_number, 7, 3) SUBSTR ("ABC", "ABD")
)
SELECT id_number
date_received
sent_date
, date_received - sent_date AS num_days
OF got_sent_date
WHERE date_received > sent_date + 2
;
If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from this data, I was able to test this.
Of course, you'll still errors of execution if id_number starts with 6 digits, but they do not have to be valid, for example '131100' or '130229'. This is one of the reasons why the date information storage in VARCHAR2 columns are a bad idea. To work around this problem, see
-
Select the data on the different data source
Hello
There is a Web Application of merger with a Module of the Application that is based on the "database server 1".
For the calculation of the values of database 1, I need to get data (Table DB) '2 database server.
How to get values (Table) database 2 in the same project?
(I must have a second Module of Application maybee?)
Thank you for advice.I suggest to have several app module with in your template project. Suppose appmod1 for "Database Server 1" and appmod2 for "database 2" server.
I did the same thing in my application and it works very well.~ Abhijit
-
Taskflow have model (using the view object instances) of two data sources
JDeveloper Version: 11.1.2
We have a flow of single task that has built pages on two modules of the Application that are based on two different data sources.
If the default activity in the workflow uses a display Instance of AM belonging to a particular data source object.
Browsing later, we reach a page that uses instances of object of another display AM belonging to a different data source, the framework does NOT deliver from the SQL statement against this source of data rather than the data source used in the default activity.
How can it resolve to the appropriate data sources?
Thanks in advance,
NiniNini,
Yes, it's the way things are meant to run:
http://one-size-doesn
{: identifier of the thread = 1012099}Definition data control range for the workflow to the 'remote' change the behavior?
John
-
Creating a line chart series multi with different data providers
I have 3 providers of data of the same structure that is ArrayCollection of data collection and that you want to use to create a line chart multiseriate. I don't have just 1 dataProvider that can be used but 3 different data providers of the same structure I want to use each different series.
[Bindable] private var orangeSales: ArrayCollection = collection
new ArrayCollection collection)
[{sale: 101000, month: new Date (January 1, 2008 "")},]
{sale: 960000, month: new Date (February 1, 2008 ')},
{sale: 475000, month: new Date (March 1, 2008 ')},
{sale: 425000, month: new Date (April 1, 2008 "")}
] );
[Bindable] private var appleSales: ArrayCollection = collection
new ArrayCollection collection)
[{Sales: 991000, month: new Date (January 1, 2008 "")},]
{sale: 140000, month: new Date (February 1, 2008 ')},
{sale: 565000, month: new Date (March 1, 2008 ')},
{sale: 255000, month: new Date (April 1, 2008 "")}
] );
[Bindable] private var bananaSales: ArrayCollection = collection
new ArrayCollection collection)
[{sale: 891000, month: new Date (January 1, 2008 "")},]
{sale: 147560, month: new Date (February 1, 2008 ')},
{sale: 295000, month: new Date (March 1, 2008 ')},
{sale: 574000, month: new Date (April 1, 2008 "")}
] );
I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.
< mx:ColumnChart showDataTips = "true" >
< mx:horizontalAxis >
< mx:CategoryAxis
dataProvider = "{orangeSales}".
categoryField = 'months '.
/ >
< / mx:horizontalAxis >
< mx:series >
< mx:LineSeries displayName = "OrangeSales" yField = "sale" xField = "month" dataProvider = "{orangeSales}" / >
< mx:LineSeries displayName = "AppleSales" yField = "sale" xField = "month" dataProvider = "{appleSales}" / >
< mx:LineSeries displayName = "BananaSales" yField = "sale" xField = "month" dataProvider = "{bananaSales}" / >
< / mx:series >
< / mx:ColumnChart >
Help, please!
Sorry for the confusion. In fact I do something wrong, such as using ColumnChart to display a line chart or something like that.
Now, I realized that a multi series line graph can be built by the presence of a different data provider for each of the LineSeries object.
If the code below would create a multi series line graph:
[Bindable] private var orangeSales: ArrayCollection = collection
new ArrayCollection collection)
[{sale: 101000, month: new Date (January 1, 2008 "")},]
{sale: 960000, month: new Date (February 1, 2008 ')},
{sale: 475000, month: new Date (March 1, 2008 ')},
{sale: 425000, month: new Date (April 1, 2008 "")}
] );
[Bindable] private var appleSales: ArrayCollection = collection
new ArrayCollection collection)
[{Sales: 991000, month: new Date (January 1, 2008 "")},]
{sale: 140000, month: new Date (February 1, 2008 ')},
{sale: 565000, month: new Date (March 1, 2008 ')},
{sale: 255000, month: new Date (April 1, 2008 "")}
] );
[Bindable] private var bananaSales: ArrayCollection = collection
new ArrayCollection collection)
[{sale: 891000, month: new Date (January 1, 2008 "")},]
{sale: 147560, month: new Date (February 1, 2008 ')},
{sale: 295000, month: new Date (March 1, 2008 ')},
{sale: 574000, month: new Date (April 1, 2008 "")}
] );
I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.
<>
dataProvider = "{orangeSales}".
categoryField = 'months '.
/>
-
Hello
I want to generate the continuous signal and at the same time I want to read that signal that I generate using a single card DAQ. I want to generate signal and the received signal is synchronized and in phase.
I looked at several samples on the sync, but it quiet confusing. One using the same clock of entry while the other use a trigger to start. I use the PCI-6024E DAQ card.
Can someone help me in this regard?
In two of these screenshots, the task to HAVE started first (that's what you want, because it is the task of the slave).
Typically for AO, you can simply write a unique period of your waveform, and then regenerate again and again. Your waveform would be preset before the task starts. If you need to update the waveform on the fly according to enter programming during execution of the task, you would disable the regeneration. In addition, if the wave form is such that it cannot be easily represented by a predefined buffer (for example, it is a strange frequency which is not a same ditch at the bottom of the sample clock), then non-regeneration is the way to go.
Best regards
-
SSRS for lack of outer join with the Oracle data source
It seems to be a problem with the Oracle driver used in the Reporting SERVICES query designer.
When you use an Oracle data source, if I create an outer join in the graphic designer, it automatically inserts '{OJ' before the join and '} ' after her. This is an incorrect syntax for Oracle and refuses to start. The curly braces and the JO editable in designer text, but if I go back to the graphic designer and immediately to reintegrate them.
Only, this has started to happen a year or two ago - before that it worked, but with the old (+) syntax.
Can it not be healed? It makes things very difficult.
-Geoff
Hi Geoff,
Thanks for posting in the Microsoft Community.
However, the question you posted would be better suited in the Forums of the Oracle Support; We recommend that you post your query in Oracle Support Forums to get help:
If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.
-
search form Web apps: how to retrieve the value of the data-source type field
Hello
My question is:
How can I retrieve the value of the source field of a web - app data-types when you insert the "form web search apps" on a web page.
I have a web application that contains fields from the data source of the type. These fields to recover the (data) value of the 'web app' - 'elements of the field' field of another web application.
When I insert the form
Web apps
Web apps-search form
Name of the Web application
It displays the fields with the field (ie. string, number) types other than type of field 'data source '.
(Note: in the mode 'model of list' module of data tags, the fields of the data source are visible).
What other (alternative) possibilities are there to create a search form?
Thanks for your help.
Kind regards
Carla
By chance, I came up with this workaround. Of course there are other methods to get your data from a web - app, but if you want to use the 'Web apps search form', it would be a workaround.
I noticed that the "Web apps entry form" contains all the fields of web applications for your web application (including the fields of the data source).
It is possible to add the fields to the form of the "Web apps entry form" in the «Web apps search form»
If you insert the "Web apps entry form" on a blank page, you will see all the fields in your web App including the "data source fields. The names of form fields contain something like.
-
Pagelet Assistant - the HTML data source
Hi all
I am creating a pagelet of HTML data source. When I type HTML tags in the editor, preview pagelet displays the HTML as such as a text.
So, I'm confused what is the use of HTML data source? Is this something that will make our HTML codes as a pagelet page?
Someone used the html code in the html data soruce pagelets?
Thank you
Hari.ATake a look at a post I wrote a while back on this topic.
http://bloggingaboutoracleapplications.org/control-HTML-Pagelets/ -
ADF 11 g / how to set the data source
Hi all
I'm trying to deploy the my application on weblogic server.
deployment was successful but the following error has occurred so that the home page opened, "password is zero".
I already have a password will be saved and deploy, but it seems that password is not deploy.
So I create a data source on weblogic.
but I have found that the way to set the data source in the model of the adf.
(Production version of 11g Jdeveloper + Adf)
Thank you.
Mucahid behavedDo you use a jdbc url or a jdbc data source?
Model project in you right click on the module of the application and select configuration. Change the configuration to use a jdbc data source.Timo
Maybe you are looking for
-
Line number is missing from the keyboard on the iPad pro screen
Hi all When I used my iPad pro, I noticed the line number included in the on-screen keyboard. I know that some applications do not support, but I found that the number line is completely absent when I use any application (including the mail and Safar
-
Update BIOS question on the Qosmio F50/F55 series
I have advanced and updated the bios of the 1.30 the 2.20 and everything went well.I did not like the new bios for the portable was little more warm, so I went to downgrade to the 1.30.I have two toshiba Web site and has made the winphlash64. Thing i
-
Y50-70 temperatures all in game?
My temp program reads about 70 - 80 c all in game, and I mean heavy games. Like GTA 5, ETC. Is this normal?
-
(Redirected) AMD graphics driver is not available
I have a laptop DELL INSPIRON 15 3521. In the specification of the laptop, he joined {intel hd 3000 graphics card} and discrete {amd radeon 7670 m} graphic but on dell site only integrated intel graphics driver available. Also the AMD AUTO DETECT UTI
-
Hi all I need dell Inspiron N5010 15, Service tag:ADMIN NOTE: maintain the label removed by privacy policy >, battery circuit diagram. Please help me where I can download?