Is this a bug in the APEX or miss me something

Hello

I have a table chr10bug (id number, sample_text varchar2 (4000)).

I use the simple form with a textarea to fill sample_text.

I have a report based on the table above.
The report query is select id, sample_text from chr10bug. The tab Link's target as a URL. URL is javascript:void (0); and the link attribute has a very simple function
onmouseover = "Alter('#SAMPLE_TEXT#') '"

Now, my question is when a user hits enter in the instance text box.
User enters text * user Press Enter *.
User enters new text

In the reports of the onmouseover = "alert('#SAMPLE_TEXT#')" does not work for recording, where users supported on enter key. " (Actually none of the function that accepts the string works). If we do not press ENTER when you enter data in textarea... the above function works...


Example is here...
http://Apex.Oracle.com/pls/Apex/f?p=32555:1 (report)
http://Apex.Oracle.com/pls/Apex/f?p=32555:2 (form to enter data via the text box)



Is this a bug...


Kind regards
Shijesh

Published by: Apex_Noob on November 18, 2010 12:18

Hello

Add same Pentecost alias other columns and replace the chr 10 and 13 of this column.
Select report would be something

SELECT ID,
  SAMPLE_TEXT,
  REPLACE(REPLACE(SAMPLE_TEXT,chr13),chr10,' ') AS SAMPLE_TEXT_HIDDEN
FROM your_tbl

Use SAMPLE_TEXT_HIDDEN value on alert.

I agree that it is not best option

Kind regards
Jari

Published by: jarola November 18, 2010 22:47

Try also select

SELECT ID,
  SAMPLE_TEXT,
  REPLACE(REPLACE(SAMPLE_TEXT,chr13),chr10,' \n') AS SAMPLE_TEXT_HIDDEN
FROM your_tbl

Tags: Database

