Query a data source using this format - {call displayLocation()}?
I inherited a CF app and surprisingly I never met calling a function, or a procedure stored like this before. I'm unable to locate the data source, I'm guessing that this is perhaps an Access db?
< cfquery datasource = "MyDSN" name = "$myvariable" >
{call displayLocation()}
< / cfquery >
Well, the numbers. Half an hour later, I find what I'm looking for. It's just an another MSSQL Server SP.
Tags: ColdFusion
Similar Questions
-
A data source using an app does not not to start
I'm adopting the tutorial: https://developer.blackberry.com/cascades/documentation/device_platform/data_access/using_data_sourc... at my request. The only difference is that my app is based on the tabs. Following however to add lines in my file qml, makes the application crashes the gray screen with BB10 logo.
Tab { title: "edit list" imageSource: "asset:///images/note.png" content: Page { titleBar: TitleBar { title: "editing list: " + workingOnList visibility: ChromeVisibility.Visible } Container { id: view ListView { layout: StackListLayout { } preferredWidth: 640.0 // Associate the list view with the data model that's defined in the // attachedObjects list dataModel: dataModel listItemComponents: [ ListItemComponent { type: "item" // Use a standard list item to display the data in the model StandardListItem { title: ListItemData.category_name } } // end of ListItemComponent ] } attachedObjects: [ GroupDataModel { id: dataModel }, DataSource { id: dataSource // Load the data from an SQL database, based on a specific query source: "database.db" query: "select * from categories" onDataLoaded: { // After the data is loaded, insert it into the data model dataModel.insertList(data); } } // end of DataSource ] onCreationCompleted: { // After the root Page is created, direct the data source to start // loading data dataSource.load(); } } } }
The only differences are: code is pasted in the {} instead of {Page} tab, and of course, the name of the database, the columns are changed.
I added bb.data 1.0 import statement in the file .qml, the .pro file was also changed according to the tutorial. Path to the database file is correct.
You have an idea, why this is happening?
Another issue related to the data source:
my main.qml file:
Page { id: mainScreen titleBar: TitleBar { title: "your lists" visibility: ChromeVisibility.Visible } Container { ListView { id: allListsView objectName: "allLists" layout: StackListLayout { headerMode: ListHeaderMode.Sticky } dataModel: allListsModel listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.list_name } }, ListItemComponent { type: "header" Header { title: ListItemData } } ] onTriggered: { select(indexPath); var page = listPage.createObject(); nav.push(page); } } attachedObjects: [ ComponentDefinition { id: listPage source: "listPreview.qml" }, GroupDataModel { id: allListsModel grouping: ItemGrouping.ByFirstChar sortingKeys: ["list_name"] }, DataSource { id: allListsSource source: "database.db" query: "select * from lists" onDataLoaded: { allListsModel.insertList(data); } } ] onCreationCompleted: { allListsSource.load(); } }
New screen grows without any problem after clicking on list items. But when I add the following lines to listPreview.qml, application stucks selection list item and nothing happens.
Page { content: ListView { id: myListView dataModel: dataModel listItemComponents: [ ListItemComponent { type: "item" StandardListItem { title: ListItemData.article_name } } ] } attachedObjects: [ GroupDataModel { id: dataModel }, DataSource { id: dataSource source: "database.db" query: "select * from articles" onDataLoaded: { dataModel.insertList(data); } } ] onCreationCompleted: { dataSource.load(); } }
It looks like I can not query the DB for the second time commenting on the DataSource {...} of listPreview.qml pushed the new app screen without any problems.
EDIT:
a simple solution: I forgot to add the statement import bb.data 1.0 in listPreview.qml
-
How to import from an Oracle data source using the Administration tool?
Trying to create a repository using the tool of Administration and elected to import using the "SPOUT 10 g / 11 g.
However, after you have entered the name of Data Source, the user name and password, I still get error "the connection failed".
According to the help, the data source name must be the full connection string. I guess that means in the format < host >: < port >: < service >. Also, I guess the username and password are the DB schema.
Any ideas why I can't connect?Jin
I tried the tnsnames.ora road, but it still doesn't work. I created a file tnsnames.ora in
\Oracle_BI1\network\admin. Is this correct? Yes
Try to ping your tnsnames command prompt
tnsping service_name
I'm assuming that I don't need an installation of the Oracle client on the same PC I have (Windows) Oracle BI 11g installed on. Is this correct?
on which box you are trying to import tables? Client Oracle installed box or not? .If not you put tns entries in your Inbox
Thank you
saichand.v -
A single query, two data sources
Is it possible to run a query on two distinct datasources? I would compare the data of two databases MS Access separate.
Thank you.You will not be able to combine two data sources in a cfquery, so one way might be for you for each query data source, and then compare the two results using a Q-Q.
Phil
-
Setting white-space characters in the data source using ODI.
Hello
I have a requirement in which I'm traction tables of MSSQL server to a target Oracle using ODI table. We have seen that the data that we pulled had white space and to avoid white space, I used a TRIM (field) in the interface for each column. This solves the problem of white space, but the problem is that we had to implement the TRIM function for all columns in all the tables that we had to pull.
Is there a global way to ODI where I can cut all the columns of a table without having to manually use the TRIM function in each column of the table? Kindly let me know that save us a lot of manual work as we need this comprehensive method on 300 + tables.
Kind regards
JohnNo problems.
Use:
<%=snpRef.getColList("", " if (\u0022[DEST_DT]\u0022.equals(\u0022VARCHAR2\u0022) || \u0022[DEST_DT]\u0022.equals(\u0022CHAR\u0022)){?> trim(:[COL_NAME]) ;}else{?> :[COL_NAME] ;}?> " , " ,\n\t", "","")%>
)It works.
Please, don't forget the 'Useful' or 'Correct' status for each answer that will help you!
Cezar Santos
http://odiexperts.com -
The call to 2 different functions, each one using a different data source
Hello
I 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.
-
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
-
BI Publisher &; dynamic data source
Hello
We try to have one OBI/EE configuration serve several application pre-production environments with mostly identical database schemas.
There is a pool of dynamic connections in BI Server, its data source, the value of a session variable ([see here | http://hekatonkheires.blogspot.com/2009/10/obiee-101341-dynamic-data-source.html]). It works very well.
Now a BI dashboard has a BI Publisher report on it against this dynamic data source. This is equivalent to shouting to the editor and Publisher to recall of presentation services. The session data source variable is lost in the process.
Is there a way of sessions between services of presentation and publication of sharing or otherwise passing session here and there, variables such as URL parameters?
Thanks in advance,
Dirk.HY,
I never try but here I think.
The integration settings between BEEP and OBIEE is made via the guest of dashboard.
If you use a response as a data source in the TWEET, you normally have no problem.
If you use a SQL query as a data source, you must:
* Add a command prompt with a default of your session (for the dynamic connection) variable
* use it in your sql as a bind variable for a schema or a database link.Success
Nico -
Report Builder 1.0 will not connect to the data source for Reporting SERVICES
We have a few users who are unable to connect to SSRS on SQL Server 2008 using the Report Builder version 1.0
(We will be updating soon, but it's a slow process, and now users have questions)
Instead of disputed for their IDs, they are requested to select a data source. This information is supposed to be filled automatically when the user starts the Reporting SERVICES report designer.
Does anyone know where/how SSRS communicates information to start the application with one click Report Builder, and where, if anywhere, it stores?
Hello
The following forum seems most appropriate for your question:
https://social.msdn.Microsoft.com/forums/en-us/home?Forum=sqlreportingservices
You can get a faster response there.
I hope this helps.
Kind regards
Alberto Morillo
SQLCoffee.com -
Planning application data source.
Hello
I have worked on planning for 2 years and never stumbled on this problem or questions. I created a single planning data source and installed a smaple application now, I want to create a new application of my own and try to use the same data source I used for the sample application, but its does not give me an option.
Is it because you have to have a unique data source for each planning application? can I create several data source using the same schema details? I spent by the Administrator's guide, but has failed to find any information regarding my questions.
Any help is greatly apericiated.
Thank you
You could have sought this forums of https://forums.oracle.com/message/4283797#4283797 (I remember a recent post too)
Answer is no, you can not use the same source of data because the information is captured in the system of planning and this is the reason why it does not show you the source of data that is used.
HYP_SYSAPPLICATION and HYPSYS_DATASOURCE contains the values (APP_ID for each application) and DATASOURCE_ID for each data source
Concerning
Celvin
-
can I use this view of discoverer
Hello
I have a view like below in R12.
GL_CODE_COMBINATIONS_KFV
In etrm there is a warning:
Oracle Corporation does not support access to Oracle
applications of data by using this object, with the exception of standard Oracle Applications programs.
Can you get it any one please let me know if I can still use it for a custom sql report.
THX
KPYou can use the KFV for a custom report - just be aware that the definition of the KFV may change without warning (via a patch), and the support will not help if you have problems with the help of the KFV.
Srini
-
Failed to create the Data Source by using the pivot table query
Hi people.
Running Oracle BI Publisher 11.1.1.6.0
He complains with ORA-01738: lack of KEYWORD
When I try and a SQL query in function by using the data set:
SELECT *.
FROM (SELECT ist.descr |) ' '|| EIT. Descr service_type, ROUND (sum (milf.ttl_number_units)) ttl_number_units
Of mv_iot_line_item_forecasting mllf
Ope on ope.master_entity_id = milf.partner_master_entity_id JOIN operator
JOIN iot_service_type on ist.iot_service_type_id = milf.iot_service_type_id ist
JOIN iot_event_type on iet.iot_event_type_id = milf.iot_event_type_id EIT
WHERE milf.iot_agreement_id = 2621
AND milf.traffic_direction = 'CR '.
AND ope.operator_type_id = pkg_ngc_constants.operator_type_id_gsm
Ope.main_reference GROUP, ist.descr | ' '|| EIT. Descr)
PIVOT (sum (ttl_number_units) FOR service_type IN ("Voice MO' like' voice', 'MT voice' as 'voice MT", "SMS MO" as "SMS MO", "SMS MT" as "SMS MT", "MB of data" as "MB of data"))
order by 1
No idea why it won't let me create?
The query runs perfectly fine in SQL.
Any input appreciated.
SimonCan you try to change your "IN" clause to this and see if it works?
service_type IN ("voice MO' as Voice_MO, 'Voice MT" as Voice_MT, "SMS MO" as SMS_MO, "SMS MT" SMS_MT, 'MB of data' as Data_MB)
Thank you
Bipuser
Published by: BIPuser on October 18, 2012 07:40Published by: BIPuser on October 18, 2012 07:41
-
Display images using URLS from a data source
Hello!
I have a source of JSON data with a URL pointing to the image. Basically, each record is a description of the dish and lead to URL of image with floor etc. plan...
How much control should I use to view these images? I tried
-IFrame, but it does not display the Referrer attribute.
-Result: a list, but it can only attribute as a URL parameter. If I have {0} for full URL it does not display anything
Basically, I want to refer to the IFrame URL attribute. It's an obvious thing and simplest
Any ideas?
Kirill
Answer:
Oracle® short Information Discovery Studio: Studio user's Guide
Page 205
3. use only one attribute for the full URL, but that data ingest processes encode any non structural
parts of the URL, such as query string parameters.
This prevents script injection and addresses all characters that are not allowed. When you enter the URL, you can then use the value of the attribute without encoding more far. For example:
{{0}}
0 is a number in the list of selected parameters.
-
I just made and recorded an intro I would like to use for all my projects, it is saved in a (* perl) file and is the only option to save in this format. When I try to open this file and start a new project using tha the intro file, I get an error "the file is not a supported file or codex is not installed. How can that be, I made the file using this program and he does'nt recognize files it creates? Please advise... Thanks /.
grethell
What version of Premiere Elements you are using and on what computer operating system is running?
You cannot import a project file (.prel) in another.
For now, generalize choice
a. export your Timeline (your intro) content to a file saved on the hard drive of the computer. And then import that
file in new projects by using the new project add Media/files and folders. See publish + Share/computer/and the other
choices here to generate this file intro for later use in other projects.
b. you can set up what is called a dummy projects - this is a project with nothing other than the intro file. And, at all times
you want to use the intro, you open one of these saved dummy projects and add your media sources.
A lot of things to discuss. Please fill in some details more and then we can refine the answer for your particular situation.
Thank you.
RTA
-
stupid questions on the use of mds-GOSA/bip_datasource data sources.
Dear gurus,
I'm confused about the use of some as securities data sources.
And what is the relationship of them with RPD source data/connection pool setting?
As I found in the turning performance guide, while I can't find where is the caller / user of these data sources and never mentioned turning guide turning data sources RPD which I think is more important...
So I think I must have Miss understanding of something, need your help!
MichaelHi Michael,
The data sources mds-GOSA/bip_datasource etc. are for the weblogic server access to the metadata of Fusion Middleware.
If you remember, we had used the RCU to create a repository of information of configuration settings, host of Fusion Middleware /product information/versions etc in a separate database, and these data sources are created in weblogic, and the different products that we install, in this case OBIEE/RTD/BIPublisher etc. can interact between them, transparently and through weblogic.
Since then, it is the common platform (application server) on which all products have been deployed, it is necessary that we tune elsewhere too for optimal performance from the Infrastructure point of view.
Now, the connection pool of the physical layer in our .rpd is all about access to data, and so the setting guide does not, in this regard because it is completely dependent on the type of data source, network interfaces of appeal, not concurrrent users, total dashboards, reports etc etc which is dependent demand.
The setting guide is all about the setting of the Middleware Infrastructure + optimal settings for middleware (middleware) only.
Hope that I was clear.
Thank you
Diakité
Maybe you are looking for
-
HP mini 1000 enter current password computer
mother-in-law is unable to access his laptop. When it turns on, it comes up to enter current password. Try 3 times and the error pops up. cnu9102hds. need password please
-
What should I do to change my view of the screen of my iPhone 6 more (iOS 9.2.1) to horizontal view, even once, that she had worked before. I went to setting and changed to chick turn off the lock to the Accessibility button, sound still doesn't unlo
-
LaserJet 3600n: upgrade memory for LaserJet 3600n?
By a suggestion in a previous thread, I bought Q7723A for my 3600n printer. Q7723A is a module of 200 pins. The pins are not aligned and it does not. I've rechecked in HP parts Surfer and indeed she suggests Q7723A. Once again, this part is * not
-
WHEN I GET AN EMAIL THAT GOES TO WINDOWS MEDIA, I GET A MESSAGE THAT IT IS LOW ON MEMORY AND CLOSE ALL PROGRAMS AND TRY AGAIN. HE DOESN'T SE NOTHING HAPPENING WHEN I DO THIS
-
Can we disable sliding Page transition?
Hi all I just want to know that can when we are pushing a page to a different Page then drag Page transition animation can be disable or not. Thanks in advance. Ankur