Values of the cascading select list is not displayed because the ampersand & in LOV

Hello
I use the LOV example Denes Kubicek http://htmldb.oracle.com/pls/otn/f?p=31517:119 cascading

and I have a problem when my ename has an & in the name. In this case no values appear in the select list cascading. The application process, I use looks like this:

< pre >
BEGIN
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< select >");
HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

FOR c IN (SELECT ename, empno
WCP
WHERE mgr =: cascading_selectlist_item_2)
LOOP
HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
END LOOP;

HTP.prn ("< / select >");
END;
< / pre >

What should I change to make it work?
Jacob

Jacob,

What happens if you change your application process on like this:

DECLARE
   v_ename   VARCHAR2 (200);
BEGIN
   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 ('');
END;

Do you still have the same result?

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Cascading selection lists - does not

    I'm trying to implement the Ajax solution cascading select list of Denes Kubicek.
    [http://apex.oracle.com/pls/otn/f?p=31517:119]
    But something is wrong with my configuration.

    I created all the pieces, but for some reason it is like the
    Attribute of the HTML form element defined on my point P3_emp_dept is not called.
    OnChange = "get_select_list_xml1 (This, 'P3_emp_name');

    The two elements of P3_emp_dept and P3_emp_name selection list are defined as "Select generic list".
    For the Source, I tried the two "Always" and the "only when... sucks.
    Source type is defined as the "column of the database" P3_emp_dept and P3_emp_name respectively.

    When you fill out a blank page after choosing the P3_emp_dept, the P3_emp_name
    selection list is empty.

    When you change an existing record, if a different value is chosen for P3_emp_dept,
    the selection list for P3_emp_name still shows in the former Department employees.

    Any ideas?
    Thank you, Sue

    Sue:

    The second parameter to the function 'get_select_list_xml1' must be the name of the selection list that displays the names of the employees.
    Modify the call to this function for the 'Exchange' event handler declared to the selection list.

    onchange="get_select_list_xml1(this,'P3_EMP_NAME');"
    

    CITY

  • cascading select list

    Hello

    I'm currently implementing Dene cascading select list.

    I have a form on a table with the report.
    When click on the link Edit on the report, then I have my form.
    Here the cascading select list works fine.

    But when I enter the form by clicking on the button create report to a new insertion.
    the cascading select list is not fine francs.
    No matter what I chose in my first list slect, there is no value in the list of the second selection.

    This is how works the cascading list?
    Where did I go wrong somewhere?

    Thank you.

    Hello

    OK - I found the problem, and it wasn't something you could have spotted the page!

    The application process, there is a space at the end of the process name. Basically, this means that the Ajax call could not find that the process was then null.

    Try it now

    Andy

  • In the form of cascading select lists - what am I doing wrong?

    Friends,

    Hope you can help, I'm trying to figure out how to build a tabular presentation that contains the cascading select list.

    What I do is to reproduce the excellent example Denes Kubicek has developed here: http://apex.oracle.com/pls/otn/f?p=31517:176 in my own work space.

    While I can see it working on the environment hosted by Denis, I can't make it work in my area. I must be missing a step (or several!) After trying in vain to operate for several hours, now I'm hoping you can help.

    That's what I did:

    Created a sql report using the exact same sql provided.

    Created a process page (rendered page side) using the same code.

    Added javascript code to my html page header section

    Created a process of application, called tab_casc_sel_list which runs on request

    When I run the following page occurs:

    The select deptno list shows 'Research' while the employee select shows 'Ford '.

    However, when I change the selection dept list I get the following results:

    Use Internet Explorer: The list of selection used now becomes empty and shows no entries

    The use of Firefox: the employee entries are still posted, but they are not restricted by Department.

    What did I miss?

    Thanks in advance for any help you can provide.

    Ian

    Fixed.

    'Re missing you the application TAB_CASCADING_ITEM element

    See you soon

    Ben

  • Selection lists does not not on Android FF but work on default browser

    Hi, hoping for help

    Building an online game site that I'd like to work on the mobile and the PC without different versions.

    I find that the selection lists do not open on FF Android or iOS FF-mobile, even if they work fine in the default browser Android and chrome. Could someone help me debug this, or is this a problem in FF?

    Page URL: http://www.HoldingTheBall.com/clubroom.php?logon=1
    To test: load the URL, click on the image of the Guernsey on the middle right, and then try to use one of the selection lists.
    Features of the page: HTML4, CSS, JS, Jquery, Jquery ui, Jquery-touch-punch (by drag and drop on mobile)

    Any suggestions would be greatly appreciated!

    There is no such thing as Firefox iOS. There is Firefox at home, who would have bookmarks Firefox Sync and the history of your iOS device. All the browsers on iOS are based on the iOS stock Safari Webkit.

    That being said on Firefox for Android that I see the behavior you mention. Is it still a question if you disable the div dragging?

  • last name in my contact list is not displayed. It's as if the list is long and will not display the last of them.

    Last name in my contact list is not displayed. It's as if the list is long and will not display the last of them. Is there anyway to fix this?

    Hello

    1. are you referring to e-mail contacts or Windows contacts?
    2. who is your provider of mail service?
    3. using any e-mail client?
    4. don't you make changes to the computer before the show?

    Suggestions for a question on the help forums
    http://support.Microsoft.com/kb/555375

    The information is not sufficient to answer your question. Please provide us with more information to answer your question better.

  • My selection tool does not display the transformation box?

    I don't know what I did but my selection tool does not display the box of the scale (free transform). I have to continue to use the shortcut of 'e' and it's really annoying advice on how to fix it?

    Thank you!!

    I figured it shift + command + b

    thaks fixes everything!

  • can we write the value of a data element that is not displayed in a form?

    Hello

    I work with Oracle 9i forms developer. While the practice sessions, I'm for any writing a value to a data element that is not displayed in the forms. can I do it or not? for example: to insert the value into the field the orders of the form module (orders.fmb) order_information table order_total. This table can be found in the oe schema.
    I think you understood my question.
    Please help me.

    Yes. It is because the article in this form is always calculated and not extracted from the base. To write to the database, put an extra point for the total in your block and CONTROL integration prior and PRE-UPDATE-trigger, assign the value of the element automatically calculated in the control block for the item in the CONTROL unit, as

    :ORDER.TOTAL:=:CONTROL.TOTAL;
    
  • NVL selection list does not not on the place where clause in query

    Ok. APEX 4.2...

    Im having problems with my selection lists and NULL values... I see that it has come time and time again...

    I have a tabular presentation, with a query based on a selection list.  The selection list has the ability to '- Show All -'... The value of the selection list is a number, and the display is words...  (for reference the LOV query is: select status, batch from pmt_stat_lookup by 1)

    Initially I had problems with null and invalid numbers like ' display Null = 'Yes' and the problem of null % ', so have used the code in this blog to remove the NULL values... Display Null = & amp; #34; Yes & amp; #34; and the problem of null % | Inside Oracle APEX by Patrick Wolf

    Then in the application of my report, I have a where clause clause that checks the value of the selection list... WHERE batch = nvl(:P11_STATUS_SELECT,STATUS_ID)

    everything works almost fine, and I can choose a status, or I choose - see the All-, but the query will not include the lines where the State is null.

    (I also see that maybe I should be, use the case statement instead of the NVL on where clause, but not sure of the syntax. In addition, NVL was used somewhat in the different reports in the application...)

    For reference, the code of the old blog that I as a process page is:

    BEGIN

    FOR rItem IN

    (SELECT NOM_ELEMENT

    OF APEX_APPLICATION_PAGE_ITEMS

    WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)

    AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)

    AND LOV_DISPLAY_NULL = 'Yes'

    AND LOV_DEFINITION IS NOT NULL

    -change here

    AND LOV_NULL_VALUE = '% null | '%'

    )

    LOOP

    IF V (rItem.ITEM_NAME) = "% null | '%'

    THEN

    Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);

    END IF;

    END LOOP;

    END;

    Thank you very much

    Richard

    Richard,

    Perhaps this example can help you solve your problem.

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

    Jeff

  • arrow of the selection list does not work

    Run version 4.2 against database 11g.

    On one of my pages none of my page selection point lists are working properly.  When clicking on the arrow at the end of the selection in the list list does not open, but if you click within the field where the text is displayed, it will open.  I tried IE and Firefox and the result is the same on both browsers.  If anyone has seen this behavior before?

    After putting a few more space between list boxes, the problem solved.  I guess even if visually there is space between them, it was somehow a kind of overlap.

  • Possible a bug of cascading select list

    Hi people,

    I created a dynamic action "onChange" in a page called "P5_COD" element Always of value of "P5_COD" changes, it runs the PL/SQL code above to fill the page elements with data from database:

    Select

    PERIOD,

    BEGIN_DATE,

    END_DATE

    in

    : P5_PERIOD,.

    : P5_BEGIN_DATE,.

    : P5_FINISH_DATE

    Of...

    BEGIN_DATE and end_date are page elements "selection list. They are "Cascading LOV Parent article (s)" of the PERIOD (select list too).

    The problem is: 'onChange' dynamic action doesn´t work to load the elements of page BEGIN_DATE and end_date.  BEGIN_DATE and end_date loading default data, not the data of database.

    Any idea?

    Thank you

    Bsalvador

    Bsalvador

    First of all the code you listed does not change the value of objects client only in session state-side. In other words only on the server.

    Use a dynamic action of type 'Set value' to change the value on the client side.

    Then change the value of P5_PERIOD will trigger the change of the P5_BEGIN_DATE LOV: P5_FINISH_DATE and the values of these elements are initialized to null (client side only).

    In a similar challenge to define the value of the mother and child at the same time, I'm done setting the value of the child element in a hidden item. And on the afterrefresh event of the child, the value is set to the child.

    See this demo , I realized for the challenge.

    Nicolette

  • tabular cascading selection lists

    APEX - 4.1.0.00.32
    Version of DB - 10 g
    Web - OHS server architecture
    Browser - IE8
    Theme - 9

    Hello

    I have a tabular layout with two selection lists, I would like to select a value from the first list that will help determine what appears in the second list. The name of the column in the first select list is 'DL_DETAIL_PROJECT_ID', so I wish I could have a charly second selection list that looks like

    Select d, r id desc
    < table >
    where < other id of the table > = DL_DETAIL_PROJECT_ID

    but I don't know how to get the value of DL_DETAIL_PROJECT_ID?

    Also the list of regular article values of the shows an option for cascading lists, but the form of tables, list of the values section is not, is it possible to have cascading lists in a record on a tabular presentation?

    Thanks in advance for any help.

    Yes you can. See the links provided:

    http://Apex.Oracle.com/pls/Apex/f?p=39514:1:
    http://www.inside-Oracle-apex.com/generic-solution-for-cascading-select-listslovs/
    http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117

  • Cascading select lists - unwanted present

    I have 2 select page elements in cascade

    1 P1_PARENT - Null value allowed.
    2 P1_CHILD - Null value allowed. Submit the page when changed.

    Page renders with both showing the value null. Change #1, #2 refreshes and shows a value zero, choose it and submits the page.

    When this was done the old-fashioned way (in 3.x) with the onchange event handler in the attribute of the form element, and custom code to replace the list of selection options, it worked fine as indicated. When this has been improved in 4.0 to use the new feature of point in cascade LOV Parent, what happens is that #1 change refreshes the list to the point #2, but it also submits the (unwanted) page.

    I guess that's because when the point #1 refreshes the LOV for article #2, it triggers the onchange event and submits the page.

    IMHO, this is not the correct behavior, the page should be submitted only when the user explicitly changes the value at the point #2.

    Any idea on how to change this behavior? Thank you

    Sorry, I wasn't clear enough, I mean "the State when ' (the browser based on).

  • 3 cascading selection lists?

    I've implemented successfully the selection in cascade AJAX on the Dene site list, but I need to add a 3rd select list and I have not been successful with that! I have reproduced all the steps (creates a new application process, a new element of the request, duplicate javascript functions using different names throughout), but still miss me something. My 3rd selection list fills no from the LOV in my second selection list. Is it still possible? The value of pFlowID has something to do with it? I tested my application process and my LOV in the window query SQL command and both were working / returned data. Any ideas?
    Thank you!
    T

    Hello

    NP - let me know if you need something more.

    Where you need it, here's the thread leading to this app: lov cascading - 3 lovs, but if 2nd is null, 3rd does not.

    Andy

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