Similar Questions

  • is this a bug in the region... selector apex5 during import lose region selector

    I have a request to one of the pc... I have to export it and import it into another pc

    with the same workspace name

    But when I run the app I see the region selector donot work like in the first pc... go where I had imported from the

    program and also the database.

    Is this a bug. Or if someone has encountered the same situation...

    What do we do to fix this problem.

    What I've observed as is on the same page down that we do not have the status bar

    Edit page debug debug mode are present in the status bar. It is present in the main pc

    But after I moved the data to the second pc the page where the region selector is present I can't see this status bar. .

    This question is for the page where the region selector is present

    Oracle db 11g xe and apex verison 5, universal theme

    Information appreciated


    I found the solution...

    SELECT *.

    Of apex_release;

    5.0.0.00.31

    The main pc version was

    5.0.1.00.06

    2013.01.01

    Who should be creating the problem...

  • Is this a bug in the xy-Graph?

    Hi Forum,

    I came across this problem while working on this thread (http://forums.ni.com/ni/board/message?board.id=170&message.id=478607#M478607).

    I add values from 0 to 1 to a graph XY-like in the image below. (And only in this way!)

    When the user presses print a chart reference is managed by a subvi.

    In this sub - VI, there is another graph XY.

    Now, I copy all the important properties of the MainVI-XY-Graph to the Sub-VI-XY-graph.

    What is happening inside an another sub - VI, but it's not bad. The copy process may also occur within the first Subvi. Just a space saver.

    Then the Image of the Sub-VI-XY-Graph is printed via a method node.

    What I found is:

    Run the MainVI (Subvi SHOULD NOT BE OPENED)

    Change the scale of the x axis (for example, the scale of the x-axis of 0.0 to 0.1)

    Press on print

    The c:\pic.bmp file contains the chart, but the scale won't be 0-1 0.0 to 0.1!

    If you run with the Subvi is showing, it won't happen.

    And if you set the graphic content xy like this:the error does not occur.

    For those who follow me here:

    What's in my mind or IS THIS a BUG?

    Thanks for reading

    Christian

    Properties applied to hidden objects (or objects on the screens that are not open) are usually "noops" for performance reasons. If you think that I misread your description please post back.

    Ben

  • Is this OK to remove the apex folder after installation?

    Hello

    I found that the folder (unziped) apex it a very large file for me, about 500 m.

    Is it OK for me to delete that file after successfully installing the apex, apex refers to something this installation folder?

    I've never tried as well.

    Peter

    After Installation, you can safely remove the unzipped folder.

    Peter

  • IE8 a bug on the APEX 4.2 error page theme 25

    Hi all

    Did anyone else experienced a problem of formatting IE8 on the error page when you use the theme 25 APEX 4.2? If you use IE8, try to run http://apex.oracle.com/pls/apex/f?p=65097 (no authentication needed) and click the button. The result is an intentional error that appears on the error page - but the formatting applied to the 'OK' button is not successfully completed by the look of it.

    If you look at the raw HTML code, this is what is generated:
    <button onclick="javascript:window.history.go(-1)" 
            class="uButtonLarge uHotButton" 
            type="button">
        <span>OK</span>
    </a>
    Chrome, IE9 and FF seem to manage the balance in tags, but IE8 does not work. Has anyone similar known, or got a smart solution for it?

    Thanks in advance to all,
    Nick

    Hi Nick,

    Indeed, this seems to be a bug. We will have a glance.

    To work around the problem, you can fix it yourself. "' Go to shared-> models components->" without tab - no sidebar "-> Error Page template.

    Concerning
    Patrick
    -----------

  • Format for a number field in af:query problem. Is this a Bug of the ADF?

    Hi, OTN,.

    Requirement: Format DepartmentId in query Panel

    I created a view of criteria of the Employees (HR diagram) table. I have four items in the view criteria called EmployeeId, DepartmentId, Firstname, LastName and all elements including the posting as selectively requiredproperty. Attribute DepartmentId have Format Type of the property UI tips = number and Format = * 0000 * and Auto submit = true.
    But in the user interface, I'm not able to search the af:Query Panel. It works fine without setting the property UI tips Format and Type of format *.

    Step 1: Type 123 in the DepartmentId field
    Step 2: Click on the search button
    Error: Please provide a value for at least one of the specified areas
    Error message: http://www.freeimagehosting.net/24d51

    Please see the link for downloading the sample application below

    http://formatissue.googlecode.com/svn/trunk/FormatTest/FormatTest.zip
    http://formatissue.googlecode.com/svn/trunk/FormatTest (SVN version)

    Note:

    JDev Version: 11.1.1.5.0
    I use BC ADF and ADF Faces components

    All of the recommendations fully appreciated

    Thank you
    Jean-Marc Mithra

    Published by: Fanny Mithra November 23, 2011 16:51

    Published by: Fanny Mithra November 23, 2011 17:21

    Has filed a bug, bug # copied to the end of this thread - edited previous comment, the problem occurs even on release after 11.1.1.5.0.

    Published by: Jobinesh on December 2, 2011 10:38

  • During the closure of 2 windows (with several tabs), restore the system does restore properly the tabs in the window of the second. Is this a bug in the new update / all ideas to fix?

    I regularly use 2 windows with multiple tabs of each and session restore would work to bring them all back, but after this last updated the second window restores correctly, with the first non-visible tab on top (only in the menu drop-down) and now the button add a tab on the left (instead of right). Add a button to the tab is not really as far as concerns the other than it indicates other problems with the tabs in the 2nd window. No no not the 1st tab visible is frustrating, because I can't move or also easily navigate. Also, the tabs on the top of the 2nd window which are visible is no longer have the 'x' to close visible, except when this tab is selected. I'm assuming that it is a problem with the new version/update, since this is the first time I encountered the problem, and I closed and restored Firefox several times to make sure it was a recurring problem and not a one-time problem. Any ideas on how to fix would be welcome (except maybe cramming my tabs on a window or it suck XD).

    Thank you for your help. None of your suggested solutions worked, but having just updated to 10.0.2 seems to have solved the problem.

  • Is this a bug with the grouping sets?

    Version is the database of Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    SQL> with data as
      2  (select rownum r, 'X' x, 1 n from dual connect by rownum <= 10)
      3  select x
      4       , sum(n) s
      5       , (select sum(1) from dual where dummy = x) t
      6  from data
      7  group by grouping sets (x, ())
      8  /
    
    X          S          T
    - ---------- ----------
    X         10          1
              10
    SQL>  
    Shouldn't the superaggregate row have a 1 in the T column?

    Here's your QUERY with the addition of the GROUPING() function:

    SQL> WITH data AS
      2  (
      3     SELECT rownum r
      4          , 'X'    x
      5          , 1      n
      6     FROM   dual
      7     CONNECT BY rownum <= 10
      8  )
      9  SELECT GROUPING(x)
     10       , x
     11       , sum(n) s
     12       , (SELECT sum(1) FROM dual WHERE dummy = x) t
     13  FROM   data
     14  GROUP BY GROUPING SETS (x, ())
     15  ;
    
    GROUPING(X) X          S          T
    ----------- - ---------- ----------
              0 X         10          1
              1           10
    

    In this case, the value of X is zero because it is a subtotal line. If you look at this statement execution plan:

    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  gumphwvgumqc4, child number 0
    -------------------------------------
    WITH data AS (  SELECT rownum r       , 'X'    x       , 1      n  FROM
      dual  CONNECT BY rownum <= 10 ) SELECT /*+gather_plan_statistics*/ x
        , sum(n) s      , (SELECT sum(1) FROM dual WHERE dummy = x) t FROM
     data GROUP BY GROUPING SETS (x, ())
    
    Plan hash value: 1718326399
    
    -----------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    -----------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |      |      1 |        |      2 |00:00:00.01 |       0 |    |  |          |
    |   1 |  SORT AGGREGATE                 |      |      2 |      1 |      2 |00:00:00.01 |       4 |    |  |          |
    |*  2 |   TABLE ACCESS FULL             | DUAL |      2 |      1 |      1 |00:00:00.01 |       4 |    |  |          |
    |   3 |  SORT GROUP BY ROLLUP           |      |      1 |      1 |      2 |00:00:00.01 |       0 |  2048 |  2048 | 2048  (0)|
    |   4 |   VIEW                          |      |      1 |      1 |     10 |00:00:00.01 |       0 |    |  |          |
    |   5 |    COUNT                        |      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
    |   6 |     CONNECT BY WITHOUT FILTERING|      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
    |   7 |      FAST DUAL                  |      |      1 |      1 |      1 |00:00:00.01 |       0 |    |  |          |
    -----------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - filter("DUMMY"=:B1)
    

    The value of X is related to the subquery. If X is zero this returns no rows (I'm sure you already knew that :)). I would say it should although confusing behavior. You get the same results if you use CUBE or ROLLUP as well.

  • Cannot change PopUp LOV width and height in version 4.2.5.00.08. I change the values of 450 400 in the Popup list template values (Section of the window), but my function genList0_f07_$ _row (), retains the same settings. Is this a bug?

    Hello

    I use APEX 4.2.5.00.08 to my app.

    I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).

    I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.

    I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.

    I saw in the HTML source code that is the called function:

    <!--


    function genList0_f07_$ _row)
    {
    w = open ("wwv_flow_utilities.gen_popup_list" +)
    « ? p_filter ="+
    "& p_name = ' + escape ('f07') +.
    ' & p_element_index = ' + escape ('0') +.
    ' & p_elem_id = ' + escape ('f07_0000').
    ' & p_form_index = ' + escape ('0') +.
    ' & p_max_elements = ' + escape ("") +.
    ' & p_escape_html = ' + escape ("") +.
    ' & p_ok_to_query = ' + escape ('YES').
    ' & p_flow_id = ' + escape ('114') +.
    ' & p_page_id = ' + escape ('100201') +.
    ' & p_session_id = ' + escape ('16021544706004').
    ' & p_eval_value = ' + escape ("") +.
    ' & p_translation = ' + escape ('NO') +.
    ' & p_lov = ' +.
    ' & p_lov_checksum = ' +.
    ' & p_item_id = ' + escape('-683997768') +.
    ' & p_column_id = ' + escape ('25022622060292812'),
    "winLov,"
    "Scrollbars = 1, resizable = 1, width =400, height =450"); "
    If (w.opener is nothing)
    w.opener = auto;
    w.Focus ();
    }
    ->

    I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.

    The only solution I think is to replace this function, which is NOT ideal.

    Thank you

    Digital

    The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.

    Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:

    (function(){
      var _open = window.open;
      window.open = function(){
        if ( arguments[1] === "winLov" ) {
          arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700";
        };
        return _open.apply(window, arguments);
      };
    })();
    

    Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.

    During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.

    Edit:

    Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.

    Edit2:

    I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.

  • I think that there is a bug in the function RT Set CPU pool assignments (SMP)

    I'm trying to configure Symmetric multi Processing on a PXI controller which has 2 CPUs.  I check the number of processors using RT get number of processors (it gives me 2).  I have a constant matrix of wire to the RT Set CPU pool allocations function and create an array of 2 elements with system and reserved as the two values (to assign a single processor for my timed loop and the other for "everything else").

    It works, which means it seems to do the assignment.  But if I look at the assignments of Pool Set CPU error line, it returns-2231, "invalid CPU pool settings. Each pool must contain at least 1 CPU. »

    I do not know what that means, or why I am getting the error (I might just "ignore it", but if the error is 'real', which is not supposed to do).  The entrance to the Pool Set CPU assignment is described in the documentation as "an array of enumerations, with an entry for each CPU.  For me, this means 2 entries, which is what I have.

    Does anyone have a rational explanation of what's going on?  Is this a bug?  The documentation is the problem?  I have attached the front (showing the number of processors and the error output) and the (very simple) block diagram.

    Bob Schor

    Thank you, Bobby.

    I reread carefully the Note help "Specifies the Set of processors available for automatic load balancing".  Now that I know the 'right answer', I can interpret what is written as planned, but it's not easy!

    It is also curious that, although the previous example has generated error-2231, if we deleted the error (or wired never error line), function has, in fact, affect the system and Timed Structures pool to CPU0 (I have a few 'real' testing code that shows CPU0 with Structures Timed cycles).  Given that the function "does the right thing" even if you specify parameters of 'bad', perhaps it should be treated as a warning, not an error (or otherwise make a mistake of 'real' not assigned to a pool - it also wouldn't hurt to have a less obscure the Error Message, or more explicit "be sure to have at least a CPU explicitly assigned to each system and Timed Structures pools") , maybe in "BOLD".

    This code has no error:

    Hereby I give you credit for the 'Solution', but I'll mark my answer as the Solution because it has a photo to help readers who are intrigued by the question and our responses.

  • Apex_ir.get_report acting strange in the apex 5

    Hello world


    According to the guidelines of this thread, I've implemented the service recommended to manage the requirement.

    Dynamic action for "no filter selected" on IR

    This works well in the apex 4.2

    In 5 Apex, I get an error: ORA-06502: PL/SQL: digital error or value

    I spent hours trying to understand what is happening and the strange thing is that the function returns the correct value (as a number). When I remove the call to the function of my sql IR base then it starts to work, of course, does not have the functionality I'm looking for.

    Any ideas? I'm on 5.0.0.00.31

    Thank you!

    Hello

    had a look at the code of apex_ir.get_report, and due to some code changes necessary it will never work inside the international registration data source more. But I played a little and it seems that the following code does exactly what you want. But no guarantee that it works also in a future version of the APEX.

    create or replace function get_filter_count(p_application_id in NUMBER, p_page_id in NUMBER)
    return NUMBER
    AS
        l_region_id number;
        l_report_id number;
        l_count     number;
    BEGIN 
    
        select region_id into l_region_id
        from apex_application_page_regions
        where application_id = p_application_id
        and page_id = p_page_id
        and source_type = 'Interactive Report';
    
        l_report_id := apex_ir.get_last_viewed_report_id (
                           p_page_id   => p_page_id,
                           p_region_id => l_region_id );
    
        select count(*)
          into l_count
          from APEX_APPLICATION_PAGE_IR_RPT r,
               APEX_APPLICATION_PAGE_IR_COND f
         where r.base_report_id = l_report_id
           and r.session_id     = apex_application.g_instance
           and f.report_id      = r.report_id
           and f.condition_type in ( 'Search', 'Filter' );
    
        return l_count;
    END get_filter_count;
    

    Concerning

    Patrick

  • rating of the schema for the apex 5 workspace

    Hello

    I am using oracle 11g 2 unlocked 'Scott' scheme.

    After installing 5 APEX iam trying to map this diagram to create the apex workspace based on SCOTT his is not visible, so I did the query run below but once again his error - package does not exist in schema apex_050000.

    BEGIN

    APEX_050000.APEX_SITE_ADMIN_PRIVS. UNRESTRICT_SCHEMA (p_schema = > 'SCOTT');

    END;

    Error report-

    ORA-06550: line 3, column 1:

    PLS-00201: identifier 'APEX_050000.APEX_SITE_ADMIN_PRIVS' must be declared.

    ORA-06550: line 3, column 1:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    What could be the issue here


    Thank you

    Hi Gor_Mahia,

    Gor_Mahia wrote:

    I am using oracle 11g 2 unlocked 'Scott' scheme.

    After installing 5 APEX iam trying to map this diagram to create the apex workspace based on SCOTT his is not visible, so I did the query run below but once again his error - package does not exist in schema apex_050000.

    BEGIN

    APEX_050000.APEX_SITE_ADMIN_PRIVS. UNRESTRICT_SCHEMA (p_schema-online 'SCOTT');

    END;

    Error report-

    ORA-06550: line 3, column 1:

    PLS-00201: identifier 'APEX_050000.APEX_SITE_ADMIN_PRIVS' must be declared.

    ORA-06550: line 3, column 1:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    What could be the issue here

    First the prevent/forbid to use undocumented Oracle APEX APIs find out APEX_050000.APEX_SITE_ADMIN_PRIVS.

    Second, there are the restrictions of security on some Oracle APEX APIs in APEX 5.0.

    You can use APEX_INSTANCE_ADMIN. UNRESTRICT_SCHEMA and run this API since the schema having the appropriate privileges.

    Connect to the SYS user with SYSDBA privilege and run the following:

    ALTER SESSION SET CURRENT_SCHEMA = APEX_050000;
    
    BEGIN
        APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA(P_SCHEMA => 'SCOTT');
        COMMIT;
    END;
    /
    

    In addition, you use Runtime Environment?

    Kind regards

    Kiran

  • rewrite of request (MVIEW) in the APEX

    Hello

    I have my system settings to activate the rewrite of the query.

    If I use SQL * more my query then my SQL uses the query rewriting.

    I gave the QUERY REWRITE my schema user, but when I run the same SQL in SQL Workshop he does not rewrite of the query.

    Any ideas what I missed, to allow this function runs in the APEX?

    Concerning
    Adam

    Adam

    Here is an approach more, step by step, just to check the actual execution plan used. The plan to explain it in the SQL workshop, even if seen after that the query is run, shows planned, no real execution plan.

    First in sqlplus do the following:

    ALTER SESSION SET tracefile_identifier = "sql_plus_rewrite";

    ALTER SESSION SET EVENTS 10046 trace name context forever, level 1";

    -run your query;

    ALTER SESSION SET SQL_TRACE = FALSE;

    This will put a trace file in udump for the actual execution plan of statements (if you are not sure of the path enter: SHOW PARAMETER USER_DUMP_DEST in sqlplus).

    Then go into your apex page and add the: & ptrace = YES to the url and run your report.

    Once you have found the relevant trace files use "tkprof " to generate a trace file, for example tkprof database01_ora_8710.trc $HOME/tracefile.txt

    You can now compare the two to see what are the differences in the actual plans used. They can be the same that you've seen so far, but it will prove what is actually happening in the background. If you have not used traces before that you should probably steer clear of the 10053 trace at this time because it can take a lot of deciphering.

    Concerning

    Ben

  • Registration for the service is missing or damaged

    Hello

    I ran a scan with troubleshooting Windows Update tool and it came with this error: registration for the Service is missing or damaged. How can I fix it? Any help would be greatly appreicated!

    See you soon!

    Hello

    Usually, you get this error during the installation of the software updates. If Microsoft found some problems in the digital signature of the update is when you usually get this error.

    Take a look at this and see if this helps:

    How to set recording of corruption problems MSI software update:

    http://support.Microsoft.com/kb/971187/en-us

  • What is the purpose of Missing: 0 / Changed: 0 in the Info Palette

    I searched the manual online and all sources of adobe, but I can't find the answer to this:

    What is the purpose of Missing: 0 / Changed: 0 in the Info Palette

    It shows that if you have smart objects checked in the Options of the range of information.

    Thank you

    MT

    If you put a file in a PS document using the linked location option, the PS remains connected to the external file. That means that you can change the file outside the PS, and the changes will appear inside the PS it looks pretty cool, except when the PS loses track of the external file, what happens if you move or rename it. Info missing/modified means the related files.

Maybe you are looking for

  • How do you get a restored iPhone library playlists?

    I had to do a restore on my iPhone 6 s.  It downloaded all my photos, but I don't know how to recover all my music. I had 2 put playlists in place, but there is no music in one of the playlists on my phone.  Any guidance would be appreciated.  Thank

  • During the download, the download window Panel is not displayed

    Download Panel not always window, downloading updates, i.e., Adobe, etc. There are opinions a bit at the bottom of the screen that shows the downloads are complete, but then it disappears. I have to manually go into the download folder to find the up

  • How to stop a beep when the loop ends

    Hello I have a beep occurs inside a loop (which contains waves of data acquisition) to a certain threshold. I want the sound system for not introducing any delay in the execution of the loop. But I also have another beep when the loop ends. How to el

  • Re: R400/T400/T500/W500: display driver crashes "amdkmdap."

    I just installed Windows 7 yesterday and of course, he had problems with this video card. I have a T500, bought in March of this year. Everything worked fine after installing Windows 7. The problem was when I installed the video driver from Windows U

  • Reference Dell Webcam Central &amp; Windows 7 (Version Windows 7 of the Dell Webcam Central program)

    In other words, could someone please post a link to the Dell Webcam Central GENUINE for Windows 7 software, wherever it is on the website of drivers Dell? I do not mean some 3rd hokey, rate of Vista (or earlier) version of the program, but rather the