How to escape the quotation mark?

I need to move a column of link from page 1 to page 2. I found a bug in my program. When there is quotation mark in the string, the corresponding query cannot be displayed on page 2. However, by using the same query, I get the correct result in the SQL * more console. I don't know why. Because of the quotation mark? Thank you!

Hello

OK - I've updated my test page to include the date in the filter - [http://apex.oracle.com/pls/otn/f?p=267:126]. I added a new page element called P126_DATE for the date filter

My SQL for the IR is now:

SELECT
ENAME BLAH,
EMPNO,
ENAME,
HIREDATE
FROM EMP
WHERE HIREDATE IS NOT NULL

The URL of the link is now:

#" onclick="javascript:doLink(this, '#HIREDATE#');

My javascript function is now:

function doLink(o, d)
{
 $x('P126_TEXT').value = o.innerHTML;
 $x('P126_DATE').value = d;
 doSubmit();
}

And SQL of the standard report is now:

SELECT EMPNO, ENAME
FROM EMP
WHERE ENAME = :P126_TEXT
AND TO_CHAR(HIREDATE,'DD/MM/YYYY') = :P126_DATE

Note that the column HIREDATE on the IR has been formatted using JJ/MM/AAAA

Everything seems to work very well.

The only time I haven't had "no data" was when I had included all the records in the EMP and clicked on a link for a record that had no value of hiring date. Otherwise, clicking on any link meets the standard report ok. Have you tried using TO_CHAR or TO_DATE to ensure that both sides of the WHERE statement using the same type of data?

Andy

Tags: Database

