Query in Query Manager
Hey All
How I can run query from Query Manager from addon level?
regards
Krzysztof Sala
Hi Krzysztof,
There is no object in the SDK to access and execute the queries programmatically so you have to use the UI to simulate the user opening and selecting the query (ie activate the menu object for the query you want to run, populate any parameters then click on the OK button to execute the query). It's a bit of a messy solution but it can work ok.
The alternative is to execute your query from within your add-on and display the results in a new form. This form can just have a matrix and an OK button so it's very easy to create (via Screenpainter or at runtime).
Hope this helps,
Owen
Similar Messages
-
Unable to create new query using query manager
Hi friends,
I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
Chapter - creating new queries.
Below are the steps I am going through to create new query:
Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
Please follow this link to see how the page is displayed in first step:
http://uploadpic.org/v.php?img=EvMvVAXX1E
Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
http://uploadpic.org/v.php?img=GzHh3f6krU
Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
http://uploadpic.org/v.php?img=Wbbla3Q3jE
I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
Below is the query that I want to create using query manager:
SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
WHERE P.EMPLID = N.EMPLID AND
N.EMPLID = A.EMPLID AND
P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');Hi,
As I cannot access your screenshot by the blocking of company firewall rules.
I'm guessing currently you are using PT 8.52.00 version, correct?
This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
Hope this helps.
Thanks,
Saxon SI -
Lookup query to get Manager ID value on object form
Hi ,
I have created a Manager ID field on object form which is of type lookup field.
Can any one please tell me that how can i write Lookup query to get Manager ID value on object form.
Thanks in AdvanceI was looking for something like this today too.
Here's what I came up with:
SELECT fu.user_id, fu.employee_id, fu.user_guid, pe1.full_name, pe2.full_name SUPERVISOR, pe2.employee_id
FROM fnd_user fu
JOIN per_employees_x pe1 on pe1.employee_id = fu.employee_id
JOIN per_employees_x pe2 on pe2.employee_id = pe1.supervisor_id
WHERE fu.user_id = $(user_id)
Edited by: user12232265 on Feb 24, 2010 3:20 PM -
How To Display a Query From Query Manager In A Different Format
When I run a query from query manager I get the results displayed which is fine however I was wondering if perhaps there is a way that I can run a query from query manager and the results be displayed in perhaps a format such as XL Reporter.
Is it possible?Thank you all for your replies.
Gordon I am interested in your solution that you have provided could you please elaborate a bit more in it because I am struggling.
I went to query pld selected the one for my report and tried to insert a logo on it and save it however I am unable to save as it says this action is not allowed. -
Error while accessing Query using Query Analyzer
dear experts...
while accesiing the query using query analayzer...
we are getting below error...
What has happened?
URL http://xxx.xxx.xxx.xx:XXXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex call was terminated because the corresponding service is not available.
Note
The termination occurred in system BI1 with error code 404 and for the reason Not found.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:001-u:ANAND-l:E-i:PSRCCPRDA003_BI1_00-v:0-s:404-r:Notfound
HTTP 404 - Not found
Your SAP Internet Communication Framework Team
thanks for helping me...
anandHi friends,,
instead of getting the link like
http://128.222.125.57:9000/sap/bw/bex?cmd=ldoc&infocube=ZMC_SRH1&query=AGINGV21A&sap-language=EN(working link)
am getting below link...which is getting an error....
http://128.222.125.57:9000/sap/bw/://:/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=AGINGV21A
above marked is the unwanted thing so how can i change my link in query designer???
please suggest me firneds -
Using NVL in Query of Query resulting in error
I'm still using CF8 and Oracle 11G back-end.
When I use NVL in the query of query I got error....Can't I use NVL to check on null value? Please help
Here is my codes:
<cfquery name="GetC2" datasource="#Trim(application.OracDSN)#">
SELECT CamID2, rel2_2,p_ln2,p_fn2,ins,l_year
FROM prt_temp
WHERE Ins = 'CC'
AND l_year = '1481'
AND NVL(Child_LN2,' ') <> ' '
AND NVL(Child_FN2,' ') <> ' '
</cfquery>
<cfif GetC2.Recordcount NEQ 0>
<cfquery name="CheckRel2C2" dbtype="QUERY">
SELECT CamID2, rel2_2
FROM GetC2
WHERE NVL(Rel2_2,' ') <> ' '
AND NVL(p_ln2,' ') = ' '
AND NVL(p_fn2,' ') = ' '
AND Ins = 'CC'
AND l_year = '1481'
</cfquery>
</cfif>
The error:
Error Executing Database Query.
Query Of Queries syntax error.
Encountered "NVL ( Rel2_2 ,. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition,NVL is an Oracle function, and is not available in ColdFusion Query of Query. If you are trying to check for null values, then use IS NULL or IS NOT NULL. So
WHERE NVL(Rel2_2,' ') <> ' '
AND NVL(p_ln2,' ') = ' '
AND NVL(p_fn2,' ') = ' '
becomes
WHERE Rel2_2 IS NOT NULL
AND p_ln2 IS NULL
AND p_fn2 IS NULL
-Carl V. -
I'm creating an image gallery. My database has about 1000
records with 10 column.
Now I'm realising there's a lot of trips to the database.
Would it be better that when I init my app I store the "get all"
query and query that from that point? Or is the difference in
performance of querying a query as a oppose to a database not worth
it?
If you say I should query the query, how many records would
be too much to hold in memory.
Thanksquote:
Originally posted by:
dandev
I'm creating an image gallery. My database has about 1000
records with 10 column.
Now I'm realising there's a lot of trips to the database.
Would it be better that when I init my app I store the "get all"
query and query that from that point? Or is the difference in
performance of querying a query as a oppose to a database not worth
it?
If you say I should query the query, how many records would
be too much to hold in memory.
Thanks
It would be better to just select the records you need. -
How to extract the Physical Query(database Query)
Hi ,
How to extract the Physical Query(database Query) from obiee which was fired in obiee
Regards
RangaHi Ranganath,
Have a look the following links.
Setting Logging level:
http://gerardnico.com/wiki/dat/obiee/loglevel
How to see physical query:
http://gerardnico.com/wiki/dat/obiee/manage_session_log
If you are new to OBIEE, spend some hours on the following blog to learn from basics to advanced level.
http://gerardnico.com/wiki/
http://obiee101.blogspot.com/
http://www.rittmanmead.com/blog/
Hope it helps you.
Regards,
Kalyan Chukkapalli
http://123obi.com -
Please suggest a select query / sub query with out using any subprograms or
source table: Three columns ORIGIN, DESTINATION,MILES
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Melbourne Sydney 1000
Brisbane Sydney 1000
Perth Darwin 4000
Sydney Brisbane 1000
out put :Three columns ORIGIN, DESTINATION,MILES
Duplicate routes are to be ignored so the output is
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Brisbane Sydney 1000
Perth Darwin 4000
Please suggest a select query / sub query with out using any subprograms or functions/pkgs to get the out put table.Hi,
user9368047 wrote:
... Please suggest a select query / sub query with out using any subprograms or functions/pkgs to get the out put table.Why? If the most efficient way to get the results you want involves using a function, why wouldn't you use it?
Here's one way, without any functions:
SELECT a.*
FROM source_table a
LEFT OUTER JOIN source_table b ON a.origin = b.destination
AND a.destination = b.origin
AND a.miles = b.miles
WHERE b.origin > a.origin -- Not b.origin > b.origin
OR b.origin IS NULL
;If you'd care to post CREATE TABLE and INSERT statements for your sample data, then I could test this.
Edited by: Frank Kulash on Nov 6, 2012 7:39 PM
Corrected WHERE clause after MLVrown (below) -
What is wrong with this query of query... Basically it seems like the "IF" logic in the select statement isn't looking at the current results, but instead the first line of the AllCategories() query. Any ideas would be much appreciated.
<cffunction name="getCategoryDetail" returntype="query" >
<cfargument name="CategoryID" default="">
<cfset AllCategories = Application.Celerant.QueriesCached.getAllCategories()>
<cfquery name="CategoryDetail" dbtype="query" >
SELECT
<cfif AllCategories.typ eq 'EMPTY'>
'DEPT' as ThisLevel,
AllCategories.Dept as ThisName
<cfelseif AllCategories.subtyp_1 eq 'EMPTY'>
'TYP' as ThisLevel,
AllCategories.typ as ThisName
<cfelseif AllCategories.subtyp_2 eq 'EMPTY'>
'SUBTYP_1' as ThisLevel,
AllCategories.subtyp_1 as ThisName
<cfelseif AllCategories.subtyp_3 eq 'EMPTY'>
'SUBTYP_2' as ThisLevel,
AllCategories.subtyp_1 as ThisName
<cfelse>
'SUBTYP_3' as ThisLevel,
AllCategories.subtyp_1 as ThisName
</cfif>
FROM
AllCategories
WHERE
AllCategories.web_taxonomy_id = #arguments.CategoryID#
</cfquery>
<cfreturn CategoryDetail>
</cffunction>Basically it
seems like the "IF" logic in the select statement isn't
looking at the current results, but instead the first line
of the AllCategories() query.
That is exactly what is happening. The IF is not evaluated within the QoQ. It is evaluated once, before the QoQ executes, using the values in the first record of the query.
QoQ are very limited. AFAIK they and do not support that kind of logic. So you must loop through the query, one row at a time, and calculate the desired values. -
Query of query with left outer join
Hi,
I cannot use joins in query of query, I try the old method using the ( + ) but no luck "Query Of Queries syntax error. Encountered ( + )."
Here is an example of my query code:
select p.part_id, s.supplier_name, s.second_name
from part p, supplier s
where p.supplier_id = s.supplier_id ( + )
and p.second_id = s.second_id ( + );
PART SUPPLIER_NAME SECOND_NAME
P1 Supplier#1 A
P2 Supplier#2
P3
P4
How can I do the same in query of query syntax?
Thanks!I found a solution:
http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/
I am not sure about my second condition. i create the join query for the empty columns.
select part.part_id, supplier.supplier_name, supplier.second_name
from part, supplier
where part.supplier_id = supplier.supplier_id
and supplier.second_id is null
union
select part.part_id, supplier.supplier_name, supplier.second_name
from part, supplier
where part.supplier_id = supplier.supplier_id
and part.second_id = supplier.second_id
union
select part.part_id, joinQuery.supplier_name, joinQuery.second_name
from part, joinQuery
where part.supplier_id not in (#ValueList(supplier.supplier_id)#)
Can anyone check and let me know if this is correct?
My final result have one less row from parts table.
Thanks -
How to implement enter-query , execute-query in Apex Forms
Hi,
I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
Thanks in advance.Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
You can however achieve functionality similar to Enter Query / Execute Query through other means.
The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
Regards, -
Query or query view in webtemplate
Hi guys,
I am working with one webtemplate and related queries/query views.we have different strategy for changing if its query or queryview thats been used in template.
1.How can I find if its Queries or Queryviews that been used for my dataproviders in my webtemplate?I am working with WAD3.5
2.Whats the difference between a query and a query view?what difference does it make if we use query or queryview while building and using a webtemplate?
Thanks alot.
P Olinhi
you should first understand that Query view is nothing but a modified view of the Query. You run a query, do some filtering, navigation or do some changes to the look and then save it as a query view. so the answers would be
1. You open the data provider at the bottom of your webtemplate and there you can see if the data provider is a Query or a view (from the radio buttons)
2. it makes no difference whether u use a Query or query view in a web template. It is up to you to decide in what format you want to see the web report. If you want the web report to display the report in the format of the Query, then you would use Query as data provider. If you have to show the web report in the format of the Query view, then you would use Query view as the data provider.
thanks -
Query on Query Limitations?
Hi,
Regarding the new query on query functionality in XI 3.1 SP2
1. Is there a limitation on the number of elements that come back from the first query that can be used as filter for the 2nd query? In the SQL, it looks like sometimes it translates into a large in list, translating the results of the first query and sometimes it has syntax just referring to the first query (in (select xxx from yy).
2. Is there a limit to how many queries on queries on queries can be included in a single .wid?Hi.
For IBM Informix the maximum query size is 32000 characters. So if the results feeding into the second query blow out the query size beyond this size we receive a database error.
The easiest method to check this is to build your first query that will return a large amount of records and then feed this into a second query using 'Result from another query'. Run the first query to get the results. Prior to running the second query, the SQL view will just show a reference to the results of the first query, as you have seen. Run the second query and when it either finishes or errors out, go back and check the second query SQL. It should now show the results from the first query within the SQL. To test, copy the second query SQL and run it directly on your database server to check if you get an error due to the maximum query size being to large.
I don't know how many times you can nest query on query. -
This is the error I get -
Query Of Queries syntax error. Encountered ". Query Of
Queries runtime error.
The Cold Fusion server is running MX 7,0,1,116466.
The sql is "Select * from Invlotquery2 where lotnum =
'2011-61-12' ". (The extra space after the single quote is for
clarity.)
I have already built the query and the user is trying to
filter on a lot number. Whenever the lot number starts as numeric
and is 10 digits long(2011-61-12) the above error happens. A
lotnumber thats starts as a character or a lot number that starts
numeric and has less than 10 characters or more than 10 characters
works ok. I still have code in place to create a dummy record for
the query that sets the query fields up as characters. I found out
that previous versions of Cold Fusion could create query fields as
numeric if not specified.
This really seems to be a user specific error but I thought I
would post here to see if anyone has had a similiar problem or
knows of a solution.
Thanks,
Dale>> Does a cfqueryparam work with a query of query?
> Yes. I'm not so cruel as to suggest something that
doesn't work ;-)
Hmmm.
Seems there's *degrees* of working. They certainly work when
telling CF
that a value *is* a date, but seemingly not so much when
telling CF that a
string *isn't* a date, even when it clearly isn't.
See this sample code:
<cfset q1 =
queryNew("iCol,dCol","integer,VarChar")><!--- no dates here
--->
<cfset queryAddRow(q1)><cfset querySetCell(q1,
"iCol", 1)><cfset
querySetCell(q1, "dCol", "2011-61-12")><!--- not a date
--->
<cfset queryAddRow(q1)><cfset querySetCell(q1,
"iCol", 2)><cfset
querySetCell(q1, "dCol", "2006-06-29")>
<cfset queryAddRow(q1)><cfset querySetCell(q1,
"iCol", 3)><cfset
querySetCell(q1, "dCol", "2006-07-29")>
<cfset queryAddRow(q1)><cfset querySetCell(q1,
"iCol", 4)><cfset
querySetCell(q1, "dCol", "2006-08-29")>
<cfset queryAddRow(q1)><cfset querySetCell(q1,
"iCol", 5)><cfset
querySetCell(q1, "dCol", "2011-1-12")>
<cfquery name="q2" dbtype="query">
select iCol, dCol
from q1
where dCol = <cfqueryparam cfsqltype="cf_sql_varchar"
value="#javacast('string', '2011-61-12')#"><!--- change
'61' to '1' and it
works --->
</cfquery>
<cfdump var="#q2#">
Now... column dCol is CLEARLY not date data:
1) I'm specifying it as VARCHAR in the query definition.
2) The first value in it is definitely not a date.
3) Nowhere am I treating it like a date.
Although CF apparently knows better, and goes 'ooh... despite
him saying
it's not a date, the data not being date data, and when he
uses the data,
he specifically says "it's not a date" (and man... he's even
saying that
TWICE!)... I reckon cos SOME of the date looks kinda like a
date... I know
what I'll do!!" [and proceeds to collapse in a heap, because
it decides I'm
using dates].
So. Looks like I'm gonna have to suck it up, and suggest you
should listen
to Dan and not me!
Adam
(PS: I shall raise a bug with Adobe regarding this
behaviour).
Maybe you are looking for
-
Drafts folder relocation Outlook 2013 and Gmail IMAP and multiple saves to trash folder
Hi, I have Office professional 2013 32 bit running on Win 7 64bit. I have an issue that I know has been discussed but I see no resolution. The drafts are saved on the server not locally and the trash folder fills with multiple copies of the draft, th
-
AI CC 2014: Tabs are BROKEN.
The way AI used to work with text boxes and tabs was wonderful. Now the tabs have been ruined. I set up a simple text box: 7-1/2" wide. I typed a line of my text, added tabs where desired, plus underline leader on one of the tabs. The underline leade
-
Importing xml file using standard maps in mdm
Hi Experts, In a scenario of getting the data from ECC system to the MDM system(using MDM standard business contents and standard Maps), we are two cases. Case 1 : Using MDM_CLNT_EXTR, we extract the main table records into the standard IDoc structu
-
Doubts about HTTPS requests and Java proxy
Hello, I need help about SSL connections and Java. I'm developing a HTTP/S proxy with Java. To test my proxy, I use Firefox. I configure the proxy option in the browser. The proxy works good with HTTP requests, but with HTTPS requests doesn't work an
-
SMS (and other files) Back location
Where does the iPhone store the backup file of SMS, Contacts etc. on a PC? How can you access these files and print them if needed? Also is there an app that allows you to forward SMS messages as this does not seem possible in the default SMS applica