Parameter selection of interactive report list

I have an optional parameter select list on my page of interactive reports for users to filter. When the user opens the page I want to all the output of show, but if they type something into the selection list I want to use this filter in my query and re-display the page. I created a selection list with submit ("P237_STUDENT_LIST") and by default the value of 'NONE '. I created a list of values and in clauses 'NONE' so it still shows upwards in the list.

I put this in my report query:

and (: P237_STUDENT_LIST = 'NONE' or)
EXISTS (select ")

I seem to have a problem with the session state from the element. When the page appears first, the session state for P237_STUDENT_LIST is empty and shows nothing. When I make a choice in the selection list, session state is ok, but if I go back to 'NONE', it is not reset it. I'm missing something or that the wrong way?

Bob,

The ApEx team believes people can do what you do and do an easier way. Put your selection list to select a standard. Then enter the details of the interactive report and scroll to advanced attributes > items to submit Page. Enter the name of the element there.

Kind regards
Dan

http://danielmcghan.us
http://sourceforge.NET/projects/tapigen

Tags: Database

Similar Questions

  • Send the implicit parameter to interactive report

    Hello developers,
    I have a how to question: I automatically want the value of a parameter implicit to interactive reports, for example, a filter column equal with values and view records on this basis. Also for reports display buttons, I need to display the only detail view option, without showing the search bar.
    If you know of examples, I apreciate if you let me know.
    Thank you.

    Hello

    You like to 'manage' the layout of the page, I suggest you actually my third solution - custom report template - as this allows available the page exactly as you wish.

    That's what I did on this page: http://apex.oracle.com/pls/otn/f?p=267:230

    The SQL code of this report is:

    SELECT EMPNO,
    ENAME,
    HIREDATE,
    DEPTNO,
    JOB,
    MGR,
    SAL,
    COMM
    FROM EMP
    ORDER BY UPPER(ENAME)
    

    Note that there are 8 columns.

    Then, I went the components shared, models and you click Create. I made the following adjustments/selections:

    Model type: report

    Create the model: from scratch

    Model name: used alone
    Template class: Custom 1
    Model type: named column (model line)

    That sets up a basic model. When it was created, scroll down to the new model in the list and click the name to edit it. Now, enter the following code in the settings:

    Fourth parameter model 1:

    <tr><td colspan="2" style="font-weight:bold; background-color:lightblue;">Personal Information:</td></tr>
    <tr><td><b>Employee Number:</b></td><td>#1#</td></tr>
    <tr><td><b>Name:</b></td><td>#2#</td></tr>
    <tr><td><b>Hired on:</b></td><td>#3#</td></tr>
    <tr><td colspan="2" style="font-weight:bold; background-color:lightblue;">Department Information:</td></tr>
    <tr><td><b>Department:</b></td><td>#4#</td></tr>
    <tr><td><b>Role:</b></td><td>#5#</td></tr>
    <tr><td><b>Manager:</b></td><td>#6#</td></tr>
    <tr><td colspan="2" style="font-weight:bold; background-color:lightblue;"><b>Salary Information:</b></td></tr>
    <tr><td><b>Basic Salary:</b></td><td>#7#</td></tr>
    <tr><td><b>Commission:</b></td><td>#8#</td></tr>
    

    Setting lines before:

    <table>
    <col style="width:250px;">
    <col style="width:250px;">
    

    After adjustment of ranks:

    <tr><td colspan="2">#PAGINATION#</td></tr>
    </table>
    

    Next Page template parameter:

    <a href="#LINK#" class="t18pagination">#PAGINATION_NEXT# ></a>
    

    Previous Page template parameter:

    <a href="#LINK#" class="t18pagination">< #PAGINATION_PREVIOUS#</a>
    

    Following the Template value setting:

    <a href="#LINK#" class="t18pagination">#PAGINATION_NEXT_SET# >></a>
    

    Previous value Template setting:

    <a href="#LINK#" class="t18pagination"><< #PAGINATION_PREVIOUS_SET#</a>
    

    Note that under the line model 1, I used #1 #, 2 # #, 3 # etc. They focus on the numbers in the column in the SQL statement - I have 8 columns, so used #1 # to #8 # position where I want the values to be. Everything in the scene is available the report - you can use what is layout you like. The only requirement is that the #PAGINATION # in the middle of the lines should be in a table.

    Now update your report in order to use the new model and to set the number of rows to 1 so that you see only one record at a time

    Andy

  • To update the database by using selection lists in an interactive report

    I use the Application Express 4.2.6.00.03.

    I have an interactive report in two columns with a selection list in the second column. The generated query the report is

    Select pn.project_name,

    (Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

    of res_project_name_detail pnd, pn res_project_name

    where pn.project_name_id = pnd.project_name_id

    Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

    Martin

    Reference SebastianR


    created a small example

    https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    application 28281

    page 16

    hope this helps you in some way

  • Problem with the cascading for interactive report selection list

    Hi all.

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored


    My Sql query for the report:

    select 
    apex_item.hidden(1, a."DATA_ID")DATA_ID,
    apex_item.select_list_from_query(10,
      b.WAVE_GROUP,
     'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group',
     'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"',
     'YES',
     '',
     '- Select Group -',
     'f10_' || LPAD (a.DATA_ID, 4, '0'),
      NULL,
     'NO'
     )WAVE_GROUP,
    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP",
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )WAVE_USER
    from "DWD_WAVE_MASTER" a, dwd_wave_assignment b
    where a.data_id = b.data_id
    and b.wave_id = 'wave_1'
    

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user',
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )
    

    Can someone please help!

    Thank you

    Nabila

    The nabila Islam wrote:

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored

    My Sql query for the report:

    1. Select
    2. apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
    3. apex_item.select_list_from_query (10,
    4. b.WAVE_GROUP,
    5. "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
    6. "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
    7. '' YES. ''
    8. '',
    9. -Select Group «-»,
    10. "f10_" | LPAD (a.DATA_ID, 4, '0'),
    11. NULL,
    12. 'NO '.
    13. ) WAVE_GROUP,.
    14. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    15. "SELECT user name d.
    16. |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
    17. '',
    18. '' YES. ''
    19. '',
    20. "- Select user -",
    21. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    22. NULL,
    23. 'NO '.
    24. ) WAVE_USER
    25. of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
    26. where a.data_id = b.data_id
    27. and b.wave_id = 'wave_1. '

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    1. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    2. "SELECT user name d.
    3. |' username r FROM dwd_user ",
    4. '',
    5. '' YES. ''
    6. '',
    7. "- Select user -",
    8. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    9. NULL,
    10. 'NO '.
    11. )

    What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    
    ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"),  
    
    '',
    'YES',
    '',
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
    NULL,
    'NO'
    )
    
  • Dynamic action function Interactive report select value list

    I want to perform an Action when a user selects one of the 3 options in a selection list in an interactive report:

    Select APEX_ITEM. SELECT_LIST)
    p_idx = > 3,
    -p_value = > deptno,.
    p_list_values = > ' copy; Copy, delete, delete, export to PDF format. Export to PDF ',
    -p_attributes = > "style =" color: red; ' " ',
    p_show_null = > 'YES ', he said.
    p_null_value = > NULL,
    p_null_text = > "- Select -",
    -p_item_id = > ' f03_ #ROWNUM #'.
    p_item_id = > 'P6_IR_SELECT_LIST ',.
    p_item_label = > ' label for ROWNUM f03_, #
    p_show_extra = > 'YES') "Actions".
    Double;

    When you generate the dynamic Action, I chose the following values of the Advanced Wizard
    Event: select
    Selection type: DOM object
    DOM object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: 'delete '.

    Action: Run the Code JavaScript: Alert ('Here');

    Does not seem to be shooting... can anyone help?

    Thanks in advance,
    John

    The problem is the type of event.

    'Select' fires when text is selected in a text field, not when an option is selected in a list...

    Try instead "change."

  • Editable interactive report. To change the list column dropdown type filter.

    Hi all, I thought I had posted this, but I can't find my post, so apologies if it turns up to twice more...

    XE SUMMIT 4.2 11.2

    Ive created an editable interactive report... Everything works very well, and I have several Text, LOV and selection list columns...

    However when I now click on a column header to filter, sort etc drop-down list is the same format as the column itself. So if for example, I have a text box, then the drop-down list is also text boxes, if the column is a column LOV, the filter drop-down list is a list of fields LOV. (Im assuming this is correct behavior, because it simply inherits the column parent..)   So, I would change the lists to a list of standard display so that they are in order and can be used...

    I think so? I know I have to do, which is either to substitute the function that generates the dropdown filter... or probably more simply, write a bit of JS/JQuery that modify data for drop-down lists.  Im still to learn, some help would be appreciated...

    I think so. (and please correct me if I'm talkiing... garbage)   I need to find each of the appearance of the DIV with the ID that corresponds to the drop-down list box, and then loop through each entry and change the structure...

    Currently the source for drop-down fields resembles the following (for a text field...). :

    < div id = "apexir_rollover_content" >

    < a href = "javascript:void (false); ">

    < input type = "text" value = "24489" maxlength = size "2000" = "6" name = 'f06' > < / input >

    < /a >

    < a href = "javascript:void (false); ">

    < input type = "text" value = "N1021" maxlength = "2000" size = "6" name = 'f06' > < / input >

    < /a >

    < / div >

    How could I 1) browse each occurrence of div id = "apexir_rollover_content" on my page, so I found out about each other, how would I go through the list and change the line above an input to a standard list item text...? Or is there a simpler way to do it?

    Kind regards

    Richard

    Hello

    Problem was on your process to GET the VALUES of LOV.

    You did not bind the variable values of cursor.

    I created another process for your page that manages LOV BUDGET_CAT

    Kind regards

    Jari

  • Interactive report - search column header list does not display all the

    Hey everybody,

    I'm under 4.2 APEX.  On a page, we have a configuration of interactive report.  Assume that the table has several lines (> 50 000).  If I click on the header of any column, it gives me the normal capacity of IR integrated sorting ascending or descending.  It also lists what I think distinct values in this column are (don't know if it's really separate or not, I'm just guessing here).  And it has a search/filter box which allows you to search these values "distinct."

    My problem is, this list is not complete.  It seems that it is limited to a number that is hardcoded somewhere (somewhere between 500 and 1000).  I don't see all the settings that allow me to configure this behavior.

    Of course, we can use the 'main' search bar and have it search for all lines, however there is a particular requirement for this filtering feature to work with the full list as well.

    Thoughts?

    Thank you!

    Post edited by: kop_pa (fixed typo)

    By default this LOV stores 500 records.

    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/ir_using.htm

    If you change the column definition for the coumn under set the Filter Type of column to one of the other options like 'User defined list of values to exact match filter' from the list of values.  You can then specify the query used to generate this list.  You could use something like that I have listed below to grab the first 20000 records.

    Select *.

    from (select name

    the employee

    em order by name)

    where rownum<=>

  • Add a column "command list" to an interactive report

    Is it possible to add a list of drop-down menu commands as a column on an interactive report?  I want users to choose an action (update a field in the row, change a background color of a field...) to update the report without sending them to another page.  I use Apex 4.2

    Thanks for the tips

    William

    You can create a selection in a column list.

    Orders? No... you have to code them yourself... nothing of what is available in a box!

  • Select columns when downloading interactive reports

    Hello
    We have a requirement defined by Oracle Corporate Security Architecture Review Board to prevent some columns to display when downloading interactive reports in csv format. They should appear on the report, but not on the csv output.

    I vaguely remember it was possible when interactive reports have been made public, but I can't find a way to do so at the ApEx 4.1? When I go to the print attributes > columns in the report, I can see the list of columns, and they all get to see the report = Yes, but there is no way to make it no. it seems that all the selected columns to display in the interactive report are automatically included in the download.

    Our applications are hosted on apex.oraclecorp.com, I can provide more details if necessary.

    Please inform if there is a way to exclude the columns during the download.

    Kind regards
    Isabelle Fallon

    Change the definition of column you want in the CSV file and add a conditional view:

    Condition of Type: Ask! = Expression 1
    Expression 1: CSV

  • new attribute not listed is not on the interactive report

    Hello

    I'm new to APEX (4.0.1)
    I created a 'interactive report' and it works well.
    Later, I added a new attribute to my table and the view.
    At the TOP, I added this specified in the select attribute in 'Source' (Source of the region)
    He also appears in the list of the 'attributes of column' (display text (escape special characters)).
    When I run my report, the new attribute does not appear.
    (ps: when I do a link, the attribute appears (as #xxxx #) in the 'value' - list)

    Thanks in advance for helping me.

    Bernard

    Hello Bernard.

    Click Actions > select columns, and then use the shuttle move the new column that you added to the part 'view report '.

    By default, when new columns are added to an IR, they do not appear. You must go and show them manually. You can then save this view as the default view, and they will still appear.

    Austin

  • How to highlight the selected line in an interactive report in apex5?

    Hello

    I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?

    Hi geslin,.

    Garza says:

    But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.

    Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.

    Here are the steps to achieve the highlighted line:

    • Changed the definition of class employee culminating point to CSS-> section of the line on the page:
    .highlight-employee
       {
        background-color: blue !important;
        color: white !important;
       }
    
    • Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
    • Edited the ROWID of your interactive report column and set the following properties for 'column link:

    Text link: #ROWID #.

    Link attributes: id = "" #ROWID # "class ="monlien""

    Target: URL

    URL: javascript:void (0);

    • Dynamic action created with the following properties:

    Name: highlight_selected_row

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: a.mylink

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var row_id = this.triggeringElement.id;
    $('#P2_NEW').val(row_id);
    $('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');
    

    Scope of the event: Dynamics

    Kind regards

    Kiran

  • How it is possible to create the chekbox in interactive report column header and select all the features.

    Hello

    My requirement is

    Interactive report the first element of box check columns and the topic also point check box.

    If I click on the element of box section columns and then automatically select all the lines in the box.

    Select all / deselect all interactive report header check box.

    Kind regards

    Arianne.

    Check this box

    https://Apex.Oracle.com/pls/Apex/f?p=76604:2:111027941779152:

    username:-test

    password:-test

    SELECT

    APEX_ITEM. HIDDEN (2, null, null, 'f02_': rownum) |

    APEX_ITEM. CHECKBOX2 (P_IDX-ONLINE 01,

    P_VALUE-online null,

    P_ATTRIBUTES-online null,

    P_CHECKED_VALUES => NULL,

    P_CHECKED_VALUES_DELIMITER => ':',

    P_ITEM_ID-online 'f01_ ' | ROWNUM,

    P_ITEM_LABEL => ' label for f01_ #ROWNUM # ')

    as Delete1,.

    of the double

    Choose the column type: report

    in the heading of column delete1

    Simply put

  • To create an interactive report in the apex by selecting from multiple tables

    Hi, I am creating an interactive report by selecting from multiple tables.

    SELECT w.FIRST_NAME as name, w.SURNAME as name, i.ROAD Road, i.DATE_OF_INC as DATE_OF_INC, S.STATEMENT as a STATEMENT OF Declaration

    JOIN THE

    WITNESS w

    ON w.witness_id = s.FK1_WITNESS_ID

    JOIN THE

    Incident I have

    WE

    i.incident_no = w.FK1_INCIDENT_NO

    JOIN THE

    user_station ps

    ON ps.station_id = i.nearest_station_id

    JOIN THE

    the user in.

    WE

    in. STATION_ID = ps.station_id

    WHERE po.officer_id = 1

    by I continue to encounter this error "the report query requires a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column. "ORA-01445: cannot select ROWID from where sample, a join without key preserved table view '

    So I googled around and found that in the attibutres tables report, I need to change the "LINK" COLUMN so first, I changed "Link to custom target", but the report is so I changed it to "Exclude link Clolumn" again, the report didn't report and I STILL got a blank page with only the tabs.

    I wonder you can not create a report by selecting from multiple tables?

    If you can please I need your help.

    Thank you

    You can, but in this case, it might be easier to build your report tables that are joined Oracle views and then build your report out of the newly built sight...

    Or wrap a selection around your selection with joins, and then make the where clause on the external selection...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Select a cell of interactive report based on another hidden cell

    Greetings,

    Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?

    The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).

    So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
    $('[headers = "INTENSITE"]').each(function() {
      if ($(this).text() == 1) {
        $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); 
      }
    });
    and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).

    So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.

    Any help would be appreciated.

    Thank you
    Mathieu

    You can try the following:

    1. Add a column to your sql that contains the background for example color

    SELECT
    EmpNo,
    Ename,
    initialst,
    Decode(INTENSITE,1,'red','white') background_color
    Of
    EMP;

    2. in the new updated interactive report background_color column is hidden.

    3. Select the NOM_COMPLET_USAGER column and set the following parameters

    Link text = > #NOM_COMPLET_USAGER #.
    Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
    Target = > URL
    URL = > #.

    I hope it helps

    Shunt

  • List of selection in the report area. Everything is not in order...

    I want to have one item in a report from the region. The selected item in the list of selection of is the 'master' for records in the region. It worked very well, but after the removal of another region on the same page that the selection list is now displayed under the State rather than on the top of the report. I can't find a way to get back on top.

    In fact I can't find any attribute that determines what comes first in this situation. It is bad practice to use an item in a report region?

    Hello René,.

    What is the view point of your region? Try the configuration in "body of Page Template (3.» (éléments ci-dessus contenu région) ".

    Kind regards
    Dirk

Maybe you are looking for