IR report with select list

Hi all

Please someone help me with the following request and the possible options. I use oracle 10g database and oracle apex 4.0 version.

I have a static list of selection with send. Therefore, based on the selection I fill the records in the interactive report. But the thing is the selection of the Interior list item, I need an option where users want to see the values 1 and 2 data. I mean both.

For example: if my select values of ename.

BLAKE

CLARK

BLAKE & CLARK

Thus, when users select value blake; Blake registration must be entered in the report.

When users select value clark, clark registration must be entered in the report.

But when the user selects the value blake & clark; blake and clarks record must be empty. I tried to set up a demo application in my personal workspace. Please take a look. Here are my coordinates of the workspace.

workspace: raghu_workspace

username: orton607

password: orton607

Application 81621 and Pg # 4.

Thank you

Orton

Hello

I have change your report sample query to

select *
from emp
where instr(':' || :P4_ENAME || ':', ':' || ename || ':') > 0

And P4_ENAME LOV

STATIC2:BLAKE & CLARK;BLAKE:CLARK,BLAKE;BLAKE,CLARK;CLARK

Kind regards

Jari

Tags: Database

Similar Questions

  • Help with selection lists in the classic report

    Hello

    I work with APEX 4.1. Oracle 11.

    I have a simple and classic report with 4 columns (username, role, reading, updating). The columns of the reading and the update are select list with values of 'Yes', 'no '.

    Report looks like this:

    User role name read the update
    JSmith Admin Yes Yes
    LJones Dev yes no


    My requirement is that when the user selects Yes the update select list, the value of the associated column in the reading should change Yes as well for this particular user name. Change must occur after Yes is selected in the list select update.

    Im not very strong with javascript, but for testing purposes I applied: onchange = "alert ('hi'); "in the update column. When I make a change to the update select list, the alert returns to its position.

    Can anyone suggest how I can implement the change to the value of associated reading of Yes if the selected update value is Yes, for this particular line.

    Thank you
    Laura

    Here is an example of work for you, copy and change the javascript that you need.

    To find names of columns to the select list of apex > address view the source of your page report and use them accordingly in the JS

    http://Apex.Oracle.com/pls/Apex/f?p=46417:11

    Test/test connection

    function test(pThis) {
     //get the curren row index on change
     var currIndex = $('select[name="'+pThis.name+'"]').index($x(pThis.id));
     // check current items value (return value of lov)
     if (pThis.value=='Yes') {
      // if true change the value of column f01 at same row index
      $('select[name="f01"]')[currIndex].value = 'Yes';
     }
     else {
       //do something else
      }
    }
    
    //In the element attributes of update column add
    onchange="javascript:test(this);"
    
  • Z510 touchpad not working not with select lists or menus

    I have a windows Z510 10.

    When I try to use any application wit just the touchpad and open a list item or a menu select and try to scroll down, as I scroll tht disappears. If I want to scroll a list I have to use the scroll keys or connect a mouse. This happens with thunderbird, chrome and firefox. He arrived not with windows 8.1.

    Thank you for anysgestions.

    Neal

    .

    I think that this has been resolved. I updated the driver toouchpad to the version of windows 10 and it seems to work.

  • Dynamic report with LOV SelectLists

    I like to create a dynamic report with Select-Lists(LOV based).

    My Source (according to PL/SQL returning SQL query) region:
    declare
      q varchar2(4000);
    begin
     
      q := 'SELECT R_ID, R_TSO_NO';
    
      For i in (SELECT * FROM USER_TAB_COLUMNS
      WHERE table_name = 'TAB_REPORTS'
      AND column_name like '2%')
      loop
        q := q || ', ';
        q := q || 'HTMLDB_ITEM.SELECT_LIST(1, ';
        q := q || i.column_name;
        q := q || ', ';
        q := q || chr(39);
        q := q || 'LOV_QER';
        q := q || chr(39);
        q := q || ', null, ';
        q := q || chr(39);
        q := q || 'Y';
        q := q || chr(39);
        q := q || ') "';
        q := q || i.column_name;
        q := q || '"';
      end loop;
       
      q := q || ' FROM TAB_REPORTS ';
    
      return q;
    
    END;
    This is the return value, which seems to be OK:
    SELECT R_ID, 
    R_TSO_NO, 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_05, 'LOV_QER', null, 'Y') "2008_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_03, 'LOV_QER', null, 'Y') "2008_03", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_08, 'LOV_QER', null, 'Y') "2008_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_11, 'LOV_QER', null, 'Y') "2008_11", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_02, 'LOV_QER', null, 'Y') "2009_02", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_05, 'LOV_QER', null, 'Y') "2009_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_08, 'LOV_QER', null, 'Y') "2009_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_11, 'LOV_QER', null, 'Y') "2009_11", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_02, 'LOV_QER', null, 'Y') "2010_02", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_05, 'LOV_QER', null, 'Y') "2010_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_08, 'LOV_QER', null, 'Y') "2010_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_11, 'LOV_QER', null, 'Y') "2010_11" 
    FROM TAB_REPORTS
    And this is my error msg, I do not understand:

    * Failed to parse the SQL query:
    ORA-00911: invalid character *.

    Where is this invalid character, please?

    THX 4 help,
    Chris

    Hello

    As part of HTMLDB_ITEM. This is a parameter of function - it should be a tank. In addition, if you use a recent version of the APEX, you should use the synonym APEX_ITEM reference HTMLDB_ITEM.

    Here is the statement of HTMLDB_ITEM parameter. SELECT_LIST...

        p_idx         in number,
        p_value       in varchar2 default null,
        p_list_values in varchar2 default null,
        p_attributes  in varchar2 default null,
        p_show_null   in varchar2 default 'NO',
        p_null_value  in varchar2 default '%null%',
        p_null_text   in varchar2 default '%',
        p_item_id     in varchar2 default null,
        p_item_label  in varchar2 default null,
        p_show_extra  in varchar2 default 'YES'
    

    You will see that it is a VARCHAR2 parameter.

    See you soon

    Ben

  • Problems of selection list static apex

    I have a selection list (P147_EVENT_TYPE) with only two values, defined as:

    Static: Hurricane; HURRICANE, River; RIVER

    The selection list filter a report. The user selects 'River', they see all the events of the River in the report. The user selects "Hurricane", they see all the events of the River in the report.

    I wanted to make changes so that there would be a possibility to see "All events". Inside the element, so I changed:

    Display nulls-> Yes

    Null value display-> all Types of events

    Return NULL-> white left value

    The query of the report itself along the lines of:

    SELECT name, type

    Areas

    where ((P147_EVENT_TYPE = "Hurricane" or P147_EVENT_TYPE = "River")

    or P147_EVENT_TYPE is NULL)

    Normally coming to the page on the report, the selection list should display 'All Types of events' and the report is expected to be Hurricane events and river. However, when I get the report selection list (P147_EVENT_TYPE) is displayed for 'River '. It has three choices in there (River, hurricane and all Types of events), however, if I select "All Types of events" in the selection list, it is just for the river. Is it possible to change this? Can I not use a static selection list with a default value type? Any help on that would be great. Thanks in advance for your help.

    It looks like somehow the default value is used for 'River '. I'm trying my earlier suggestion and see what's the result. It must be fast to try it. You can also set up on apex.oracle.com so we can fix it.

  • Change a selection list using javascript

    Hi all

    yesterday, I had a doubt using apex_item.checkbox and how to modify them using javascript:
    Re: Passing a checkbox as a parameter to a javascript function

    Today, I am facing a similar problem, but with select lists. Here it goes. I have a report with apex_items, like this:
    select 
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM@'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_v
    The javascript code is as follows:
    <script type="text/javascript">
    function setItems(cb,estat){
      elem = $x(cb);
      alert(elem.value);
      $x(cb).checked = true;
    
      elem2 = $x(estat);
      alert(elem2.value);  
    }
    </script>
    The idea is that whenever the g_f02 (a selection list) element changes, call the JS function with two parameters: a checkbox (g_f01) and another select list (g_f03). The function should change the items in a defined values. The box changes ok thanks for the help I had yesterday, but I can't work with the third element (list g_f03). When I try to show the value, it says no "defined."

    How can I see the real value of the LOV selection list and change to 1, for example?
    Thank you very much, any help will be appreciated!

    Published by: Elena.mtc on 19-May-2011 08:11

    Hello

    Do you have the typo in the query?
    Should it be

    select
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM#'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_v
    

    And JavaScript

    
    

    Kind regards
    Jari

  • 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'
    )
    
  • change the results of the report with the selection list using dynamic action

    This is one of those situations where if I could understand the appropriate search terms to use, someone else must have asked this question in the past.

    I have a report with a SQL query with a condition based on a list of selection on the same page. So I have a list of selection -: P177_FISCAL_YEAR

    My request for my report is:

    Select md_id, display_name, description
    of media_tbl
    where fiscal_year =: P177_FISCAL_YEAR

    When a person makes a selection on the selection list (: P177_FISCAL_YEAR), I would like to report up-to-date without having to submit the page. I was hoping that I could do something like this using a dynamic action but have not found a way to do it.

    Thanks in advance!

    John

    Create dynamic Action:

    When
    Event: change
    Selection type: product (s)
    Article (s): P177_FISCAL_YEAR
    Condition: - unconditionally.

    Real Actions (add 2 real actions)
    -the first is to load the value in session state so that the report can see.
    Sequence: 5
    Action: execute the PL/SQL Code
    Code PL/SQL: null;
    Items to submit page: P177_FISCAL_YEAR

    -the second to refresh the report
    Sequence: 10
    Action: Discount
    Selection type: region
    Region:

  • 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

  • By the way Select list value to another page via report link

    Hello

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    1013248 wrote:

    Please update your forum profile with a real handle instead of '1013248 '.

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    Use the exact static text substitution method to reference the value of the element. This requires an end point ('.) ») :

    &SLI.
    
  • Apex 4.2.1 Mobile Page with several Branches of incorrect selection list

    I have a mobile page with only two values of the previous page display and a selection list allows multiple selections. Multiple selections and save your work very well, but the offshoot after treatment becomes crazy. It jumps around a few times and at least two pages to the home page. It works best with just a branch reported to stay on the page with the list of multiple selection, but the display success message and disappears quickly and with longer lists it branches sometimes still an old/outdated page with old values or the home page. Is this a known issue with APEX 4.2.1?

    Hello

    Indeed, it seems that the multi selection popup corrupts somehow the call stack mobile jQuery and when you click 'Save selection' he will try to restore the current URL, after he performed the AJAX call to send the page.

    As an immediate solution, you can enter

    $("#wwvFlowForm", apex.gPageContext$).attr("data-ajax", false);
    

    in the run when the Page loads on page 4 do not use an AJAX call for the 'Save selection '. Avoiding the trigger AJAX call a full page refresh which will also clean the call stack mobile jQuery.

    Will consider more far one let you only know where to look.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to refresh the report region change which column of report selection list

    Hello
    I worked with apex 4.2 and I create a classic report with list (named loved) select a column in the list change in report, update the table with the new value via JavaScript (change) call and woke up very well, and I change the color of the line was updated to make it different from the other lines now I want to update to the report after doing update without submitting the page to show the new color of line update.
    I called javascript:apex.submit() in the update function, but

    My Question
    1. How do I refresh the report after change report column list without sending page
    2-can we enter column name selection list report to submit the Page to refresh the report area


    Thank you
    Ahmed

    See my answer above!

    Here's what I did:

    • Created two hidden page items

    • Created a dynamic action on the page with three real actions. (1) set the item values page. (2) to execute code to update the plsql table. (3) update the region report

    Thank you
    Vikram

  • Weird problem with the width of the selection list

    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    Just to confirm, the problem is with the width of selection tabular list.

    Thank you
    Ryan

    ryansun wrote:
    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    This seems odd. Can you reproduce this on apex.oracle.com? What browser do you use?

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    All functionality of another column using the column Standard report basically, means the "CSS" Style property is not applied (see, for example: {: identifier of the thread = 1001577}), then the attributes of the element, link attributes etc. should be used.

    Tabular controls, to use the standard approach of HTML attributes. Come in

    style="display: block; width: 200px;"
    

    in the property of the attributes of the element.

  • Refresh the report based on the select list item

    Hello world

    Someone has the answer to refresh a report based on an element that I select in a select list? I currently have the item in the list of selection and a report under him I wrote a sql that fills with data. If I choose an article in my select list, I want to change the data in my report. What I have to write separate sqls for each item to be fired or write some type of process. Can someone help me?

    Thank you
    Ryan

    Write directly in the SQL report. Your select list item will be the variable in the SQL.

  • When selecting a "select list with redirect', all variables are losing value

    I have a form where a field (: P38_CUSTOMER_ID) receives its value from the parent report and it appears as: "display text (saves the State)).".

    I have 2 fields from selection list. The first (: P38_COUNTRY) is shown in the form "select list with redirect.
    As soon as I select the value (name of the country) in this list box, I lose the value: P38_CUSTOMER_ID.

    An idea on what I need to do to ' P38_CUSTOMER_ID to avoid losing its value?

    Thanks in advance.

    You are welcome. There are many options to choose from ;-)

    Be sure to note the answers as people only get points if you do.

    Thank you
    Dimitri

