Passing multiple values to the report
HelloI have a form of parameter. One of the field will have at least one value. When there are multiple values, the values will be separated by a comma and pass on to the State. Please tell me how to separate them and put them in the citation in the report query.
EX: values are: PO, DR
There will be in the where condition as: where code in ('OP', 'DR');
Thank you in advance.
PS. I use 10g
Published by: 945599 on 10 July 2012 14:04
Hello
I sent the unit test by mail.
Please note that there are some hardcoded values when you use run_report_object (name of report server and host name).
Kind regards
Alex
Published by: AlexDiniasi on 19.07.2012 17:14
Tags: Oracle Development
Similar Questions
-
a problem in passing multiple values in the loop settings for
Hi all
I am facing a problem in passing multiple values in the loop settings for.
EX:
CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE
tab type is table of NUMBER;
TEMP_TAB TAB;
BEGIN
Select the COLLECT LOOSE pr temp_tab pr_id;
I'm in 1.TEMP_TAB. loop of COUNTING
PR_ID: = temp_tab (i);
end loop;
END TEST;
OUTPUT:-
pr_id = 234578
in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
why I don't get all the values that the parameters.please offer a solution for me.
Thank you my friend.More clarification, let's look at your code...
-- create a procedure and have a single numeric out variable CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS -- declare a type as an array of numbers type tab is table of NUMBER; -- declare a varianble of that array type TEMP_TAB TAB; BEGIN -- query all the values from the table into the array select pr_id BULK COLLECT INTO temp_tab from pr; -- loop through each value in the array for i in 1..TEMP_TAB.COUNT loop -- set the value of the single OUT parameter, OVERWRITING any previous value it has PR_ID := temp_tab(i); -- loop around to the next value end loop; -- end the procedure with the final value of PR_ID END TEST;
-
Passing multiple values at the request of the State (no status page)
Hello
[APEX 4.2.4.00.08 on the 11.2.0.3 database]
I didn't know how to explain briefly what I need in the title of the discussion, that's why I added the song "(non page rapport)". " I met a lot of threads associated with passing of selections multiple values from one page to another, or via a URL from one page to another. I know how to do this. The problem I have right now is trying to pass the commas of the values contained in an application to a report query element. Here's where the "(rapport non page) ' comes into play." I refer to the report query at the level of the application (i.e. shared components-> report queries). I wish really it had another name for it. "Report on the application of queries", perhaps?
In any case, my report query has a bind variable, AI_ID_NUMBERS, that is defined correctly in the shared-> components report queries. However, when this item application has multiple values such that AI_ID_NUMBERS = 4, 5, 6, 7 etc., my URL looks like this:
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7
So, this returns only one record for the report where the identification number is 4, one. I tried a string parameter of Substitution of Application (URL_REPORT_1) with the two following variants (for which both return only a single record):
Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS: & AI_ID_NUMBERS.
Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS:-& AI_ID_NUMBERS. \
returns...
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7
myapexsite.com/f?p=456:2:1234567890:PRINT_REPORT=report_1:::AI_ID_NUMBERS:\4,5,6,7\
.. .respectively
I really thought that the backslashes would have solved the problem. Any ideas why my report request (PDF) returns only one line?
Thank you
-Seth.
Well, too bad. I realized the mistake I did.
When you work with 'request report queries', there is an option to include variable bind, for example the application or page elements. I had already done that, but for some reason, thought that I also had to pass the parameter and its values in the URL. This is not necessary since the report query query already has the issue of the application/page related to it. The following URL works fine:
myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1
And, Yes, it's the URL that is provided when you set up a "application report query. I was thinking too hard.
-Seth.
-
To show multiple values in the report?
Hi all
I have to show the value of prompt in demand from a prompt of dashboard.
If the type drop-down list command prompt, a single value, I can use variable presentation.
But I have a problem when multiple selection prompt property...
How to display selected prompt in the report header values?
Thank youImpossible to display the different values in a report header, but here is a workaround to display the selected values.
(1) create a report smaill with just a single column, the column that is used in the multiple selection prompt.
(2) put a filter on this "is invited" to receive the values selected from the prompt.
(3) to customize the header and enter, "selected to request values.
(4) place this report on the regular report.
Now, when the user selects values, the list of values will appear at the top of your report.
-
passing multiple values of the column to a variable in unix
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 from dual ; EOF for i in `cat sql_1.txt` do sh script_1.sh $i
Currently I am passing a column value to the single unix variable.
How can I pass values of 2 columns
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 ,sysdate c_2 from dual ; EOF sh script_1.sh $col_1_value $col_2_value
I'm on SUNOS
You can concatenate the columns in SQL by a delimiter, and then use the cut (for example) under Unix to analyze the production line in chips for the script.
-
Insertion of multiple values in the report (not in the database)
Hello!
I have a procedure that shows example of 50 people and for each text element three different person I access values and submit to the database. There is a check box for each line. I have a selection list of Pentecost that you choose the column and a text element where you enter the value to insert. What I want to do is insert this value just in the lines that have a selected check box. I would like to insert this value just in the report (not in the database) when I click on a button.
What do I have to use javascript? I really have no idea how to do that.
Thanks for any help!This will give you an idea on how to handle the selected lines:
http://Apex.Oracle.com/pls/OTN/f?p=31517:95
Other examples show how to use tabular forms.
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
passing multiple values from the query in the select statement of the procedure
I am collecting IDS to select education agreement from the date of rental values and then I would pass the result of the query in the statement select to get the result.
data type for the contract id is of type varchar and date of rental there is more than one id to contract for most of the time. Help, please. Thank you
CREATE OR REPLACE PROCEDURE abstract_menu (p_letting IN VARCHAR2, p_results OUT SYS_REFCURSOR) IS v_contractId VARCHAR2 (40); SELECT lcontid INTO v_contractId FROM letprop WHERE datestat IS NOT NULL AND letting = p_letting AND letstat <> 'R'; BEGIN OPEN p_results FOR SELECT DISTINCT SUBSTR (l.letting, 3, 2) || '-' || SUBSTR (l.letting, 5, 2) || '-' || SUBSTR (l.letting, 1, 2) lettingdate, l.lcontid contractid, SUBSTR (q.cprojnum, 1, 10) projectnumber, DECODE (TRIM (MIN (j.route)), NULL, 'N/A', TRIM (MIN (j.route))) routenumber, L.DATESTAT statusdate, L.LETSTAT lettingstatus, (q.cdescr) jobdescription, INITCAP (q.clocat1 || q.clocat2) LOCATION 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 l.lcontid IN v_contactid "**************This is where I would like to pass the contract id from the above select statement***********'" AND l.CALL = p.CALL AND r.addrnum = p.billto AND bd.letting = l.letting GROUP BY q.cdescr, q.clocat1, q.clocat2, bd.letting, l.letting, l.lcontid, q.cprojnum, L.LETSTAT, L.DATESTAT ORDER BY lettingdate; end;
user9196150 wrote:
AND l.lcontid IN v_contactid ' * this is where I would like to pass the id of the select statement above contract * ""»CREATE OR REPLACE PROCEDURE abstract_menu (p_letting IN VARCHAR2, p_results OUT SYS_REFCURSOR) IS BEGIN OPEN p_results FOR SELECT DISTINCT SUBSTR (l.letting, 3, 2) || '-' || SUBSTR (l.letting, 5, 2) || '-' || SUBSTR (l.letting, 1, 2) lettingdate, l.lcontid contractid, SUBSTR (q.cprojnum, 1, 10) projectnumber, DECODE (TRIM (MIN (j.route)), NULL, 'N/A', TRIM (MIN (j.route))) routenumber, L.DATESTAT statusdate, L.LETSTAT lettingstatus, (q.cdescr) jobdescription, INITCAP (q.clocat1 || q.clocat2) LOCATION 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 l.lcontid IN ( SELECT ll.lcontid FROM letprop ll WHERE ll.datestat IS NOT NULL AND ll.letting = p_letting AND ll.letstat 'R' ) AND l.CALL = p.CALL AND r.addrnum = p.billto AND bd.letting = l.letting GROUP BY q.cdescr, q.clocat1, q.clocat2, bd.letting, l.letting, l.lcontid, q.cprojnum, L.LETSTAT, L.DATESTAT ORDER BY lettingdate; end; /
SY.
-
Hello:
How to configure contextual events publish several values of payload?
On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.
My event handler method has the signature of:
eventHandler (String)
But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
eventHandler (Number, String)
How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?
All article or code would be greatly appreciated.
Thanks for the help.You define a bean holding your values and pass an instance of the bean as a payload...
Timo
-
spend multiple values on the interaction of click value
Hi gurus:
I have a requirement where I need to display a report of the first (a table or a PivotTable), with the type Cust_ID, recipes, etc. Cust_id is a unique dimension. Most of the stuff is made.
And then the user wants to select 4 different values of Cust_ID and run another report of detailed comparison of the attributes of these clients.
Now, the solution I proposed one or the other was a copy and paste in the new edition box prompt, or multiple selection on cust_id on new page.
But the 'expert' user interface wants something like boxes to tick next to all ranks and press a button that automatically starts a comparison report.
I know that we can pass a value to the other report using the value interaction. But how I spend 4 different values to the click?
Or is there no other way?
Please help me.
VSorry there not be useful. I think that the solution works and book it that the user needs. Article is that sometimes we spend too much time trying to satisfy a user wants and brings us to spend our valuable time that could be spent more productively. Well...
Good luck, however, Vinay!
-
I want to pass multiple values method AM controller
Hi all
Can someone tell me please how to pass multiple values of AM method to the controller.
Thank youYou can make use of the ArrayList
In CO
OAApplicationModlue am = pageContext.getApplicationModule(webBean); ArrayList values = (ArrayList) am.invokeMethod("PassArray");
In AM
public ArrayList PassArray { ArrayList values = new ArrayList(); values.add("value") values.trimToSize(); return values; }
Thank you
AJ -
Passing DB values to the text based on the Select Value box
Hello
I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".
I tried using processes calling for demand, but could not get the desired result.
Please suggest!Hello
Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.
Kind regards
-
passing multiple values of variable presentation to go the url in dashboard
Hi all
I use go url in dashboard in the area of text using html file mark up. We have a guest area which saves the values in the variable of presentation P_REGION. The link to the dashboard works well when we choose to value as a single region. She passes the parameter. However, if we choose multiple values, it fails. Do we need to modify the code below in support of more than the presentation variable value to pass to the report.
Thank you<a href="http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables.P_REGION}">Drill Report</a>
SushilBefore you go to the link, I would say to understand how the variable takes values.
Try to use the link as ay of the column expression in the criteria to see the full url with multiple values.http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables. P_REGION}
If my assumption is not wrong valiables holds as "one, two."
This will give you some ideas to work on.
If need more help to share the url with multiple values.BTW: I don't think that it works with multiple values, give a try, as said.
So much sense mark :)
-
Multiple values in the dashboard application application database Direct
Hello
I created a direct request from the database that accepts input from a prompt by a variable of presentation, either placed in request of db query. I realized in the process that I had to give a default input to the variable of the presentation of the petition. The input variables passed from the dashboard quick came in the right format, only if they are placed in quotation marks, Eg: "Input_Var".
After all this, I came across a problem when multiple values are entered, the query is generated with an incorrect format. Here is the example:
Select col1, col2
of TabXX
where username IN "Acct_Nm1", "Acct_Nm2"; ')}
Is there anyway to solve this problem. Thanks in advance.
Hi all
I used the sequence next to convert the string separated by commas, received XML from the dash prompt.
"Select XXX".
movies XXX
where the value
in (SELECT )
EXCERPT (VALUE (d), ' / / row/text () ") .getstringval)
Of
(SELECT XMLTYPE ('
') AS xmlval' |)) REPLACE ('VALUEOF (NQ_SESSION.req_var)', ';', '
').
The DOUBLE) x,.
( TABLE (XMLSEQUENCE (EXTRAIT (x.xmlval, '/ lignes/ligne'))) d)"
Create a query variable 'req_var' in the prompt to serve in "VALUEOF (NQ_SESSION.req_var)" and pass it to the report. It will be useful.
Thank you.
-
How to pass multiple values in a single parameter
Hi all
I have a setting in my report called dept, this setting takes values in a list. I am using a sql query to populate the list. then the values available for dept are HR, FINANCE, MARKETING.
In the setting column, I checked the option "MULTIPLE SÉLECTION" AND "CAN SELECT ALL" and I select "all THE VALUES PASSED.
Now my data model sql looks like
Select * from emp where Department: dept
When I try to view the report and select ALL the list of values I don't get any results out of it. In short, I want to run my query for all values of the Department and I want that this query to run when I select ALL from the list.
Select * from emp where Department ('HR', 'FINANCE', 'MARKETING')
But I don't get all the data, is it passing null? How to solve this?
Any help will be really appreciated
Thank you
RonnyYou can change the code to sql data model looks like
select * from emp where department in (:dept )
-
display multiple values at the completion point
All,
IAM create multiple entries for autopopulate point as shown in this jquery plugin link below but iam trying to change that, then values from the query to the table. How can I achieve even using web services apex 4.1.1 but iam trying NOT to use remote url or external file?
http://jQueryUI.com/AutoComplete/#multiple
concerning
All,
I'm still digging around and looking everywhere but this blog below how I can pass the valueset returned to my jquery as variable below.
sample:
http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html
var availableTags is ['data1', 'data2', 'data3'];.
concerning
Maybe you are looking for
-
I continue to have this site pop up and telling me my firefox is obsolete (I just installed and updated through mozilla update). http://www.9buqwgjm6k.com/27442C365D492377266A76496C4F63254B734B618741FC7F85E693B1DAB8D47EE79F4EA8256643917ED9C39B868A715
-
Portege R830 PT321A - 3 G Modem driver does not recognize the device
Hi guys,. I'm having a strange problem with the model PT321A - 01 K 002 concerning the driver of Modem 3 G.I tried all the drivers available and Wireless Manager sites Australia and European I can find and it just won't recognize hardware. To clarify
-
ReadyNAS 204 no connection ethernet #27311475
After restarting my readynas will get is no longer an IP address. During shutdown, it displays a 'do_exit + 890'. It will not turn off and I have to pull the plug. The green light is always on one of the network cards, and there is no seeing that lig
-
File dialog box, slow down execution
Hi all I'm using Labview 8.2.1 with Windows XP. I have a program that allow the user to select a file or folder through the file dialog box. For some reason that I do not understand when this dialog box is displayed, in another parallel while loop, e
-
I get the error message message sending me to S3 Graphics for this file - ProSavageDDR