URGENT: passing more than one value to Reports
Hello friends at www.oracle.com,
if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
This is quite urgent and I need help on this.
Best regards,
Franklin Gongalves Jr.
[email protected]
Hello Shay,
thanks for your answer, I think this will solve my problem. I hope my description of the problem was clear enough.
Just a comment about the (very interesting) new design of this Forum: Preview button is not working here.
Best regards,
Franklin Gongalves Jr.
[email protected]
How about sending the paramter value p_code='1,2,3,4'
and in Reports use lexical parameters (look at the online help on this).
Select .... Where Code in (&P_CODE)
I think this should work.
Similar Messages
-
URGENT: passing more than one value at the same parameter
Hello friends at www.oracle.com,
if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
This is quite urgent and I need help on this.
Best regards,
Franklin Gongalves Jr.
[email protected]Thanks to Oracle Reports Team for answering! I'm sure this will work.
Best regards,
Franklin Gongalves Jr.
[email protected]
hello,
on the forms side, you will have to build the list for this parameter by e.g. string concat.
on the reports side you will have to "decode" this parameter according to how you built it in forms.
e.g. if you pass the list like this "10~20~30" you might use a where-clause in the query
... where instr(myCol, :myParam) >0
regards,
the oracle reports team --pw -
How to pass more than one value for one column in procedure
hi
select id, name from col_tab where dept_name in ('ECE','CIVIL');
when i was running this it is working well.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
BEGIN
OPEN ans FOR
select id,name from col_tab where dept_name in char_in ;
END str;
END pack_str;
the package was created.
my doubt is
1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
2. when i was storing the value in string like val = 'ECE,CIVIL' ,
how to get the id,name for ECE and CIVIL.
plz help meHi Rebekh ,
I am recreating your packages for the desired output.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
lv_t varchar2(200);
BEGIN
lv_t := REPLACE(char_in,',',''',''');
lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
OPEN ans FOR lv_t;
END str;
END pack_str;
Note:-
Input Parameter char_in is a comma seperated value for dept_name
-Debamalya -
Html check box pass more than one value into bean
Hi all'
I have group of check box in html , I need to pass more than one value
into bean an ddisplay in jsp
what do i do wrong
private Vector select =new Vector();
private String mybox =null;
public download() {
again();
/* Accessor Methods */
private void addmybox(String name){
select.addElement(name);}
public void setMybox(String name) {
mybox = name;
public String[] getMybox() {
String[] s = new String[select.size()];
select.copyInto(s);
return s;
in my htmli have <%
String[] mybox= format.getMybox();
for (int i=0; i<Mybox.length; i++) {
<%= format.getMybox%>
%>
i got error at <%= format.getMybox[i]%>Hi ram,
thank you, I don't have ideal in my mide .
in my jsp I have
<td> <input type=checkbox name=mybox value=<%= link.getNewNum()%>></td>in my servlet I have something like
String[] checked = request.getParameterValues("mybox");
try {
conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433","A#$","RE@89");
conn.setCatalog("sequences");
stmt = conn.createStatement();
for(int i=0; i<checked.length; i++){
String select=checked;
String Sql=" select NewNum, Name, Length, Segment, Sequence";
Sql+=" from Sec04";
Sql+=" where NewNum='"+select+"'";
Sql+=" union";
Sql+=" select NewNum, Name, Length, Segment, Sequence";
Sql+=" from MySec";
Sql+=" where NewNum='"+select+"'";
Sql+=" union";
Sql+=" select NewNum, Name, Length, Segment, Sequence";
Sql+=" from Sec03";
Sql+=" where NewNum='"+select+"'";
Sql+=" union";
Sql+=" select NewNum, Name, Length, Segment, Sequence";
Sql+=" from Sec02";
Sql+=" where NewNum='"+select+"'";
Sql+=" union";
Sql+=" select NewNum, Name, Length, Segment, Sequence";
Sql+=" from Sec01";
Sql+=" where NewNum='"+select+"'";
rs = stmt.executeQuery (Sql);
while(rs.next()) {
String Name = rs.getString("Name");
String Segment =rs.getString("Segment");
String Length = rs.getString("Length");
String Sequence = storeSequenceData(rs.getString("Sequence"));
String SContent = Name + " ," Segment ", "+ Length + "\n" +Sequence ;
now I want
String SContent = Name + " ," +Segment + ", "+ Length + "\n" +Sequence +"\n" + Name+"Segment+","+length+"+"\n" +Name......untill the end
it sees like I need to look st on shipp car. is that right??
Thank you !! -
How to pass more than one value to the procedure
How can I pass more than one letting date to this procedure. If it is only one letting date, I do not have a problem but when it is more than one letting date at the same time then I am stuck. please help
example I would like to pass this three letting dates : '01/17/2010', '01/27/2010','05/22/2010'
CEATE OR REPLACE PROCEDURE TPLCP.PLANHOLDERSLIST
P_LettingDate IN VARCHAR2,
p_results OUT sys_refcursor
AS
BEGIN
OPEN p_results FOR
SELECT DISTINCT DECODE (TRIM (MIN (j.route)), NULL, 'N/A',TRIM (MIN (j.route))) rt,l.lcontid conid,
SUBSTR (q.cprojnum, 1, 10) pr, SUBSTR (l.letting, 3, 2)|| '-'|| SUBSTR (l.letting, 5, 2)|| '-'|| SUBSTR (l.letting, 1, 2) lt,
(q.cdescr) jbtyp, INITCAP (q.clocat1 || q.clocat2) loc
FROM vendor v,
vendaddr r,
letprop l,
planhold p,
proposal q,
project j,
propproj k,
bidlet bd
WHERE v.vendor = r.vendor
AND k.contid = q.contid
AND k.pcn = j.pcn
AND l.lcontid = k.contid
AND p.vendor = v.vendor
AND l.letting = p.letting
AND TO_CHAR (bd.datelet, 'MM/DD/YYYY') IN P_LettingDate
AND l.CALL = p.CALL
AND r.addrnum = p.billto
AND bd.letting = l.letting
GROUP BY v.vendor,
r.addrnum,
v.vnamel,
r.aaddr1,
p.billto,
r.acity,
r.astate,
q.cdescr,
q.clocat1,
q.clocat2,
bd.letting,
r.azipcode,
r.vasst1,
r.aphone,
l.letting,
l.lcontid,
q.cprojnum;
END PLANHOLDERSLIST;you can create your on array type and then pass that as the parameter. I use the suffix of ttyp to represent a table type. The name of the column when using the table() syntax is columnvalue.
I altered my session to set the default date format to match your format. you could have used the to_date function to set the values for the arr type.
Hope this helps.
create type msw_ttyp as table of date
create or replace
procedure msw_test(p_arr in msw_ttyp) as
v integer;
begin
select count(*)
into v
from table(p_arr);
dbms_output.put_line('count: '||v);
for rec in (select column_value
from table(p_arr))
loop
dbms_output.put_line(rec.column_value);
end loop;
end msw_test;
alter session set nls_date_format = 'MM/DD/YYYY';
set serveroutput on size 1000000
exec msw_test(msw_ttyp('01/17/2010', '01/27/2010','05/22/2010'));
begin
msw_test(msw_ttyp(to_date('01/17/2010', 'MM/DD/YYYY'),
to_date('01/27/2010', 'MM/DD/YYYY'),
to_date('05/22/2010', 'MM/DD/YYYY')));
end;
/ -
How to pass more than one value in RfcRequest ?
Hi Experts,
I have a FModule (addition) which is exposed as an Enterprise Service. This FM takes two values as input(VAL1 and VAL2) and gives the result (RESULT). I have done the configuration to connect to the backend system via SAP Widget Foundation. When i tried to test in URL :
http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form , i gave the input for the RFC Query Parameters as : <VAL1>10</VAL1><VAL2>20</VAL2> , but i get an error "Expecting Expression" .
Am i giving the input in the wrong format ?
I wrote another FM which doesnt take any input but returns some text as output and when i queried it via the above URL, i get the correct result. I again tested with changing the Fmodule that accepts one input and returns one output and i find that it returning perfectly. But when i try with more than one input i get the below error.
Could some one please help ?
See the error :
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Status text="expecting expression" code="-1" type="E"/>
<StatusDetailList>
<StatusDetail type="I" text="expecting expression" code="0"/>
<StatusDetail text="" code="0" type="I" source="net.axyana.qizxopen.xquery.XQEvalException: expecting expression at net.axyana.qizxopen.xquery.ext.XfnEval$Exec.eval(XfnEval.java:62) at net.axyana.qizxopen.xquery.op.Expression.evalAsEvents(Expression.java:556) at net.axyana.qizxopen.xquery.op.ElementConstructor.evalAsEvents(ElementConstructor.java:105) at net.axyana.qizxopen.xquery.op.FLWRExpr.evalAsEvents(FLWRExpr.java:423) at net.axyana.qizxopen.xquery.impl.CompiledQuery.evalAsEvents(CompiledQuery.java:82) at net.axyana.qizxopen.xquery.impl.XQueryExprImpl.doExecuteQuery(XQueryExprImpl.java:267) at
Best Regards,
Sam..Hi John,
Thank you for your reply.
Am trying to test my FM(using http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form) as mentioned in this link:
http://nvpal168.pal.sap.corp:1080/widgetgallery/staticPage.seam?pageId=staticPage9
I had downloaded the SAP Widget Foundation and its running.
Using the link : http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form we can test exposed function modules . If you are using SAP Widget Foundation, then the above link will open up a form
where in the user gives RFC parameters.
I gave it as <VAL1>10</VAL1><VAL2>20</VAL2> and click on Query RFC = > i get the above mentioned error. If this works, then i can call my function module via Adobe flex using HTTP Service with the service url as "http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form".
Best Regards,
Sam. -
How to pass a variable more than one values?
How to pass a variable more than one values?
You can't.
During 1 session, 1 ODI variable can have only 1 value at a time.
If you need more than 1 value, you will have to do somethink like a loop inside your package, and refresh the variable value each time. -
How to send more than one value to the Jump target report variable screen.
Hi,
I have two reports with Plant variable on their input variable screens. Say this Plant can take two values X and Y. The first report is executed with Plant value X and displays data. When a jump is made to report two, Plant value X is retrievd into report two's plant varible value. Now how to send value Y also to Report two when jump is made. I think we can do it with a customer exit? Any help is appreciated
Thanks
BhanuHi Bhanu,
I guess u have created a Variable with Sinlge value ,So Create a Variable which has Multiple Sinlge Values or Interval so that u can have more than one value and if u hvae more than value u will get data for those values and when u do a jump then u can see the data in the JUMP query for both the Values of Input.
Rgds
SVU123 -
Can a url referencing an Application Process pass more than one parameter?
Hello,
I have a page in an application that uses pl/sql to generate a list of links.
The purpose of each link is to call another pl/sql procedure which in turn opens/runs a report external to the APEX application (either a call to Oralce Application Server generate live or pull clob stored in database). If the URL calls the pl/sql procedure directly I lose session state and no longer know who the user is. To maintain session state the URL references an APPLICATION_PROCESS. I would like to pass a number of parameters, but can only seem to pass one, using javascript to pass the value to a hidden item which is then accessed in the procedure called by the APPLICATION_PROCESS.
Can I pass more than one parameter?
My URL:
https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME:P1VALUE
I could pass all the parameters in P1VALUE and using a special character delimiter break it up again in the javascript, but would prefer not to.
Thanks for any help,
JockDid you mean something like this?
https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME,P2NAME,P3NAME:P1VALUE,P2VALUE,P3VALUE
Best Regards, Kostya Proskudin -
How to pass more than one parameter using common...
Hi,
I am using ODP.NET with my 2005 VB
I want to create function from where I can pass more than one parameter to execute SP, or query just like i created for SQL SERVER as below
Public shared Function CreateParameter(ByVal paramname As String, ByVal paramvalue As Object) As DbParameter
Dim param As DbParameter
param = New SqlParameter
param.ParameterName = paramname
param.Value = paramvalue
Return param
End Function
Public Shared Function ExecuteQuery(ByVal sql As String, ByVal commtype As CommandType, ByVal ParamArray parameter As DbParameter())
Dim cmd As DbCommand = New SqlCommand()
cmd.Connection = OpenConnection()
cmd.CommandType = commtype
cmd.CommandText = sql
cmd.Parameters.AddRange(parameter)
Dim RetVal As Integer = cmd.ExecuteNonQuery()
Return RetVal
End Function
specially part is in bold to be converted
I tried like but oracleCommand.parameters doesnt support AddRange
please help me out
RegardsHello,
I used the following way:
pCommand.CommandText = "Update " + sDataTable + " set "
+ sColumnName + " = :1 ";
pCommand.Parameters.Add("ValueToDb",
this.DefaultDbType,
this.m_Value,
System.Data.ParameterDirection.Input);
Of course, you can add :2,... to your command text, too.
The way back is:
sEndOfTheClause += " RETURNING " + sDataTable + "." + sColName + " INTO :iNewValue";
pCommand.CommandText = ... + sEndOfTheClause;
pCommand.Parameters.Add("iNewValue", this.DefaultDbType,
ParameterDirection.Output);
bool bReturn = (pCommand.ExecuteNonQuery() != 0);
if ((bReturn == true) && (pCommand.Parameters.Count > 0))
this.Value = DataService.Convert<DATA_TYPE>(pCommand.Parameters[0].Value);
.... -
BDC: To Include more than one value in one field.
Hi All,
I want to include more than one value in a particular filed, while its running in back ground.
The requirement is like this
perform bdc_field using 'PNPABKRS-LOW'
'01'.
01 is a filed on employee payroll type : management staff.
02 - Filed staff
03 - work men
How can i include 02 and 03 also for the perform.
it has to check whether the employee can belongs to any of the above three.
Thanks in Advance,
Points Rewarded for Help full answer.Hi, Ramesh,
You can not use all the 3 fields at the same time, instead you can pass on one variable in that perform.
eg.
take all your staff value in one internal table and use the following code
loop at i_tab into wa_tab.
data : l_variable type string.
perform bdc_field using 'PNPABKRS-LOW' wa_tab-staff.
endloop.
in first run of loop it will take value '01', in second '02' and so on.
regards,
vikas
plz reward if helpful. -
Pass more than one parameter to ITS link
Hi all,
I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
How do I resolve this?
Plzz help!!
Thanks,
DebolinaHi all,
I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
How do I resolve this?
Plzz help!!
Thanks,
Debolina -
Call Transaction and fill a select-options field with more than one value?
Hello everybody,
how can I fill a select-options field with more than one value.
Here is the code example:
CLEAR: GT_BDCDATA, GS_BDCDATA.
GS_BDCDATA-program = 'RHALEINI'.
GS_BDCDATA-DYNPRO = '1000'.
GS_BDCDATA-DYNBEGIN = 'X'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
GS_BDCDATA-FNAM = 'PCHOTYPE'.
GS_BDCDATA-FVAL = 'P'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
ENDLOOP.
CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
MESSAGES INTO GT_MESSAGES.
THX.Hi,
Please refer the code below:
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Thanks,
Sriram Ponna. -
Subquery returned more than one value
Hi,
I have this statement which has been working fine - not I get a 'Subquery returned more than one value" error:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
(SELECT DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) from empcomp EC WHERE EC.EecEEID = E.EECEEID) as 'Yrs of Serv'
FROM
EmpPers
JOIN EmpComp E
ON E.eecEEID = eepEEID
JOIN Company
ON eecCoID = cmpCoID
WHERE
EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
--AND e2.eecEmplStatus <> 'A')-- changed to <> ...this WAS/is to filter out anyone that was termed then re-hired
--AND E.EecTermReason NOT IN ('I01','I02','I03','I14','I22','V05','V07','V09','V12','V22','V13', 'TRO')
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
--AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND E.eecDateOfTermination IS NOT NULL ))
--added below per Paul Cottle to exclude employeess less than four years
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
qeqwCheck this, if it works:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) as 'Yrs of Serv'
FROM EmpPers
JOIN EmpComp E ON E.eecEEID = eepEEID
JOIN Company ON eecCoID = cmpCoID
WHERE EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful". -
How can I pass more than one parameters in PDK-URL services?
Hi all,
How can I pass more than one parameters in PDK-URL service? All samples on Portal Center shows just one parameter passing.
<inputParameter class="oracle.portal.provider.v1.URLPortletParameter">
<name>csz</name>
<isMandatory>false</isMandatory>
<displayName>What location do you want a map for (City, State or Zip)?</displayName>
</inputParameter>
How can I write the privider.xml file for passing multiple parameters?I answer to my question. I've got the answer.
I repeatly write down the <inputParameter> tags, and it works.
Maybe you are looking for
-
Missing search option in browser
i just recently purchased a torch and it is version .337 and i noticed that the browser search was missing anyone can help? thanks
-
Booting from Secondary BE if primary BE disk fails
Hello, I have used separate disks to configure primary and secondary BEs. I want to simulate a scenario where the primary BE and active disk fails. What are the possible ways to activate and boot from Secondary BE disk? Thanks and Regards asutosh
-
Correct Lens Profile Not Available for Exported/Imported Image Files
Any help with this would be appreciated. I just noticed yesterday that when I have RAW (DNG) files in my LR5.2 library, I can select the correct lens profile to apply. When I take three of those files and merge them together in Photomatix Pro they
-
Linux .sh file problem SFTP
Hi, Usually in our project, for FTP transfers we are writing linux .sh scripts and we are running those files on regular timings with crontab (out OS is linux). But our current issue is to do the file transfer using SFTP. for that we ve written scrip
-
Possible to write into the Calendar direct on the Ipod Touch?
Hello I have an old version of teh Ipod Touch I cant write directly into the Calendar from my Ipod Touch am I suppose to be able to do that? It would be very convinient if I could and a very stupid design if its not possible. Please let me know if it