Maybe you are looking for

  • Audit in two stages on the same device? !

    After upgrading to Mac OS Sierra the next thing happened: When I tried to sign in the community Apple with my Macbook Pro, I had a request of two steps and was invited to enter the 6 digit code that 'someone was trying to use my Apple ID to a place n

  • How can I know what Adobe programs I need on my computer?

    My Adobe Flash Player keeps crashing. I just downloaded Flash Player Plugin from 14 and noticed that I have 5 other Adobe programs on my computer. How can I know which ones I need to keep? Those I have is: Acrobat.com installed 7/03/2010; Flash Playe

  • Slate 7 not recognized by Windows 7 laptop?

    Hello I have a new 7 2801 slate. When I connect it to my notbook with the USB cable I tries to install disks without success. Looking at the harwaremanager it shows other hardware not installed "HP" readers. Updating the drivers is alos does not. Can

  • How do I move an image or an animated gif

    Hello Can someone tell me if it is possible to move a picture or a Gif animated around the screen. See attached example Thank you Chris

  • CAN SOMEONE AT ACER SOLVE WINDOWS DRIVER 10 QUESTIONS! R240HY

    I got 3 words and a slew of messages came up to... these 3 words: WINDOWS 10 DRIVERS Yes, monitors use the drivers too! (Please teach your something tech Department) and in August 2015, Acer has actually put a link to drivers for R240HY monitor for p