Change control query syntax?
I'm working on an OAE system where I need to extract a list of all changed components, based on date-last-updated.
Is there a wwv_xxx query that will extract all changes after a particular date-time?
Hi Vicas,
Very helpful. Thanks!
Michael Cunningham made this script to list-off all changed components after a specific date, and this can now be placed into a shell script:
select t.audit_date,
decode
( t.audit_action,
'I', 'Create',
'D', 'Delete',
'Change' ) audit_action,
t.flow_user,
t.flow_id,
f.name application_name,
t.page_id,
s.name page_name,
t.flow_table,
t.flow_table_pk
from wwv_flow_steps s,
wwv_flows f,
wwv_flow_builder_audit_trail t
where f.id = t.flow_id
and s.flow_id = t.flow_id
and s.id = t.page_id
and t.audit_date > :migcheck_last_prod_migration_datetime
order by t.audit_date desc;
Similar Messages
-
Query syntax error after multiprovider change
Hi everyone,
I removed key figures from a multicube, changed a query on top afterwards and saved it. The key figures are no longer in the key figure list of the query in the Query designer, and are no longer used in any place within the query.
Now, I'm getting a syntax error on query execution, since the compiled query still contains a reference to the old key figures. Regeneration via RSRT or saving under a new name doesn't work, and to delete the generated report I need a developer key.
Any ideas?
Regards,
TilmanHi Shashank,
thanks for your response.
I did try the "check query" button, it didn't return an error. When executing the query via rsrt, I get a dump due to "Syntax error in program GP48VM7K0MSF08DRO2382A2PSTI ". The program still contains data type references to the removed infoobjects. When checking the program via SE38, you get just that syntax error.
I'm looking for a way to clean these things up. Even when creating a new query on the aggregation level (I was talking about a multiprovider earlier, which is located underneath), the error pops up. I activated all the objects along the way, with no effect.
Regards,
Tilman -
How to retrieve dynamic filter value submitted from control query to broadcast query.....
I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
But how do I catch the dynamic filter value which has been submitted by the bursting query,
with other words: where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
Any thoughts are welcome!
Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PMFurther information,
Report is used via webi only, not Xcelsius or Dashboard.
Report is consuming BI Web Services.
Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows? -
Change Control Wizard - Audit rule tables
Hi All,
New forum member here, and I have a question regarding the setup of audit rules using the Change Control Wizard in PCG. The first rule we are setting up is to track changes to supplier files, and when we generated the audit rule we were expecting the audit table to be LA_AC_APXVDMVD, but instead the table it created was SQLAP.AP_SUPPLIER_SITES_ALL. I am not sure why this occurred, but it appears that we may have configured the rule incorrectly. Any insight you can provide would be greatly appreciated.
Thanks,
MarcI am not sure what you want to do with the table name.
However, just to answer the query the table is correct. Since you created the rule for the supplier master files it picked the underlying supplier table
SQLAP.AP_SUPPLIER_SITES_ALL. -
How I can change this query, so I can display the name and scores in one r
How I can change this query, so I can add the ID from the table SPRIDEN
as of now is giving me what I want:
1,543 A05 24 A01 24 BAC 24 BAE 24 A02 20 BAM 20in one line but I would like to add the id and name that are stored in the table SPRIDEN
SELECT sortest_pidm,
max(decode(rn,1,sortest_tesc_code)) tesc_code1,
max(decode(rn,1,score)) score1,
max(decode(rn,2,sortest_tesc_code)) tesc_code2,
max(decode(rn,2,score)) score2,
max(decode(rn,3,sortest_tesc_code)) tesc_code3,
max(decode(rn,3,score)) score3,
max(decode(rn,4,sortest_tesc_code)) tesc_code4,
max(decode(rn,4,score)) score4,
max(decode(rn,5,sortest_tesc_code)) tesc_code5,
max(decode(rn,5,score)) score5,
max(decode(rn,6,sortest_tesc_code)) tesc_code6,
max(decode(rn,6,score)) score6
FROM (select sortest_pidm,
sortest_tesc_code,
score,
row_number() over (partition by sortest_pidm order by score desc) rn
FROM (select sortest_pidm,
sortest_tesc_code,
max(sortest_test_score) score
from sortest,SPRIDEN
where
SPRIDEN_pidm =SORTEST_PIDM
AND sortest_tesc_code in ('A01','BAE','A02','BAM','A05','BAC')
and sortest_pidm is not null
GROUP BY sortest_pidm, sortest_tesc_code))
GROUP BY sortest_pidm;
Hi,
That depends on whether spriden_pidm is unique, and on what you want for results.
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevamnt columns only) for all tables, and the results you want from that data.
If you can illustrate your problem using commonly available tables (such as those in the scott or hr schemas) then you don't have to post any sample data; just post the results you want.
Either way, explain how you get those results from that data.
Always say which version of Oracle you're using.
It looks like you're doing something similiar to the following.
Using the emp and dept tables in the scott schema, produce one row of output per department showing the highest salary in each job, for a given set of jobs:
DEPTNO DNAME LOC JOB_1 SAL_1 JOB_2 SAL_2 JOB_3 SAL_3
20 RESEARCH DALLAS ANALYST 3000 MANAGER 2975 CLERK 1100
10 ACCOUNTING NEW YORK MANAGER 2450 CLERK 1300
30 SALES CHICAGO MANAGER 2850 CLERK 950On each row, the jobs are listed in order by the highest salary.
This seems to be analagous to what you're doing. The roles played by sortest_pidm, sortest_tesc_code and sortest_test_score in your sortest table are played by deptno, job and sal in the emp table. The roles played by spriden_pidm, id and name in your spriden table are played by deptno, dname and loc in the dept table.
It sounds like you already have something like the query below, that produces the correct output, except that it does not include the dname and loc columns from the dept table.
SELECT deptno
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT deptno
, job
, max_sal
, ROW_NUMBER () OVER ( PARTITION BY deptno
ORDER BY max_sal DESC
) AS rn
FROM (
SELECT e.deptno
, e.job
, MAX (e.sal) AS max_sal
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno
, e.job
GROUP BY deptno
;Since dept.deptno is unique, there will only be one dname and one loc for each deptno, so we can change the query by replacing "deptno" with "deptno, dname, loc" throughout the query (except in the join condition, of course):
SELECT deptno, dname, loc -- Changed
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT deptno, dname, loc -- Changed
, job
, max_sal
, ROW_NUMBER () OVER ( PARTITION BY deptno -- , dname, loc -- Changed
ORDER BY max_sal DESC
) AS rn
FROM (
SELECT e.deptno, d.dname, d.loc -- Changed
, e.job
, MAX (e.sal) AS max_sal
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno, d.dname, d.loc -- Changed
, e.job
GROUP BY deptno, dname, loc -- Changed
;Actually, you can keep using just deptno in the analytic PARTITION BY clause. It might be a little more efficient to just use deptno, like I did above, but it won't change the results if you use all 3, if there is only 1 danme and 1 loc per deptno.
By the way, you don't need so many sub-queries. You're using the inner sub-query to compute the MAX, and the outer sub-query to compute rn. Analytic functions are computed after aggregate fucntions, so you can do both in the same sub-query like this:
SELECT deptno, dname, loc
, MAX (DECODE (rn, 1, job)) AS job_1
, MAX (DECODE (rn, 1, max_sal)) AS sal_1
, MAX (DECODE (rn, 2, job)) AS job_2
, MAX (DECODE (rn, 2, max_sal)) AS sal_2
, MAX (DECODE (rn, 3, job)) AS job_3
, MAX (DECODE (rn, 3, max_sal)) AS sal_3
FROM (
SELECT e.deptno, d.dname, d.loc
, e.job
, MAX (e.sal) AS max_sal
, ROW_NUMBER () OVER ( PARTITION BY e.deptno
ORDER BY MAX (sal) DESC
) AS rn
FROM scott.emp e
, scott.dept d
WHERE e.deptno = d.deptno
AND e.job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY e.deptno, d.dname, d.loc
, e.job
GROUP BY deptno, dname, loc
;This will work in Oracle 8.1 and up. In Oracle 11, however, it's better to use the SELECT ... PIVOT feature. -
How Can I use a Variable in Data Controls query. Frank Kindly check...
Hii,
I am using JDeveloper 11g ADF BC.
My Requirement is that I hv a login screen which is taken from [http://blogs.oracle.com/shay/simpleJSFDBlogin.zip].
I hv attached BC in this application. I want to use the login usercode in the next pages after login screen. Next screen contains 3 list items which will be populating based on the user. So I created <af:selectOneChoice> using the BC( Just drag & dropped the column into the page from the data controls). But in the data control i want to use this usercode for passing the condition. Now Data is coming without any condition.
So How can I use the usercode in the Data controls query.
When I tried to display the usercode in the next page it is showing by binding the value. its code is follows
<af:outputText value="#{backing_getUser.uid}"
The program for checking the username & Password is follows.
package login.backing;
import oracle.adf.view.rich.component.rich.RichDocument;
import oracle.adf.view.rich.component.rich.RichForm;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import java.sql.*;
import java.util.List;
import java.util.Map;
import oracle.adf.view.rich.component.rich.output.RichMessage;
import oracle.jdbc.OracleDriver;
public class GetUser {
private RichInputText uid;
private RichInputText pid;
private RichCommandButton commandButton1;
private RichInputText inputText1;
private RichInputText inputText2;
public void setUid(RichInputText inputText1) {
this.uid = inputText1;
public void setPid(RichInputText inputText2) {
this.pid = inputText2;
public RichInputText getUid() {
return uid;
public RichInputText getPid() {
return pid;
public void setCommandButton1(RichCommandButton commandButton1) {
this.commandButton1 = commandButton1;
public RichCommandButton getCommandButton1() {
return commandButton1;
public String login_action() {
// Add event code here...
String user = this.getUid().getValue().toString();
// String pass = inputText2.getValue().toString();
String pid = this.getPid().getValue().toString();
Connection conn;
conn = getConnection();
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery ("SELECT usercode FROM guser where usercode = '"+user.toUpperCase()+"' and pwd=F_TEST('"+pid.toUpperCase()+"')");
if (rset.next()) {
conn.close();
return "good";
conn.close();
} catch (SQLException e) {
System.out.println(e);
return "bad";
public static Connection getConnection() throws SQLException {
String username = "ACCTS";
String password = "ACCTS";
String thinConn = "jdbc:oracle:thin:@SERVER1:1521:G5PS";
DriverManager.registerDriver(new OracleDriver());
Connection conn =
DriverManager.getConnection(thinConn, username, password);
conn.setAutoCommit(false);
return conn;
public void setInputText1(RichInputText inputText1) {
this.inputText1 = inputText1;
public RichInputText getInputText1() {
return inputText1;
public void setInputText2(RichInputText inputText2) {
this.inputText2 = inputText2;
public RichInputText getInputText2() {
return inputText2;
-----Hi,
I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
Anyway, you could add this before return "good"; in your login_action()
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
Pedja -
Changing the query on a view object
I have a view object right now, based on an entity. It is the default view object, so that means the query in the view object is straight forward, it grabs all of the attributes from the table. And there is no WHERE clause.
In reality I only want to show a finite set of rows from my table. Every time a record is changed/edited in this entity and committed, a new row in the database is created with the same information (I'm using CreateWithParams) except for a few columns.
I actually don't really have update on this table, just creation of new rows. But to the user, I want it to 'look' like they are editing something in the table.
Example:
12, 11:32,Thompson, 60 (the user edits this information in an adf table, and a new row is created in the db)
12, 11:55, Thompson, 75
I have a timestamp (see above) field in the database that is used as part of my primary key, so that I know which record is the latest.
When the VO query is run, I want the user to only see the latest row from the db.
12, 11:55, Thompson, 75
So...
I went to my VO, and I changed the WHERE query to add this:
where t1.TimeStamp = (Select MAX(t2.TimeStamp) FROM rcl.x t2 where t1.uid = t2.uid);
Now, this isn't a mysql/sql question. There's actually a better query that I'd rather run, but the VO editor doesn't allow me to change the query itself....
When I save the new WHERE to my VO, run my page again, I get the expected result (showing me only the latest records).
However, when I try and sort on the table in which my data is displayed, I am now getting ORDER BY errors.
I don't want my VO to be read-only sql based. I want to be able to update my table, so I have my VO running off of the entity.
Why doesn't the VO allow me to change the query itself? (Like do a subquery, instead of having my where clause do the work)
Why are order by errors being thrown when I sort on my adf table after changing the where clause in my view?
Hopefully I wasn't too convoluted in the explanation of my problem..
Thanks in advance,
JoelHI Joe,
Regarding your problem you can do one of the following tasks:
1- easily to tuning on your view object, I mean in the tuning page of the view you can set that only return 1 record or 2-3 record fetch not all the record.
in the order by you will order by the timestamp field and descending.
2- you can order by the timestamp descending and in the where clause only set the rownum<2 (will return the last record) you can also set rownum<5 and get the 4 last record etc.
3-editing the view query in the expert mode is not advised at all because of many consequences that you will face.
4- maybe it is not bat that you add a readonly view for the table you mentioned and every time you unpdate the entity just re-execute the read-only view.( this method maybe is good maybe is not it depends on your business logic)
Regards.
Edited by: Amir Khanof on Sep 3, 2010 11:11 PM -
Hi there
We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
Any help will be greatly appreciated.
Steps to reproduce
Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
Regards
Kabeer KhanHi there
We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
Any help will be greatly appreciated.
Steps to reproduce
Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
Regards
Kabeer Khan -
Ora-01704 string literal too long error on long query syntax
I have a query with more than 4000 characters. I can't seem to get ociparse to accept it. The bind variables are not an issue as I am not concatenating any strings to the query syntax. It is just that my query will all the columns and unions etc exceeds 4000 characters. Any way around this short of hiding it in a view ( which I have already done for other long queries ).
System:
PHP 4.3.10
OCI driver
Oracle 9i Release 2
Thanks,
BryanMisread your post, sorry. Oracle limits literal strings to 4,000 chars. According to the documentation it's required that you use bind variables where possible to shorten literal strings below 4,000. You could also try a pl/sql block.
The error you're getting is being returned by Oracle, not PHP. I've seen it pop up on bugtraq a couple of times for PHP, but the answer is always the same. I'm more of a programmer than a database expert, so forgive me for not having a better answer. You may want to try posting this to one of the more specific oracle forums where someone will probably have a better answer for you.
http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96525/toc.htm -
Precautions to be taken while changing the Query read mode in PED system
Dear Experts,
I got a task to change the Query Read mode for more No. of queries in Production system directly itself.
Request you to let me what are the steps to be followed/precautions to be taken while changing the Query Read mode in PED.
one more doubt regarding this.....If i plan to change the Read mode of Query say Q1, how can i come to know weather the Q1 is executing or not executing by that time.
Thanks in advance for valuable response.
Thanks & Regards,
Ramesh - KumarHello,
You can change the query read mode in transaction 'RSRT', here are the steps:
1) Access transaction RSRT and enter the query name
2) Select the 'Properties' option
3) Un-check the 'Info provider' setting next to the 'Read mode' --> This enables you to change the read mode of the query --> Execute
4) Choose the option 'Generate Report' to re-generate the query program
Hope this info helps.
Thanks
Bala -
Notification to Manager on creation of an Urgent Change Control
Trying to set up a notification subscription so that when someone creates an Urgent Change Control, the Manager of that person gets notified. Looking in the subscription, under Recipients not sure what to put there. Since it could be anyone that creates
the CC, how do you direct the notification to just that persons Manager?
I am sure it has something to do with the Template that is used and the Activity tab but not sure what. Can someone get me started in the right direction or is this even possible?Alternatively, If you need the line manager to approve, you might try adding a review activity to the process and setting the "Line Manager must approve" checkbox on that activity. if you have set up standard review activity notifications,
then the manager of whoever created the request will get a notice.
if the user only needs to be notified, then you might set the approval method on that activity to "automatic" so the notification is sent, then the RA is automatically approved and the process can continue.
-
Configuration Management/Change Control/Build Management
Needs to have instituted a config management process before.
web development history
Tools/Skills:
CVS
ANT
Unit Testing
Unix
BEA Weblogic
John D Allen
CEO/President.
Leveridge Systems INC.
v1 (480) 899 9341
mailto:[email protected]
http://www.leveridgesystems.comCould you post an example of your problem ?
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left... -
Problem while changing the query of the field in Oracle apps 11.5.10
Hello All,
Requirement:
User want to change the query of the LOV attached to Ordered item field on Line items tab on the Sales order form in Order managment
Block name = 'LINE'
Field name = 'ORDERED_ITEM_DSP'
LOV attached to this field in FMB: ITEMS
LOV attached to this field in front end: ENABLE_LIST_LAMP
Problem: Following code is firing at all points (Debug messages are appearing at all points) but Query of the LOV attached to item is still same.
How can in FMB LOV is "ITEMS" and in front end "ENABLE_LIST_LAMP"
My guess is there is some problem with the LOV name which we are passing in the code below. Because LOV name attached to item are different in front end and FMB. There is no LOV in FMB which has “SYSTEM ITEMS Description” kind of structure.
I have written following code in custom.pll (l_chr_rg_query is query taken from the record group attached to “ITEMS” named LOV with some modifications ex: rownum<6 so that it will show only 6 records in LOV if it is really firing our query for LOV)
IF ( form_name = ‘OEXOEORD’
AND block_name = ‘LINE’
AND field_name = ‘ORDERED_ITEM_DSP’
AND event_name = ‘WHEN-NEW-ITEM-INSTANCE’
THEN
MESSAGE (‘message1’);
l_chr_rg_name := ‘XXLION_UNIFORM_CODE_RG’;
l_chr_rg_query :=
‘SELECT item, item_id, item_description, inventory_item_id,item_identifier_type,null item_identifier_type_meaning, ‘
|| ‘inventory_item, address, cust_address, item_definition_level ‘
|| ‘FROM oe_return_items_v ‘
|| ‘WHERE (sold_to_org_id = :parameter.lov_num_param1 OR sold_to_org_id IS NULL)’
|| ‘ and rownum < 6 ORDER BY item’;
MESSAGE (‘message2’);
l_rg_id := FIND_GROUP (l_chr_rg_name);
MESSAGE (‘message3’);
IF ID_NULL (l_rg_id)
THEN
MESSAGE (‘Creating record group here’);
l_rg_id :=
CREATE_GROUP_FROM_QUERY (l_chr_rg_name, l_chr_rg_query);
END IF;
errcode := POPULATE_GROUP (l_rg_id);
MESSAGE (‘ERROCODE is : ‘ || errcode);
L_lov_id := FIND_LOV (‘ITEMS’); --My guess is this LOV name is the source of problem.
MESSAGE ('Error code is4');
SET_LOV_PROPERTY (l_lov_id, group_name, l_rg_id);
MESSAGE ('Error code is5');
SET_ITEM_PROPERTY ('LINE.ORDERED_ITEM_DSP', lov_name, 'ITEMS');
END IF;I found that there is no problem with code. My problem is not technical, its a functional problem.
It is related to Inventory's "System Items" KFF.
Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming? -
How to change report query dynamically in Oracle APEX?
Hi,
I want to dynamically change the where condition in APEX report query. Can anyone help me solve my this problem?
(Just want to change the query which we change in Oracle Reports using lexical parameter to change &Where, &Order by etc. dynamically!!)
Thanks, PrafulHi
I've been using flexible queries in APEX for a few years now, and your question just added a whole new dimension to the flexible and powerful nature or writing reports in APEX.
While APEX Interactive reporting has almost completely removed the need the equivalent of Lexicals in Oracle Reports, I thought it might be fun to try and use lexicals in an APEX report.
Before we start I should summarise the powerful capability of APEX reporting to have oprtional parameters (lots and lots of them if this is needed).
For each parameter, you simply add a page item which will hold the value of the parameter.
The item/parameter can be populated by typing in the value, defining an LOV, using a date-picker etc.
To make the parameter optional simply use an OR in the where clause.
So for a apge item P200_PARAM1.....include
WHERE (:P200_PARAM1 IS NULL
OR COLUMN1 = :P200_PARAM1)
This way you can either leave the page item null or type in / select a value from a LOV.
There is a small quirk in APEX LOV's which sometimes returns a value of '%' or '%null%' - depending on the version - when no value is selected.
See Patrick Wolf's solution for this at Re: Null value handling in LOVs
I include this Application Process in all my APEX applications ;)
Now let's look at using the equivalent of Oracle Reports Lexicals......
First-off - this is based on the APEX SQL report - NOT Interactive Report.
It relies on the fact that you can let the query be parsed only at runtime.
1. Define an SQL report entering the 'core' of your query.
With a query like SELECT ENAME, JOB FROM EMP
Select 'Generic Columns' option in the 'Column Headings' section
Finish the report creation
2. Define a page item - say P200_LEXICAL - type text on the page
3. Edit the report and update the SQL query to include your lexical page item
SELECT ENAME, JOB FROM EMP &P200_LEXICAL. (REMEMBER THE '.' AT THE END)
Ensure that the option "Use Generic Column Names (parse query at runtime only)" is selected at the bottom of the query
4. Add a button to the page -using 'Create a button displayed among this region's items' the will submit the page.
5. Run the page - you will see all the employee names and job desdriptions
6. Enter a where clause into the 'Lexical' textbox - say "WHERE ENAME LIKE 'K%'" and click the 'Go' button
Voila! your where clause is magically applied.
Try any variant you like adding an ORDER BY clause etc...... this is FUN!
7. Clear the value of the LEXICAL and click go.
Edit the report and move the &P200_LEXICAL. into the selected columns (or add another one)
SELECT ENAME, JOB &P200_LEXICAL. FROM EMP
8. Run the page
Enter ",SAL" in the textbox and "Go"
We can add as many columns as we like (subject to the "Maximum number of generic report columns:" set below the SQL query in the report edit section)
Now because we have all the flexibility in APEX of setting page items using SQL or PLSQL you can set the value of the lexical programatically, or just pre-set a few values in an LOV - the options are limitless.
While I've never had the need to use lexicals - you can see that APEX provides the most Flexible Lexicals in town.
Eat your heart out "Oracle Reports"!!!
Have fun
Mike -
Changing a Query do not show Results in the PLD Format
Hello Experts!!
I have a PLD report, and I changed the query a BIt
let say the oiginal query is select 'HELLO' from OINV where DocEntry between 100 and 110
but then I Changed to +select 'HELLO' + World' from OINV where DocEntry between 100 and 110+
But The PLD do not reload Data, there is any way to change this?Gordon Thanks for your answer,
but maybe i didnt explain myself clear.
let me explain a bit:
When you create a Query in the Query Manager, you can create a Print Layout.
then you can modify in
Tools>Queries>Query Print Layout
but that Layout is related to the Query you just did.
but when you change the query the Layout wont change ...
I think SAP do not work well with this, I think that Query Manager shoud have and Update button and then go and upate the query in PLD ... well thats all
Maybe you are looking for
-
HT4623 Unable to activate my iPhone 3Gs after upgrading to IOS 6
I need help with the above request thanks
-
Hi, We have a problem with table T006A entries.We need to change the data in this standard table. SE16N TCode is not in SRM.How to change the existing entries in the standard tables with transport request. Regards, Chandu
-
Content Administration page shows error
Hello: I had just installed the netweaver 2004s for Java and configured the SLD. trying to login to irj/portal and when I click on the Content Administration, expect the Portal Content information instead the following exception comes: null [EXCEPTIO
-
Urgent: Need screenshots from standard ESS on EP 6.0
Dear all, hopefully someone can help me with that urgent request: For an internal presentation, I need 5 to 10 screenshots from standard ESS functions, based on the Enterprise Portal 6.0 (e.g. Login screen, submit leave request in time management, bu
-
Please tell me it's not polling
Hi; I just ran JProbe on my code and found it said it was spending 27.5% of it's time in MulticastSocket.recieve() and 27.5% of it's time in DatagramSocket.receive() - so over 50% of the time is in these two receive calls. The thing is, the program t