XSL and SQL query : special chars such as ampersand
Hello,
I've got this to create canonical XML file :
PROCEDURE CANONICAL_XML_XSL(query IN VARCHAR2,
p_file_path IN VARCHAR2,
p_file_name IN VARCHAR2)
AS
Ctx DBMS_XMLGEN.ctxHandle; -- Var's to convert SQL output to XML
v_xml clob;
xmlc varchar2(4000); -- Var's required to convert lob to varchar
off integer := 1;
len integer := 4000;
v_file Utl_File.File_Type;
v_more BOOLEAN := TRUE;
xsldoc VARCHAR2(4000);
l_Output XMLType;
lXMLData XMLType;
BEGIN
-- to parametize later the XSL file
-- XSL DEFINITION TO TRANSFORM TO A FLAT FILE
xsldoc :='<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET/ROW">
<xsl:value-of select="LIGNE"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Ctx := DBMS_XMLGEN.newContext(query);
lXMLData := DBMS_XMLGEN.GETXMLTYPE (Ctx,DBMS_XMLGEN.NONE);
l_Output := lXMLData.transform(XMLType(xsldoc));
clob_to_file(p_file_path,p_file_name,l_Output.getClobVal());
END;
Ok, it works but in the query some value could have &, >, < ... and when the XML is generated I should have $amp; for & etc ...
-> if I use PSLQL function : REPLACE, sqlplus thinks that $amp; is a bind variable !
Does someone have a solution ?
thanks
Romeo
I'm working on CRM in ORACLE APPLICATION 11i,
for example to generate a file containing addresses with "customer name" such as "Johnson & Johnson".
using the procedure :
query='select customer_name LIGNE from customer_table", the procedure will apply for each rows ( LIGNE ) the xsl I defined ( here a canonical XML output -> XSL transfomation ).
I have found this on a website ( using XSL ) :
Replace a string
If you've searched for a solution to this problem, you might have taken a peek
at the XSL translate function : unhappily it doesn't permit one to replace a
string but only one character. Don't worry: there is a solution.
Cut & paste this piece of XSL Code in your stylesheet beside your main template
(usually the one which handles the RESPONSE node) :
<xsl:template name="replace-string">
<xsl:param name="text"/>
<xsl:param name="from"/>
<xsl:param name="to"/>
<xsl:choose>
<xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/>
<xsl:value-of select="$to"/>
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
NB: you do NOT need to understand this piece of code : just copy it.
Afterwards when you need to replace a string by another use this code :
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="DESCRIPTIONS/DESCRIPTION/TITLE"/>
<xsl:with-param name="from" select="'Bye'"/>
<xsl:with-param name="to" select="'Hello'"/>
</xsl:call-template>
NB: if you only need to replace the & by it's url encoded equivalent, cut &
paste this pieced of code :
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="DESCRIPTIONS/DESCRIPTION/TITLE"/>
<xsl:with-param name="from" select="'&'"/>
<xsl:with-param name="to" select="'%26'"/>
</xsl:call-template>
Similar Messages
-
Modes and Methods in Tag Query and SQL Query
Hi,
Can someone explain me about the modes available in <b>TAG Query and SQL Query.</b>
TAG Query has modes such as <b>Current, CurrentWrite, GroupList, History, HistoryEvent, ModeList, Statistics and TagList</b>
SQL Query i still have doubt on <b>FixedQuery with output , Modelist and TableList</b>
I also need to know why methods are used?
Thanks in advance
Regards
MuzammilI'll try to explain to the best of my knowledge :
<u><b>TagQuery</b></u>
<b>Current</b> : Gives you the current value of the Tag you are reading.
<b>CurrentWrite</b> : Let you write a Value as the Current Value of the Tag.
<b>GroupList</b> : Generally Tags are grouped under different groups. Returns you the name of the Groups.
<b>From the xMII Help Document :</b>
<b>History</b> : History Mode returns interpolated data. Interpolation can be accomplished by specifying either the # of rows desired or the retrieval resolution. If the mode is "History" and a value is provided for the Resolution parameter (which is in seconds), the connector will retrieve evenly-spaced values starting at the beginning of the time interval, up to the maximum # of rows specified in the RowCount parameter. If no value is provided for the Resolution parameter, the connector will return an evenly-spaced number of values based on the value of the RowCount parameter.
For example, if the time interval is 1 hour, Resolution is 15, and RowCount is 240, the connector will return evenly spaced values each 15 seconds, up to 240 values (which would span the entire hour).
If the time interval is 1 hour, Resolution is not provided or is set to zero, and RowCount is 120, the connector would return 120 evenly spaced values, at an effective interval of 30 seconds.
<b>HistoryEvent Mode</b> : The connector can provide historical values "as they were stored" the database. This mode provides no interpolation of values.
<b>Statistics Mode</b> : When retrieving data for statistical calculations, the connector utilizes the same techniques as in the "HistoryEvent" mode. It is important to note that the first two returning columns in the HistoryEvent query must be the timestamp and the value, in that order. The SAP xMII Statistical processor expects that order, or errors will occur. This ensures precision of statistical measurements, particularly time-weighted average, by using the exact storage time and values from the historical database. The SAP xMII system provides the statistical calculations.
<b>Modelist</b> : Basically returns the modes of the Query Available. The Data returned is same as the data in the Modes list in the Quert Template Editor.
<b>Taglist</b> : Returns all the Tags in the Datasource.
<u><b>SQL Query</b></u>
<b>Modelist</b> : Same as above.
<b>TableList</b> : List of all the tables in the database to which the connector connects.
Again from SAP xMII Help Documentation :
<b>FixedQueryWithOutput</b> : This mode is used to execute an Oracle stored procedure or function that returns a REF CURSOR as output. The position of the REF CURSOR is marked by a "?" in the query. For example:
<b>Create a table.</b>
<i>create table usage (id int, name varchar(50));
insert into usage (id, name) values (1, 'test1');
insert into usage (id, name) values (2, 'test2');
insert into usage (id, name) values (3, 'test3');
insert into usage (id, name) values (4, 'test4');
insert into usage (id, name) values (5, 'test5');
insert into usage (id, name) values (6, 'test6');
insert into usage (id, name) values (7, 'test7');
insert into usage (id, name) values (8, 'test8');</i>
<b>Define the stored procedure.</b>
<i>DROP PACKAGE foopkg;
CREATE PACKAGE foopkg IS
TYPE cursortype is ref cursor;
PROCEDURE test (mycursor in out cursortype);
END foopkg;
CREATE PACKAGE BODY foopkg IS
PROCEDURE test (mycursor in out cursortype) AS
BEGIN
open mycursor for select * from usage;
END;
END foopkg;
</i>
Define a query template for calling the stored procedure. Enter the following in the FixedQuery tab:
<b>call foopkg.test(?)</b>
This template returns all rows from the Usage table. -
Hi All,
I am looking for an SQL query to request the HDS database to find out which Directory Number / instrument was associated with a specific CTI OS agent login ID.
Has anyone done such a query before ?
Thanks and Regards
NickHi,
this should work in 8.0 and 8.5:
SELECT
ag.PeripheralNumber AS [LoginID],
al.Extension,
al.LogoutDateTime
FROM [instance]_hds.dbo.Agent_Logout al
JOIN [instance]_awdb.dbo.Agent ag ON al.SkillTargetID = ag.SkillTargetID
Of course, replace [instance] with the ICM instance.
The query returns a table with three columns, first is the login ID aka PeripheralNumber, Extension is... well, the agent's extension, and LogoutDateTime is the timestamp when the agent logged out.
G. -
Sql loader special char loading in table
Hi all,
I am using oracle 10g with UNIX.
I have a .csv file transferred from windows to UNIX. I check the control M char and remove them
using dos2unix command.
The special char name are fine in UNIX for eg as below when check the .csv file after trnasfered
Oulu
Jääli
HaukipudasI use SQL LOADER to load into database a temp table. as below control file
OPTIONS (SKIP=1)
LOAD DATA CHARACTERSET UTF8
INSERT INTO TABLE temp_pa_load
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(id_id,
name)
{code}
The fields id is map to id and name is map to name in temp table
when check in temp table after sql loader is executed i get incorrect name
actual name in .csv file Jääli
temp table name J�i
the rest names and id are correct but only for special char there is problem
the size of name column in temp table is 100 varchar2
I also tried to specify char(100) in control file but it didn;t work
could some one pls advice me.
thanks in advance
Saaz EnaPl post the characterset of the database, along with a description of the table.
HTH
Srini -
APEX,PDF's, BI Publisher and SQL Query returning SQL code..
I don't know if I should be posting this in this Forum or the BI Publisher forum, so I am posting in BOTH forums..
I love APEX, let me say that first.. And appreciate the support offered here by the group, but am running int a confusing issue when BI Publisher tries to build a report from the above type APEX report..
Here is my dilemma:
I have a number of reports that are part of a Oracle package. They return an SQL Query back to a reports region on a page. I am having to deal with the column names returned are col01, col02..
The issue I have is, when building the Application Level query to download the XML sample from in building RTF layouts in Word, you can not use this code, you MUST use a standard SQL Select.
I have taken the sql from the function returning sql, and copied into the application query, supplying the required data values for bind variables being used in the query.
An XML file is produced, and I use this to build the RTF format file that I load back into APEX and try to use it for the PDF rendering of the report. I can view the output as a PDF in the Word add on, but when I try using it with the report, it is returning an empty PDF file.
Can anyone tell me what error log files on the bi publisher side I can look at to see what error is happening?
Thank you,
Tony Miller
UTMB/EHN
Title adjusted to allow people to know what I am talking about...
Message was edited by:
Tony MillerTony,
You can find the log as follows:
- go to http://[yourserver]:[yourport]/em
- logon to OC4J EM: oc4jadmin/[yourpassword]
- click on "logs" at the bottom of the page
- in the hgrid/tree, expand OC4J->home->Application
xmlpserver
- click on view log icon
You can also observe what's going on in BI Publisher
by going to the command prompt from where you started
it.
Or, as a third option, you can locate the file on
your file system, depending on your setup, the path
would be something similar to this:
\oracle\product\10.2.0\bip\j2ee\home\application-deplo
yments\xmlpserver\application.log
With that said though, I don't expect you'll find
much in there that would help with your particular
problem. I suspect you either get no rows in your XML
at runtime, due to some session state issues, or your
XML structure does in fact not match your RTF
template.
I'm not quite following your problem description,
i.e. when did you do what and are you associating
your report layout with a report query or report
region. So just some general notes, your query needs
to be parseable at design-time, when exporting the
XML, so that you get the XML file with the proper
column names derived from your query. If you want to
use your RTF template with a standard report region,
you must export the XML file first using the advanced
XML structure option. And of course the column names
in your report query need to match the column names
in your report region.
Perhaps this helps you further diagnose what's going
on, if you have additional information that could
help, let me know. And if you could stage this on
apex.oracle.com, I'd be happy to take a look.
Regards,
MarcMarc,
Thanks for looking at this issue. Below find my remarks to your questions..
Re: your query needs
to be parseable at design-time, when exporting the
XML, so that you get the XML file with the proper
column names derived from your query.At the start of this process, the query code was a function in a package. The function was returning an SQL select statement, for a report region on a page. I took the select statement, built an application query to build a sample of the xml for BI Publisher desktop (Add-on for Word). The code was producing the usual Col01, Col02.. since at design time that is were the column names.
When I then took the xml from this and built the rtf for loading into my APEX application.
When testing the Application Query with this RTF report layout, I am getting PDF's. When using it with the report region sending an xml feed to BI Publisher I am getting nothing back.
I have since taken the sql code and moved it back into the report region, and set the region to have a type of straight SQL Query. I have even tried to hard-code the parameters I was getting from the page to limit data returned.
Is it possible to see the xml being produced by the APEX page?
Re: Stage this on apex.oracle.com.. I would love to, but we would have HIPPA issues if I posted the data on a public website.
Can I send you the RTF file and the xml file that the application query is creating to see if there something weird about them?
Thank you,
Tony Miller
UTMB/EHN -
I don't know if I should be posting this in this Forum or the BI Publisher forum, so I am posting in BOTH forums..
I love APEX, let me say that first.. And appreciate the support offered here by the group, but am running int a confusing issue when BI Publisher tries to build a report from the above type APEX report..
Here is my dilemma:
I have a number of reports that are part of a Oracle package. They return an SQL Query back to a reports region on a page. I am having to deal with the column names returned are col01, col02..
The issue I have is, when building the Application Level query to download the XML sample from in building RTF layouts in Word, you can not use this code, you MUST use a standard SQL Select.
I have taken the sql from the function returning sql, and copied into the application query, supplying the required data values for bind variables being used in the query.
An XML file is produced, and I use this to build the RTF format file that I load back into APEX and try to use it for the PDF rendering of the report. I can view the output as a PDF in the Word add on, but when I try using it with the report, it is returning an empty PDF file.
Can anyone tell me what error log files on the bi publisher side I can look at to see what error is happening?
Thank you,
Tony Miller
UTMB/EHN
Title changed, maybe SOMEONE has an idea on this??
Message was edited by:
Tony MillerHi,
1/ first check you are passing the bind variables and
appropriate values in the call to your report - if
the query returns no data then you get an empty page
So if your query takes :P10_USERNAME variable then
pass it to the report in the URL
f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=YOUR_REP_QUERY_N
AME:::P10_USERNAME:MYUSER
2/ try to use the Default layout first to check your
report query really returns the data when called
3/ if you defined a header in your rtf template check
there is no & (ampersand) - if using & in the header
and preview the template from word it displays data
OK, but if you use this template in the report query
it fails to render the data (bug in Apex-> Bi
Publisher integration maybe?)
4/ If using the table in the rtf template check its
width does not overflow the page margins - there is a
problem with pdf export
5/ check
/oc4j/j2ee/home/application-deployments/xmlpserver/app
lication.log forthe information on BI Publisher runs
RadoIssue was in the APEX page having issues.. I recoded a new page and am able to generate BI Publisher based PDF files..
Thank you,
Tony Miller
UTMB/EHN -
Discrepancy between Select Expert and SQL Query
Greetings. I am having an issue with a report, but I think it's more cosmetic and may not be causing a functional issue...
When I go into the Report...Select Expert...Record, I see that my criteria for the report is .AND. logic.
When I go into the SQL Query view, it shows .OR. logic...
After I verify the database, the SQL query still does not get updated. Saving and re-opening the report still does not update.
Is there any reason this will never match? Thanks in advance.Sorry. I am on Crystal 12. Database is SQL 2005.
I didn't think the detail mattered much, but the select expert shows:
isnull({NONCONFORMANCE.CLOSED_DATE}) and
not isnull({NONCONFORMANCE.PRODUCT_ID}) and
not({NONCONFORMANCE.PRODUCT_ID}= '') and
not({NONCONFORMANCE.PRODUCT_ID}= ' ')
SELECT N.NCM_ID, N.NCM_DATE, N.PRODUCT_ID, N.CLOSED_DATE, N.ENTITY_ID
FROM NONCONFORMANCE N
WHERE N.CLOSED_DATE IS NULL AND N.PRODUCT_ID IS NOT NULL AND NOT (N.PRODUCT_ID='' OR N.PRODUCT_ID=' ') AND N.ENTITY_ID='CHI'
Now that I look at how the SQL is generated (after cleaning up the statement), it's the negatives that got me. I originally had a problem with the report that was pulling back blanks and spaces. I made changes and I didn't pay close enough attention to what exactly changed in the SQL... It appears to be the way the logic in the Select Expert is converted to SQL.
I just need to start using Command more often and write my own SQL instead of using the Select Expert!!! -
Crystal Reports 10 Datasource Location and SQL Query update
I am running Crystal Reports 10 accessing SQL Server 2008 database on Windows 7. Our product changed database names and I'm trying to update reports to point to the new database. Sounds nice and simple. The database has no structure changes yet, it's just a copy and rename of the old database. Both databases exist, same SQL instance, same permissions, etc. ...
Existing working report:
Has an ODBC (RDO) location to database DbVersion1
If I run Show SQL Query, the database name is in the query text (i.e. FROM DbVersion1.dbo.MyTable)
Attempted:
In Set Database Location popup, I created a new ODBC (RDO) connection to database DbVersion2
Updated Current Data Source for report to this new ODBC (RDO) connection.
Ran Verify Database. Popup stated "The database is up to date."
But when I run "Show SQL Query", is still shows DbVersion1 in the text, and the report displays data from DbVerison1. When I display the Datasource Location for the report, it shows DbVersion2 as I changed to above. How do I "refresh" the SQL Query to recognize the new Datasource Location?
Thanks,
GaryHi Gary,
A possible couple of issues, CR 10 doesn't support SQL Server 2008 and it doesn't support Windows 7. We had to update CR XI R2 SP 6 and above to make SQL 2008 work. MS changed the name of their client dll so CR is not aware of the new drivers.
MDAC native driver may work but not sure....
Try OLE DB, it may work better.
Thanks
Don -
I suppose we ABAPers can make use of sql query that is sq01 sq02 and sq03 and report painter pls can u provide me the links for that
i am new to them
thank youHi,
check this link.
<a href="http://searchsap.techtarget.com/searchSAP/downloads/Teach_yourself_SAP_C20.pdf#search=%22CREATE%20REPORT%20USING%20SQVI%20%2C%20SAP%22">SQL query</a>
Regards,
Amit -
Hi, first of all excuse my English.
I have a problem that I can not solve, i implement a indeterminate progress bar for a sql query but not shown until you have completed method. I tested threads and swingworker but can't make it work.
The pseudocode would be:
@Action
public void Find() {
progressbar.setVisible(true);
... query ...
}If anyone has a solution would be very grateful.The Find() method is automatically created by NetBeans when I select "Set Action" from the context menu of a JButton.
NetBeans generated code is as follows:
public MyClass { // Constructor
initComponents();
private void initComponents() {
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(administration.AdministrationApp.class).getContext().getActionMap(MyClass.class, this);
button_find.setAction(actionMap.get("Find")); // NOI18N
@Action
public void Find() {
}don't exist a method actionPerformed() -
'is null' not working in dynamic sql and SQl Query component (OBPM 10gr3)
I'm using a SQL Query component with sql like this
'select col1, col2 from table where col3 is null'
for some reason this does not work.
Has anybody faced this issue? Is there a known bug with handling nulls
Thanksplz post which DB version u r working with
dont use paramters in Procedure with : sign
Write simply the name of the Paramters like p_userid etc etc
this might help u as well
http://baigsorcl.blogspot.com/2010/02/get-rid-of-addtional-quotes-with-quote.html -
Retreiving a value from and SQL query
If anyone can give me sample code or pointers to retreive a value from an sql query, I'd be greatful.
Source code I've muddled together so far:
Class seqNumType = Class.forName(nameOfClass);
Constructor theConstructor = seqNumType.getConstructor(null);
Object seqNumInstance = theConstructor.newInstance(null);
String theStatement = "SELECT value INTO v_seqnum FROM DUAL;";
OracleCallableStatement ocs = (OracleCallableStatement)conn.prepareCall(theStatement);
ocs.registerOutParameter( 1, OracleTypes.NUMBER, 0);
Method method = seqNumInstance.getClass().getMethod("getORADataFactory", null);
seqNumInstance = ocs.getORAData(1, (ORADataFactory)method.invoke(null,null));
ocs.execute();
Problem with this seems to be the ORADataFactory isn't a method of the class, but as I'm thumbling around in the dark here a little, I've no idea where to go from here. Is this just generally overkill anyway?
Suggestions?
Cheers for any help.Like this:
ResultSet resultSet=statement.executeQuery("SELECT * FROM TEST");
while(resultSet.next())
for(int i=0;i<resultSet.getMetaData().getColumnCount();i++)
System.out.print(resultSet.getObject(i+1).toString()+" ");
System.out.println(); -
Problem with parameter and sql query
I've a problem with te query of my report. The query is:
SELECT [DESCRIPTN]
,[LOGTIME]
,[STATUS]
,[CARDNO]
,[LOGDATE]
FROM [Granta5P0].[dbo].[TIMELOG32]
where cardno in ({?cardNo})
the parameter as multiple values checked so I can query for more than one card.
If i put just one parameter everything works fine but when I put 2 or more I have his error
[http://www.megagaleria.com/pictures/Pic_10074_25.jpg]
I realized that the field as no ' delimiting the parameters, I have a function that already does it but I don't know how to put it in my sql command.
If anyone can help I appreciateYes, because your parameter is only looking for one card.
where cardno in ({?cardNo})
Will you only be creating querys on two cards or less ?
Are you trying to create an Array?
If two or less you could
where cardno = ({?cardNo}) or cardno = ({?cardNo2}) -
Hello, I am working on an oracle alert for PO's.
goal- when a PO is not approved/rejected by the approver and is waiting on approver's queue for more than 3 business days, an email should be sent to the approver every day saying "PO waiting for +xx+ days".
Working on R:12.1.1
Here is the script I could write and get emails of all unattended PO's. I am not able to use the dates.
Please help me out. Here is my script.
SELECT distinct poh.segment1,
TO_CHAR(SUM((pll.quantity - pll.quantity_cancelled) *
pll.price_override),
'$99999990.90'),
he.full_name,
NVL(fu1.email_address, '[email protected]') approver,
NVL(he.email_address, '[email protected]') owner,
pv.vendor_name,
vd.name
INTO &PO_NO,
&PO_AMT,
&CREATED_BY,
&APPROVER_EMAIL,
&CREATOR_EMAIL,
&VENDOR,
&DB_NAME
from wf_item_activity_statuses wias,
wf_notifications wfn,
po_headers_all poh,
po_line_locations_all pll,
fnd_user fu1,
fnd_user fu2,
hr_employees he,
ap_suppliers pv,
v$database vd
where wias.notification_id is not null
and wias.notification_id = wfn.group_id
AND poh.last_updated_by = fu2.user_id
and wfn.recipient_role = fu1.user_name
AND fu2.employee_id = he.employee_id
AND pll.po_header_id = poh.po_header_id
AND poh.vendor_id = pv.vendor_id
AND poh.type_lookup_code IN ('STANDARD', 'PLANNED')
and wfn.status = 'OPEN'
and wias.item_type = 'POAPPRV'
and wias.item_key = poh.wf_item_key
and poh.org_id = 81
AND poh.type_lookup_code IN ('STANDARD', 'PLANNED')
and poh.authorization_status IN ('IN PROCESS', 'PRE-APPROVED')
Thanks
Raj
Edited by: 936248 on Sep 20, 2012 7:15 AMHi Sree,
I tried this below script. This results in an error- APP-ALR-04106.
Thanks for the help.
SELECT distinct poh.segment1,
TO_CHAR(SUM((pll.quantity - pll.quantity_cancelled) *
pll.price_override),
'$99999990.90'),
he.full_name,
NVL(fu1.email_address, '[email protected]') approver,
NVL(he.email_address, '[email protected]') owner,
pv.vendor_name,
vd.name,
count(gd.transaction_date)
INTO &PO_NO,
&PO_AMT,
&CREATED_BY,
&APPROVER_EMAIL,
&CREATOR_EMAIL,
&VENDOR,
&DB_NAME,
&datediff
from wf_item_activity_statuses wias,
wf_notifications wfn,
po_headers_all poh,
po_line_locations_all pll,
fnd_user fu1,
fnd_user fu2,
hr_employees he,
ap_suppliers pv,
v$database vd,
GL_TRANSACTION_DATES gd
where wias.notification_id is not null
and wias.notification_id = wfn.group_id
AND poh.last_updated_by = fu2.user_id
and wfn.recipient_role = fu1.user_name
AND fu2.employee_id = he.employee_id
AND pll.po_header_id = poh.po_header_id
AND poh.vendor_id = pv.vendor_id
AND poh.type_lookup_code IN ('STANDARD', 'PLANNED')
and wfn.status = 'OPEN'
and wias.item_type = 'POAPPRV'
and wias.item_key = poh.wf_item_key
and poh.org_id = 81
AND poh.type_lookup_code IN ('STANDARD', 'PLANNED')
and poh.authorization_status IN ('IN PROCESS', 'PRE-APPROVED')
and gd.business_day_flag='Y'
and gd.transaction_date between (sysdate-3) and poh.submit_date
GROUP BY poh.segment1 -
Dear Friends,
I have a ledger table. My client wants to see ledger of selected customers. Hence I have to design a parameter entry screen in forms for the report wherein the user can select customers and execute and the selected data passes to report as parameter and based on it the report gets executed and displays the ledger for the selected customers. I am using form 6i and Oracle 9i.
Can anyone help me how to do this or is there any link that shows how to do this.
Please note : The user can selected as many customers as he/she wishes
ThanksYou could create a global temporary table, and write all the Customer IDs to that table, then call Reports. Then the report could select all customers where Customer_ID in the temporary table.
If Reports runs under a separate session, then you will need a permanent table rather than a temp global, and develop some type of numeric key maybe using a sequence plus date and time. Then the report process could create the report, then delete the appropriate rows from the table. It should also delete any rows that are older than say 24 hours -- this will keep the table cleaned up from uncompleted report processes.
Maybe you are looking for
-
hai everybody iam getting problem in open_form property in menu calling i used a button when it pressed it has to perform follwing task DELETE FROM PAPER_PLAN WHERE CARDNO = :JOBCARD1.CARDNO; DELETE FROM PLATE_FILM WHERE CARDNO = :JOBCARD1.CARDNO; DE
-
Adding a tick box on checkout form to let people opt out of email listing
hey guys ive set up a shopping site and have added an extra tick box at the bottom of the check out page to let people opt out the emailing listings if they choose to. Problem is I dont think the result of the tick shows up on my orders invoice insid
-
Screen freezed as adding new applet to a package.
I just download a trial version of JDeveloper. I always get a freezed screen as I try to add a new applet to a existing package. Is the trial version of JDeveloper a full functional package? Thanks. Chuck
-
Monitor problems with Mac Pro and Leopard
I can't turn energy saver off.I have two LCD monitors connected, one 19" Viewsonic VX924 and one 30" Dell3007WFPHC . I set energy saver:Put the display(s) to sleep when computer is inactive for Never. Yet I can turn the monitors off and back on later
-
Payment info about the macbook pro (ritena)
If i was to buy a macbook pro ritene display and buy it online would i have to pay full price or pay it off over a certain amount of time,