Similar Questions

  • GREP: How to escape the question mark?

    I need to deal with all points of question marks in my text in the world. Can you help me to recognize by GREP? Thank you!

    \?

  • How to escape the quotes when I run the .sql Unix script

    Hello

    I have a ddl script files...
    to keep specific information from the environment, I use a placeholder $variable (for example, the names of patterns etc.)

    and creating a document and say the dba this export variable = value.

    Use of variable for the following cases?

    CREATE DATABASE LINK "abc.ge.com".
    CONNECT TO $SRC_SCHEMA_NAME
    IDENTIFIED BY $SRC_SCHEMA_PWD
    With the HELP of 'abc.ge.com '.


    I want to create a varaiable with value abc.ge.com How can I do this from the command have single and double quotes...

    Thanks and greetings
    REDA

    You don't need quotation marks in your CREATE DATABASE LINK statement. Just leave and forget any of this escape.

    Are you sure you must export all these variables, i.e. will they be mentioned in sublayers without be passed as parameters?

  • How to escape the quotes and commas when you use the command of the coil

    I am creating a file .cvs with data in my database. I call the function of coil and below select stmt

    ' Select ' ' ' | ID | '","' || name | '","' || Description | '","'

    I want everything to be separated by quotes and commas. Description data can have quotes and commas so how I get away from them in my queue code so that when I use SQL Loader data will get entries in the database correctly.

    Thank you!

    Hello

    If the field is closed, so there is nothing else you need to do for the column separator (en).

    To use the character encompassing ("") in the field, double it, the same way you use two single quotation marks to signify a single_quote into a SQL string literal:
    {code}
    ' SELECT ' ' ' | ID
    ||     '","'     || name
    ||     '","'     || REPLACE (description
    , '"'
    , '""'
    )
    ||     '"'
    FROM table_x;

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • Remove the quotation marks the names of channel

    First of all - I'm new to tiara and VB so please forgive my ignorance!

    I have a large data set containing several groups with the same names (or almost) in each group. For reasons not worth going in channel names have quoation marks around them, while others do not.

    I'm trying to remove the quoation marks to standardize all channel names in groups, to do hoped to browse channels renaming groups as the case

    I think it should work: -.

    For

    i = 1 to GROUPCOUNT

    Call GROUPDEFAULTSET (i)

    CN (""ChannelName"" "") = "ChannelName".

    Next

    ChannelName, where is the name that I am trying to replace, but I get the following error:-expected ')'

    Can someone point out where I'm wrong?

    (Note: I also tried to use triple quotes ('' ' ChannelName' ' "), but I get this error instead - CN (" "ChannelName" "" "): = ChannelName Close support" ") ("expected for the index fields)

    Bonus points - how to get the loop jump over all groups where the channel that I'm already referencing isn't quotes in it, rather than giving me an error that the channel can not be found?

    Thank you very much in advance for any help!

    Dan

    Hello Dan,.

    You use the old syntax of script to manipulate the data. Please find below the current way to replace the double quotes with a underscote:

    Dim iLoopG, iLoopC, oGroup, oGroupChns m²

    m² = Chr (34) "character".

    Set oGroup = Data.Root.ChannelGroups

    iLoopG = 1 to oGroup.Count
    Set oGroupChns = oGroup (iLoopG). Channels
    iLoopC = 1 to oGroupChns.Count
    ' msgbox oGroupChns (iLoopC). Name
    oGroupChns (iLoopC). Name = Replace (oGroupChns (iLoopC). Name, m², '_')
    next
    next

    Greetings

    Walter

  • Extra space after the quotation mark open

    I write fiction. I need to be able to put the dialogue in quotation marks. My problem is that when I ask speech recognition for 'Open-quote' and then start the dialogue, I get an extra space. Like this: "come with me, Jim.

    Does anyone have a solution?

    Hi DennisFoley

    My apologies for not getting back to you sooner, actually I'm surprised that no one else has offered suggestions.

    I've personally never used speech recognition, so I have a question.  I know it's maybe not the right way to "solve" the problem, but you can do it?  When you say quote open or open Double Quote, can you tell us immediately Backspace?

    If I find any useful information, I'll post it here.

    Thank you

    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I want to use the quotation marks in the search box

    I want to use quotation marks in the search box.

    So let's see, you try to find all the photos with the exact keyword Fotograaf: My Name

    Go to the keyword list Panel, point your mouse on the desired keyword, an arrow appears to the right, click on this button.

  • How to escape the quotes in image.metadata.title

    Was working on a web template that uses image.metadata.title and image.metadata.description but when my user place a quote "or an apostrophe I get an error in the processing of the page html or xml I'm generation. What I would like something isg as php htmlspecialchars. I tried the following:

    String.format('%Q',image. Metadata.title) who escapes from the "------" and the apostrophe with------' but I will get in my xml

    < image title = "She said \"this isn\ ' t work------"" > "

    "Unfortunately the------" isn't escape the quote in xml, I would like to have

    < image title = "says she & quot; This n & #039; work & quot; ">

    Similarly, if my user wants to thml in the title of the image or the title I'm getting the same problem.

    It would be nice to have a function SDK for HTML quoting.  But in the meantime I think you should use string.gsub () to make your own replacements, for example

    String.gsub (s, "\ '", "'")

    You can pass an array to the third parameter, which allows you to make all necessary substitutions with call to string.gsub ().

  • How to track the time mark to ASO

    Hello
    I'm working on a cube ASO and I have many member formulas in outline.
    The formulas are really big and could be changed with a few tweeks.
    Now I want to check, whether on the modification of formulas, my polling time increases or decreases. Y at - there no way or the log file to track how long it don't take when I ask for all of the members of my spreadsheet.
    I want to compare how many seconds/minutes had not a mark.

    Christian,
    ASO query tracking you describe is used to help define the views of aggregation, but cannot be looked at to provide the information the OP is looking for. On a note related, followed by the query is kept in memory and is valid only until the database is stopped or restructured.

    There is nothing that shows individual formula runtime performance. If it comes to extractions of worksheet, you can look in the application log to see the spreadsheet data extraction time, but it's only a really difficult way. In BSO cubes, you can follow what queries users of crossroads. IT is not applicable to the ASO cubes.

  • I'm unable to type the quotation marks or use a rear brace.

    First of all, I don't have this problem if I use Internet Explorer, I don't like. I'm unable to type some kinds of special mark - Apostrophe, slash - or back space, space before or hit end. A strange thing arises at the bottom of page whoing what I am typing there.

    This has happened

    Each time Firefox opened

    Is about 3-4 weeks ago

    See http://kb.mozillazine.org/Find_bar_opens_when_typing_in_textbox

  • How to choose the color marker in the plot of the intensity

    Hello

    I am tracing my 2D data file in the plot of the intensity. I want to that path of color should be as red as value maximum all in green as minimum value and 0 must be yellow. I watched this http://digital.ni.com/public.nsf/allkb/1ADFF221E27F5B5886256E6F007C7B58?OpenDocument example, but in this example they decide marker beforehand. In my case, I want to choose marker based on maximum and minimum value.

    Thank you

    Yogesh

    Here's a simple example. I didn't change anything execpt for show with 1 decimal digit z scale markers (default is zero). It is just cosmetic.

  • Remove the quotation marks correctly

    Hello world

    I'm dealing with an embarrassing problem with quotes: I the JSON string with double quotes inside which causes incorrect analysis. So I want to remove them completely. I used

    result_text = result_text.replace('"', '\"');
    

    but no change. I searched a bit and found that people use replace (String, String) so that I can see that a single manufacturer with characters. General - how you would remove double quotes in a string?

    Thank you I looked in this class, can be useful in some cases.

    I also tried http://supportforums.blackberry.com/t5/Java-Development/String-Manipulation-split-replace-replaceAll..., nice solution

    and to cut it short - my problem with json happened to be away from quotes. I haven't worked with json parser before and attempted to get the null value. Now I analyze

  • How to replace the end mark of Panel with my custom PNG files?

    Lightroom has 2 points to end at the bottom of the left and right panel.

    With a right click on the brand to open the context menu, you can choose other brands in the submenu of ' Panel end Mark ", which also lets you define your own file PNG as an end Panel of brand by choosing"go to control panel of end record marks.

    When I chose "Go to control panel of end record marks", a folder named "" SOLUTION Explorer. "." EXE"opened, so I dragged my logo in PNG format in this folder.

    Regarding the manual, the added files will appear in the list with these built-in brands of Lightroom, however, I couldn't find mine.

    Does anyone have an idea about this problem?

    You guys kindly would check what is your "file panel end marks?

    THANK YOU

    The end brands folder of Control Panel on a Windows Vista system is located in brands end-users/username/AppData/Roaming/Adobe/Lightroom/Panel

  • image does not not because the quotation marks not removed from path

    I built my image and made a cfdump to check what is produced:

    <!--- Build image paths --->

    <cfset image_src="../images/f#movie.FilmID#.jpg">

    <cfset image_path=ExpandPath(image_src)>


    <cfdump var="#image_src#"><br>

    <cfdump var="#image_path#">

    I get the following when I run the page:

    ../images/f5.jpg

    C:\ColdFusion11\cfusion\wwwroot\workspace\OWS\images\f5.jpg

    When I right click on the placeholder image and copy the URL of the image in an browserr address bar, what happened is:

    http://127.0.0.1:8500/workspace/OWS/10/%E2%80%9D../images/f5.jpg%E2%80%9D

    so, it does not take the "... and" from around the location of the image to the next line as it expands the URL: ".

    <cfset image_src="../images/f#movie.filmid#.jpg">

    On another page, I deleted the quotes and then put them back in and it worked. For some reason he disliked the quotes that were there and do not recognize the code correctly until I replaced the. I can't get this same solution to work here on this page.

    Any help/suggestions? Thank you!



    I just figured that I must have cut and pasted on a Web site and she added MS 'smart quotes' to my code.  Apparently, I had these "quotes" in several places in my code.  Once I replaced all my code works perfectly.  Thank you!

  • How to retrieve the name of a string

    I have the SQL query that returns the name of a person and I need to extract the last part of all the hyphenated names or the last with a space in them

    In cases where the person has a family name, everything is OK

    As Smith. This OK. . I'm looking for just of Smith

    The problem I have is when I cut some family names such as Scott-Thomas

    In this case, I want to extract the last name from family or Thomas.

    Or if I have a surname like Rodham Clinton.
    In this case I want to extract only the last name Clinton.

    How can I do this?

    Creative use of the ListLast() function.  Something like:

    Note that the optional 2nd parameter, which is a default delimiter, a space and a hyphen between the quotation marks.  This will cause ListLast() break a string that contains a space or a dash into several parts and return only the last part.

    -Carl V.

Maybe you are looking for