Select list within interactive report.
Hello y'all,
I have a need to develop an interactive report and am lost in how to proceed. I am asking for your help. The report requirements are as such:
- There are 3 types of records that will be in the report
- The is a checkbox to associate the records to a particular event.
- If the record is of a certain value, 3 of the columns in that record have to show as select lists.
- The records with the other 2 values should not have the select lists, just show a null in those columns.
- The checkbox must be checked for the select lists to appear.
- The select lists are based on a list of values. The values are populated with an existing common function used in many of the application pages.
I am having no success in trying to get the select lists in the report. Has anyone developed an interactive report that uses select lists within the report? Is this even possible?
I am using application Express 3.2.0.00.27. Any help that you can give is greatly appreciated. Thank you so much!
*** Got it. It has to be a tabular report with updateable columns. ***
Edited by: seashell on Sep 13, 2010 5:22 AM
Edited by: seashell on Sep 13, 2010 7:07 AM
Hi,
I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
Try using a javascript expression instead, like this:
$v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
Luis
Edited by: Luis Cabral on Feb 29, 2012 4:45 PM
Similar Messages
-
Hi All
I need help creating a report with the first column as a select list and the other columns (4 of them) will auto populate based on the selected item. This is a report region on form that will update a table when submitted.
My Table: Cost Center
Cost Center Id - PK
Cost Center
Variable
Object Code
Department Accumaltor
Year
The user would select a cost center from a dropdown within the report and the other values would be filled in.
So far I have created the select list and created a tabular form.
I'm sure if I need to even use this type of report because the user will be able to add a new record if necessary.
I think I need a process to retrieve the rest of the info from the table once the user made a selection. But where would I put that?
I've read many posts that are similiar but I need some guidance.
Thank You
MoeHi I wanted to include the code I'm trying to use based on various posts I found:
I found this suggestion on Denes Kubiek site and tried to modify it to be used in a report with dropdown. Un fortunately it's not working.
In the Region Header:
<script language="JavaScript" type="text/javascript">
<!--
function pull_multi_value(pValue){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=getCostCenter',0);
if(pValue){
get.add('TEMPORARY_APPLICATION_ITEM',pValue)
alert(pValue);
}else{
get.add('TEMPORARY_APPLICATION_ITEM','null')
gReturn = get.get('XML');
if(gReturn){
for(var i = 0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByid("id");
--var l_ID = l_Opt_Xml.getAttribute('id');
-- var l_El = html_GetElement(l_ID);
if(l_Opt_Xml.firstChild){
var l_Value = l_Opt_Xml.firstChild.nodeValue;
}else{
var l_Value = '';
if(l_El){
if(l_El.tagName == 'INPUT'){
l_El.value = l_Value;
}else if(l_El.tagName == 'SPAN' &&
l_El.className == 'hideMe508'[i]){--I changed the class name[/i] l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
}else{
l_El.innerHTML = l_Value;
get = null;
//-->
</script>
ON Demand Process -
DECLARE
v_var VARCHAR2 (15);
v_yr VARCHAR2 (15);
v_obj VARCHAR2 (15);
v_acc VARCHAR2 (15);
v_dept varchar2(10);
CURSOR cur_c
IS
select variable, year, object_code,accumulation_code, dept_accum FROM cost_center_code
WHERE costcenterid= (v('TEMPORARY_APPLICATION_ITEM'));
BEGIN
FOR c IN cur_c
LOOP
v_var := c.variable;
v_yr := c.year;
v_obj := c.object_code;
v_acc := c.accumulation_code;
v_dept := c.dept_accum;
END LOOP;
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="f04_0001">' || v_var || '</item>'[i]);--I changed these to reference the fields within the report HTP.prn ('<item id="f05_0001">' || v_yr || '</item>');
HTP.prn ('<item id="f06_0001">' || v_obj || '</item>');
HTP.prn ('<item id="f07_0001">' || v_acc || '</item>');
HTP.prn ('<item id="f08_0001">' || v_dept || '</item>');
HTP.prn ('</body>');
EXCEPTION
WHEN OTHERS
THEN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="f04">' || SQLERRM || '</item>');
HTP.prn ('</body>');
END;
Any help will be greatly appreciated
Moe -
Select List beside Interactive report
Hi All,
I am not able to place a SELECT LIST item beside an Interactive Report.
What is happening:
<selecting columns to search> Go Action SELECT LIST*
I n t e r a c t i v e R e p o r t
Even though I am able to place a button beside the Interactive Report using the Button Position attribute for the button.
<selecting columns to search> Go Action Button
I n t e r a c t i v e R e p o r t
Sadly there is no such attribute for a SELECT LIST.
What I want:
|<selecting columns to search> Go Action SELECT LIST
I n t e r a c t i v e R e p o r t
I tried using the Grid Layout Attributes but to no avail.
Thanks,
SombitHi,
I do not know is that possible without styles or JavaScript.
You can try this.
Place to page JavaScript Execute when Page Loads
$("#apexir_TOOLBAR").append($("#Px_YOUR_SELECT_LIST"));Change Px_YOUR_SELECT_LIST to your select list name
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Edited by: jarola on Mar 27, 2013 8:32 AM -
How add Select list in Interactive report search bar
Hi , I am using Oracle Apex 4.2 and theme 25.
I want to add select list in IR search bar. I am able to add buttons but i am unable to add items..
Please guide me to achieve that ..
Thank You,
Nihar NarlaHi,
There is no specify property called "Button Position " for page items. This is applicable for BUTTON only inside the Search bar.
There is a property in IR region -"Item Display Position" for page items to display but only 2 options [Above/below]
Thanks,
--Loga -
What is difference between interactive list and interactive reports?
what is difference between interactive list and interactive reports?
hi check this..
interactive report/list means any input(double click or single click or user command ) on the screen will results a new screen with the corresponding fields....this is upto 20 levels only check this..
report .
start-of-selection.
write:/ 'this is the source list'.
at line-selection .
if sy-lsind = 1 .
write:/ ' this is the 1st list'.
elseif.
if sy-lsind = 2 .
write:/ ' this is the 2 list'.
if sy-lsind = 3 .
write:/ ' this is the 3 list'.
if sy-lsind = 4 .
write:/ ' this is the 4 list'.
if sy-lsind = 5 .
write:/ ' this is the 5 list'.
if sy-lsind = 6 .
write:/ ' this is the 6 list'.
if sy-lsind = 7 .
write:/ ' this is the 7 list'.
if sy-lsind = 8.
write:/ ' this is the 8 list'.
if sy-lsind = 9 .
write:/ ' this is the 9 list'.
if sy-lsind = 10 .
write:/ ' this is the 10 list'.
endif.
regards,
venkat -
Apex Advisor does not like comments within interactive reports
If I have some comments within interactive reports,
example:
/* comment */
select * from dual
apex advisor shows me an error message like this:
Compilation error - ORA-06550: line 3, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
Does anyone has the same problem?
Thank you!Hi "user1139516",
the problem is that if the first word isn't "SELECT" or "WITH" the statement it's not detected as a SQL statement and we fallback to try to handle it as an anonymous PL/SQL block.
For now as a workaround, but your comments after the SELECT keyword like
select /* comment */
from dualWe try to change that behavior in a future version of APEX.
Thanks
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to skip from one list to another list in interactive report?
Hi Friends,
How to skip from one list to another list in interactive report that means now i am in 7 th list how to skip 4th list ?
Or now i am in 7 th list how to skip 9th list ?
can anybody send sample code please.
Thanks in advance.hi,
at line-selection.
case sy-lsind.
when 9.
sylsind = 4.
endcase.
try like this when u r in 9th list next it goes to 4 th list -
How to create more than 21 lists in interactive reports
hello everyone,
I am new to ABAP as well as this site. Kindly help, I want to know how to create more than 21 lists in interactive reports.
Also, how can i create them without using WHEN 1, wHEN 2 and so on...
Kindly help.
thank youHello,
Using Intracive Reports its not possible to cretate more than 21 lists.
But its possible to create more than 21 using ALV concept.
for sample ALV u can serch in SDN.
Regards,
Anil. -
Is it possible to change values in pagination select list for a report?
The values showing up in my pagination select list for a report are 10,15,20,30,50,100,200,500,1000,5000.
Is it possible to not have this list show the 1000 and 5000 values? I've tried setting various row values in the layout and pagination section of the report, but nothing changes in the select list. Is there a way to change this, or is it set up in a template somewhere that I can change?
APEX version 3.0
ThanksFigured this one out. Using the P1_ROWS item, added a static LOV with the correct values to override the one APEX was providing. The P1_ROWS item goes in the Number of Rows (Item) field in the layout and pagination section of the report.
-
Sub Select list within the Select List!!
Hi All,
I want one solution, i want to have a sub select list within the select list, i mean i want to have a dropdown shown when we point a cursor on any of the Value of
the select list. Sub select list for that value of the select list.
Hope you all got it,Please Reply me if anybody has the solution, I am using APEX version 3.0.1.00.07
ThanksHm,
Service Unavailable
The proxy is currently unable to handle the request due to a (possibly) temporary error. Extended error information is:
* Failed to forward the request to the web server at apps.oraclecorp.com:80. This may be due to a firewall configuration error or a DNS failure.
If this situation persists, please contact your security gateway administrator.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
Multiple Select Lists on Tabular Report
I am trying to build a tabular report to allow users to edit records within a table. This tabular report has several non-editable columns on it as well as two select list boxes. Theh user would select a value from the first list box. That value would then become part of the where clause of the next select list box. However I have not been able to pass the new value to second list box.
My application deals with metadata, so here's how the screen looks: (Field names in {} are select lists)
Select File to Edit: {this list works fine}
[Field Name] [Derived] {Parent file} {*Parent Field*}
The Parent Field drop down is never getting populated. Parent file dropdown works fine.
I don't think the problem is with my select statement. I think the variable I am using in my select statement is never having it's value set.
Any help would be appreciated.
Hope this makes sense.
Donthere's currently no easy way to handle your request in html db. it might be doable using a few hacks here and there, but it's almost not worth getting into because of the complexity of the approach. my recommendations are that you...
a) consider setting your form up as a single-row update rather than a multi-row one. with a single-row form, it's a much simpler matter to have your {Parent Field} lov be driven by your {Parent File} one.
b) if the values in your Parent File lov aren't too great in number, you might consider handling this with javascript added to your tabular form page. i don't know that exact javascript, but you should be able to find it pretty easily on the web.
hope this helps,
raj -
Help with Select Lists in Classic Report
Hello,
I working with APEX 4.1. Oracle 11.
I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
Report looks like this:
Username Role Read Update
JSmith Admin Yes Yes
LJones Dev Yes No
My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.
Thank you,
LauraLauraK wrote:
I working with APEX 4.1. Oracle 11.
I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
Report looks like this:
Username Role Read Update
JSmith Admin Yes Yes
LJones Dev Yes No
My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.Should be possible to do this using a Dynamic Action without writing any (or much) JavaScript. The complexity in this case is that you're using items in a report rather than standard page items. -
Conditional Select List in a Report maintained using a Multi Row Update
I have a SQL Report that is maintained with a "Multi Row Update" process. One of the columns needs to be ether a "Select List" based on a named LOV or just "Text" (Read Only) based on the value in the column. I have the UI working using a case statement and apex_items in me SQL but the Report Column is not marked "Edit" and the "Multi Row Update" process just ignores changes.
Any help would be great!Just curious, why is the first parameter to in third TEXT_FROM_ITEM invocation NULL instead of 20? Also check your first parameter in your ELSE. Shouldn't it be a global number as well?
Did you try adding a hidden item to your SELECT statement? Something like:
(case
when CSSN.KTTR_BILL_STAT_UID = KT_UTIL_PKG.get_kttr_uid_from_ref_val('SESSION_BILL_STAT','SESSION_BILL_STAT_1') then
apex_item.select_list_from_lov(20,CSSN.KTTR_BILL_STAT_UID,'KTTR_SESSION_BILL_STAT_PRPR','','NO')
when CSSN.KTTR_BILL_STAT_UID = KT_UTIL_PKG.get_kttr_uid_from_ref_val('SESSION_BILL_STAT','SESSION_BILL_STAT_2') then
apex_item.select_list_from_lov(20,CSSN.KTTR_BILL_STAT_UID,'KTTR_SESSION_BILL_STAT_PRPR','','NO')
when CSSN.KTTR_BILL_STAT_UID is null then
apex_item.text_from_lov(20,'KTTR_SESSION_BILL_STAT')
else
apex_item.text_from_lov(20,CSSN.KTTR_BILL_STAT_UID,'KTTR_SESSION_BILL_STAT')
end) as KTTR_BILL_STAT_DISP,
apex_item.hidden(30,CSSN.KTTR_BILL_STAT_UID) MIRRORThen in either an Javascript onBlur event on KTTR_BILL_STAT_DISP or in a Page Process assign the value of KTTR_BILL_STAT_DISP to MIRROR.
Mike -
Multiple selection lists in abap report
I need to populate a multiple selection list and then read the selection in an ABAP report. A parameter with list box is not solving my purpose.
Please give any suggestion on this.Hi
If you can't use the SELECT-OPTION statament, there's no standard solution.
U can only try to create a table control with only one colunm and every hit of the table control is a single hit for the selection.
To insert a table control in a selection-screen u need to use the statament:
SELECTION-SCREEN BEGIN OF TABBED (see the help)
In order to create a TAB where u can load a subscreen where u can insert a table control.
The u need to transfer the hit from table control to a range.
Max -
How to go back to a particulat list in interactive report.
hi experts,
I have created an interactive report which has a primary list and 4 secondary list.Now from my 4th list i want to go to second list .
what i have to do .i know something has to be done with sy-lsind.
just check this code.
case sy-ucomm.
when 'BACK'.
sy-lsind = sy-lsind - 2.
endcase.
i have written this code in the code for 4th list.but it is not working .sy-lsind it has got different list levels
at back user command write code
SET USER COMMAND 'BACK'.
it will help u surely
thanx n regards
plz award
keep rockin
vivek
Maybe you are looking for
-
Posting error from payroll to FI
Hi, We are having an issue while making FI posting. Scenario: We created few new Wage Types for some specific purpose related to a benefit process, and delimited the existing wage types. New wage types created effective 1st May and the old wage types
-
Hello all, The Wi-Fi 1.0 patch will not install on a 10.7.4 Mac OSX even though the Wi-Fi loss bug is still there, every now and then (the iMac does not detect any wi-fi network). Are there any other solutions regarding this issue ? kind regards
-
HELP: iMac won't boot up.
Old iMac, due for replacement. Working as expected until other day. Now won't boot past initial apple splash screen, then dies after 10 seconds.
-
HT1338 Upgrading software to use the cloub
I have a MAC OSx version 10.5.8 and i am trying to upgrade the software to set up iCloud. I can't seem to figure out how I upgrade the 10.5.8 to the 10.7.4 or later, and there does not appear to be any automatic upgrades available for my system. An
-
Need help with JSSE settings for Axis2 auto-generated client.
Hi all. I have several working clients generated for me in Axis2 from WSDL's using wsdl2java utility. The clients use HTTP transport but I need to use HTTPS now. I assume JSSE is used for SSL communication in Axis2. I have created the keystore and se