Maybe you are looking for

  • address problem complete

    I don't know if I'm looking at the right place, but maybe someone can help with information. Previous Verizon DSL, now Frontier DSL for about 2 months (they bought Verizon). Until this morning, by entering the url of all that was needed was enough in

  • Attachments in iMessage on Mac does not download

    Hello. Two days ago, he has started. Now I can't receive attachments in imessage on mac. On iPhone, everything is ok I read a few topics. I find: ~/Library/Messages In the Finder, select Go ▹ go to the folder... from the menu bar and paste it into th

  • Satellite 4070cds; Where to find the BIOS update

    OK so I have an old old Toshiba Satellite 4070cds, I know its old, but I feel for the poor and have done everything I can to make it work again and now it's that I can't for the life of find me a BIOS update. I searched this site and downloaded many

  • Serial number and stolen Mac

    The Macbook Aluminium 2008 serial number appears on the surface of the computer? And I would also like to know, is it possible to find the Mac if it is in offline mode? I got the stolen Mac and try to find solutions :/ Thank you in advance.

  • 490 1 Workstation Z230 prodesk: BartPE freezes on Prodesk 490 G1 and Z230 Workstation

    Hi all My Prodesk 1 490 and Z230 Workstation cannot boot from BartPE Boot CD. It freezes when the Windows XP Logo appears. I tried to disable booting uefi, secure boot and stuff like that. Can someone tell me what is the problem here?