Select list within a report

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
Moe

Hi 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

Similar Messages

  • 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

  • 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
    Thanks

    Figured 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
    Thanks

    Hm,
    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.
    Don

    there'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,
    Laura

    LauraK 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

  • 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,
    Sombit

    Hi,
    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

  • Add a Select List to a Report, for Updating a table.

    I am working on Apex 3.0. I had to allow the Report could update a table. I added two checkbox to the report, and now I should add a Select List. I've tried a lot of ways but I don't know how can I pass the value selected, related to the ID of the row. I've tried with a JavaScript but I couldn't. A process should update the row on the DB when the user change the value on the select list. There is a save button that perform the process. How I could pass the ID of the row and the value to a PL/SQL process?
    Many Thanks for your suggestions.
    SELECT PFA.FOCUS_AREA_ID
    ,FOCUS_AREA_NAME,     
    apex_item.checkbox(1, FA.FOCUS_AREA_ID, DECODE(PFA.FOCUS_AREA_ID, null, ' ','checked="checked" ') ||
    'id="chk'||rownum||'"'|| ' onclick="checking(this)" ') as Focus_AREA_CHK,
    APEX_ITEM.SELECT_LIST(
    *5,*
    PFA.FOCUS_TYPE,
    *'DIS;DIS,ENG;ENG,EXP;EXP,TGT;TGT',*
    *'id="sl_'||FA.FOCUS_AREA_ID||' " ',*
    *'YES',*
    NULL,
    *'-Select-',*
    *DECODE(PFA.FOCUS_AREA_ID, null, 'disabled="disabled" ','' ) || ' --onchange="selectedElement(this)" ',*
    *'NO'*
    *)* "Type"
    FROM PROGRAM_FOCUS_AREAS PFA,
    FOCUS_AREAS FA
    WHERE
    FA.FOCUS_AREA_ID = PFA.FOCUS_AREA_ID(+)
    AND :P151_PROGRAM_ID = PFA.VS_PROGRAM_ID(+)

    **Deleted**
    Edited by: user4498053 on Dec 27, 2011 11:24 AM

  • AJAX Select Lists on Updateable Reports

    All,
    I have followed the examples from Karl and Sergio's blog on how to use AJAX to contol dependent LOV lists in a form. My question is, can this be done in an updateable report? I'm having difficulty in determining how to reference the column names of the dependant lists.
    What I basically have is a time app. User selects his project from a picklist and then his associated tasks for that project will appear in the task list. I have used the updatable report option to build this rather then a form, because I liked the prebuilt add row and processing functionality.
    Anyway if anyone knows how to use AJAX dependant select lists in an updateable report it would be greatly appreciated.
    Thanks
    Rob

    See http://forums.oracle.com/forums/thread.jspa?messageID=1222153&#1222153

  • Changing value of select list to match report field

    I have an Apex page that has a report region and a form region.
    The report region returns a single row of data from a SQL select. One of the fields returned is a user id (which I translate into a user name using a LOV).
    In the form region, I have a select list containing users (based on the same LOV as above). The form is used to add a new record to a table. I want the select list in the form region to display the same user as displayed in the reports region. I'm adding in the form is based on the user id in the report region.
    How do I do this? Because the form region is adding a new record, and uses the Database field as Source, it always displays the first item in the LOV.
    I tried using computations to override what's in the select list in the form region (by doing a SQL select and getting the same row of data as in the reports region) but this doesn't seem to work. The select list just always defaults to the first user.
    Is there a trick for making one select list match another?

    Cheers - think you're right, using the default will do it. Having a bit of trouble with my SQL select now though...
    This is the SQL I'm was using
    SELECT ASSIGNED_USER_ID FROM REQUEST WHERE REQUEST_ID = 1;
    How do I rewrite this as a PL/SQL function or expression to return the ASSIGNED_USER_ID field as my default (I'm still learning the basics of PL/SQL)?

  • Multiple Selection List Box-- Data Reporting Problem...

    I want to build a form which reports all of the multiple selections made by users from a list box. When I test the form, only the first selection is reported in the dataset. How do I configure the form so that when data is compiled, each of the selections from the list box is reported in sequence?

    Here is the solution for the requirement.
    Add another 2 columns in the resource list: test1 (set default value to 1), test2 (no default value).
    Set test1 to 1 for all existing items in the resource list.
    Set test2 to 2 for the 10 special items.
    Custom form from InfoPath Designer, modify the data connection and also include the test1 and test2.
    Go to drop down control properties and make sure its value is 1 and 2.
     Go add the filter to multiple selection box control like this.
    Note: field1 is the field used by my drop down control in Main data connection.
        7.    Done. Now when we select test1 in drop down, we can see all list items in multiple selection box. And when we select test2 in drop down, we can see the 10 list items that with test2 column filled with 2.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • 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 Narla

    Hi,
    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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I control paper tray selection from within a report?

    Hello everybody
    I need to print out a report (preferably in the PDF format) in which certain pages need a specific paper. I am therefore looking for a way to control the paper tray on per page basis. It seems hard to do even though there must be thousand of people out there with the same need - or please proof me wrong
    I really appreciate any suggestions.
    Regards from Zurich, Switzerland
    Peter Buchmann

    doesn't support it right now. it will figure it out what tray if the paper is a different size but that's about it. you have two options, have two printers or no preprinted stationary. Most companies go with two printers.
    Good luck,
    Ike

Maybe you are looking for