How to handle special characters in the Apex

Hello

In my application, I have two regions - region report (interactive report) and other is region HTML with text elements two - Empno and name

My report has two columns Empno (varchar2) and Ename (varchar2).

When I click on the link change in the column of the report, the empno should be a read-only value EMPNO and ename is a text with the value of the ENAME field.

When I run my application, I have encountered the following problems:
1. If my empno has special characters such as "#", the characters after that is not posting
2. If my empno has special characters such as "," characters after the decimal point is considered to be a value of next texitem

Here is my authentication information,

CTSAN_ORACLE_DB workspace
Username [email protected]
Password lakshmi321
URL: http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:


Please, I beg you. suggest me how to fix these problems.

Thank you
David...

Published by: David on August 13, 2010 03:05

Do not pass the data values in the URL. If it is possible to escape values to make URL - and APEX parameter-safe, it is much better to avoid the problem completely.

Create a primary key of the substitution on the table which is an immutable discreet digital identifier and use it only as a URL parameter. In pages/target areas, use this value of PK to extract the data from the table.

Tags: Database

Similar Questions

  • How to get special characters in the oracle column only

    Hi all

    with spec_tab

    as

    (

    Select ',' col1 of double

    Union

    Select ',' col1 of double

    Union

    Select 'something' double

    )

    Select col1

    of spec_tab

    How to get special characters in the oracle column only

    You mean like this?

    -------------

    WITH spec_tab
         AS (SELECT ',,,,' col1 FROM DUAL
             UNION
             SELECT ',' col1 FROM DUAL
             UNION
             SELECT 'some thing' FROM DUAL)
    SELECT col1
      FROM spec_tab
      where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
    

    Output:

    -----

    COL1

    ,

    ,,,,

    See you soon,.

    Manik.

  • How to enter special characters with the Run statement (@).

    Hello

    Oracle10g (R1)

    NLS_CHARACTERSET = "AL32UTF8.

    When I insert record with special characters like "hastened" with the customer tool insert it works fine, but I run the same INSERT statement execution i.e. statement "SQL > @/ path/Script_File_Name.sql ' special characters has not inserted correctly and it become something like 'h¿ta'.»»

    How to enter special characters correctly race (@) statement?

    Thank you

    If you create a file in Notepad, select the ANSI or the encoding UTF-8 in the dialog box save as.  Copy the Linux file in binary mode. Set the variable NLS_LANG ".» WE8MSWIN1252 ", if the file was saved with the ANSI coding or to. AL32UTF8", if the file was saved with UTF-8 encoding. Be sure to export the variable.  Then, start SQL * more and run the script.  I guess that you are on a U.S. or Western Europe of Windows version.

    Thank you

    Sergiusz

  • How to remove special characters from the string using translate() without typing all special characters?

    Hi all

    I am trying to remove special characters without the help of regular expressions.

    translate (the column name or string,'!@#$ & * (* () _) * "" :} {?}) >? /, «, » ')

    I want to eliminate this manual process to give all special characters using a chr() or ascii() function.

    Please show me the way.

    Thanks in advance

    Similar to the solution of Michael...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, i like (select level 1 c from dual connect by level<=>
    3 less
    4 Select + 32 (level-1) double connect by level<=>
    5 less
    6 select + 58 (level-1) double connect by level<=>
    7 less
    8 select + 91 (level-1) double connect by level<=>
    9 less
    10. Select 123 + (level-1) from dual connect by level<=>
    11 less
    12. Select 255 double
    13            )
    14, ts as (select level r, substr (str, level 1) c
    15 t
    16 connect by level<=>
    17             )
    18, tf as (select row_number() (order for r) r
    19                    ,ts.c
    20 TS
    21 I join on (i.c = ascii (ts.c))
    22             )
    23 select replace (sys_connect_by_path(c,'!'),'! ') Str
    24 TF
    25 where connect_by_isleaf = 1
    26 connect r = prior r + 1
    27 * start with r = 1
    SQL > /.

    STR
    -----------------------------------------------------------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

    Or something as horrible as this...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, I like (select replace (sys_connect_by_path (chr (c), 'A'), 'A') as tr)
    3 of)
    4 select c, rownum r
    5 (select 32 + (level-1) as the double connection by level c<=>
    6                         union
    7 select + 58 (level-1) double connect by level<=>
    8                         union
    9 select + 91 (level-1) double connect by level<=>
    10 the union
    11. Select 123 + (level-1) from dual connect by level<=>
    12 union
    13. Select 255 double
    14 tri 1
    15                        )
    16                  )
    17 where connect_by_isleaf = 1
    18 log r = prior r + 1
    19 start with r = 1
    20            )
    21 select translate (str, 'A' |) TR, 'A') as str
    22 * t, I
    SQL > /.

    STR
    --------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

  • Inserting special characters in the APEX 4.0.2

    Hello
    I am building an application for use in the Brazil.
    I am facing a problem on inserting data with special characters.

    For example:
    FRANCE in Portuguese is FRANCA. There is a special character-> C
    I use a report form.
    On the form I type Franca and when I click on create, it refers to the report and shows me French.
    c is replaced to

    If I connect to the database.
    I run a select statement and it shows me French.
    I have the update Franca and it shows me Franca correctly on the selection.
    Back to APEX, it shows me correctly Franca.

    I guess the question is on Insertion in the database.
    Can someone help me?

    Thank you
    Leo

    Good to know. If it please report the answer as being correct, so more people can benefit, in future research.

    Thank you.

  • How to avoid special characters in the string box

    Hello

    is it possible that a special character can be avoided in a box of the string, as authorizing only a - z and 0-9 to enter a box in the chain

    Hi all

    Darin Laurette method is simple.

    AnkitG: You must change the code.

    Good learning for me.

    Kind regards

    Leila

    CLD

  • I have Adobe Acrobat Pro XI.  I went to special characters from the Edit menu and choose some emoji as Favorites, but I can't understand how to insert in the document.  How can I insert special characters into a document?

    How can I insert emoji or other special characters in a document using Adobe Acrobat Pro XI?  I went to special characters from the Edit menu and may not understand how to insert the special character in the document.

    He's not that kind of editor. You can use the characters in a font. If you can select a font with the emoji, which fits into the case, and then enter the characters, it can work.

    This suggests that you try to do TOO MUCH with a PDF file. It is a common thing, but the message should be: everything simply because you can edit a PDF file, does not mean that it is the most effective way for you to do your job.

  • How to remove special characters that are not available in the key board

    Hi all
    How to remove special characters that are not available in the key board.
    select '106    ©      500049' str from dual;
    
    After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number.
    
    Output should be like:
    Str
    106 500049
    Thank you for your help in advance.
    select
     '106    © ® (k)      500049' str
    ,regexp_replace('106    © ® (k)     500049', '[^[:digit:]]+', ' ') r
    from dual
    
  • Chips and other special characters in the App World descriptions

    How is one makes chips and other special characters in the description of the app in the supplier portal?  I see various descriptions app with chips so I know it's possible.  I tried Googling the answer, but to no avail.  Can someone point me to the documentation for it?

    Thank you

    Lester

    I think it's just the Unicode text, so if you include these characters when you submit the form, they will display.

    Your question is perhaps more on how to insert these characters into the HTML form. To do this, because I need it rarely, I didn't copy and paste of a website where I can find the required text. For example, Google for 'unicode ball' and you can find one of them on one of the first findings of the research, such as the Wikipedia article.

    Some people probably have their systems set up to type Unicode directly from their keyboard, but I never got to determine the modern way to do this (and the last time I checked, years, Unicode in operating systems support was still largely missing).

  • ExtendScript handling special characters

    Hello

    I'm working on my first script for After Effects. I've never worked with JavaScript so please bare with me if the answer to my question is very simple.

    I am simply read a .txt file and parses strings in variables. I then take these variables and using the strings to populate the text layers in After Effects. Everything works perfectly and more that he will not perform "special characters" in the Spanish language. How JavaScript to allow these characters to be filled in text layers?

    Here is my code:

    MAIN FUNCTION

    var newFile = File.openDialog ("file read.");

    If (newFile! = null) {}

    var a = readDocument(newFile,_1).contentAry;

    replaceText (a);

    }

    Checks if the document exists-> If Yes, creates new table and populates file

    function readDocument (inputDoc, linesToSkip) {}

    var curDoc = new queue (inputDoc);

    {if (curDoc.Exists)}

    var contentAry = new Array();

    curDoc.open ("r");

    fills up to the end of the txt file

    {while(!curDoc.EOF)}

    contentAry [contentAry.length] = curDoc.readln ();

    }

    curDoc.close ();

    }

    Replaces the normal table space characters

    contentAry.splice (0, linesToSkip);

    var contentList = contentAry.join("_gap_").toString () replace (new RegExp ("_gap_", "g"), '\r');

    contentAry = contentAry;

    return {}

    'contentAry': contentAry,

    "contentList": contentList

    }

    }

    Function to replace text in layer

    function replaceText (content) {}

    try {}

    variables for specific layers that are targeted

    var layerOneA = app.project.item (3) .layer (1);

    var layerTwoA = app.project.item (3) .layer (2);

    var layerThreeA = app.project.item (3) .layer (3);

    var layerOneB = app.project.item (4) .layer (1);

    var layerTwoB = app.project.item (4) .layer (2);

    check that the parameter passed through to the function is an array

    If {(contents instanceof Array)

    var curLine, lineOne, lineTwo, lineThree, lineFour, pl;

    var aryLength = content.length;

    runs the table & analysis of its data to variables

    for (var i = 0; i < aryLength; i ++) {}

    curLine = happy [i];

    PL = parse (curLine);

    lineOne = pl.title;

    lineTwo = pl.msg;

    lineThree = pl.tune;

    lineFour = pl.name;

    Another used for loop so the function works on the main compositions (all nested these comps)

    for (var x = 0; x < 2; x ++) {}

    if(x == 0) {}

    layerOneA.sourceText.setValue (lineOne);

    layerTwoA.sourceText.setValue (lineTwo);

    layerThreeA.sourceText.setValue (lineThree);

    } else {}

    layerOneB.sourceText.setValue (lineOne);

    layerTwoB.sourceText.setValue (lineThree);

    }

    }

    docName.name.setValue (lineFour);

    Alert (docname. (Name)

    }

    }

    '\r',} catch (err) {alert (err.line.toString () + err.toString ())};

    }

    Split strings in the table into separate objects

    function parse (myText) {}

    {while (!) MyText.EOF)}

    var t = myText.split ("\t");

    return {}

    'title': t [0],

    'msg': t [2],

    'tune': t [3].

    'name': t [4]

    }

    }

    }

    Thank you very much for your help!

    The file object has a 'encoding' property, see the Guide to the JavaScript section on "Unicode i/o tools.
    Make sure you read the txt file in the encoding it is written. Better to use an encoding like utf8 that supports way more special than ascii symbols, for example.

  • empty data file with special characters in the name

    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    Since it is empty, it would be possible to create the data file void anothr
    using the:
    ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
    as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';

    and then recover datafile 'fully_qualified_file_name ';
    ALTER database datafile 'fully_qualified_file_name' online;

    How orders oracle faced with special characters?

    Thanks for your advice

    user6737818 wrote:
    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    It should work using a file as the definition of source file number and a new name for the new file. Works for me:

    orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    
    Database altered.
    
    orcl>
    
  • How to find special characters in a string of give/sentance

    Hi all

    I have a task to complete with the time to give. Because I'm not very good in PL/SQL, I need you're help.
    Condition is:

    I must come with the SQL or PL/SQL code which should return and find the hidden or special character in the name of the data files in a database. There are nearly 400 + database are present in almost any flavor of UNIX, and I need to check the database each.

    As you know, the name of the data file will be like this:
     /u02/instance_name\oradata\datafile_01.dbf 
    So, it should avoid these things and only discover the special characters in the name of the data file.
     
    a-z , A-Z , 0-9 and \ 
    Please keep in mind that... I'll be pulled the script Oracle the Oracle 9i client that will access all the databases of Oracle 9i to 11g in a short and give me the result.

    Please help me to solve this problem and let me know if you need more information.

    Hello

    Mukesh says:
    Hi Frank,.

    It is an excellent service. Thanks for you response.
    I want to change the query that... I should get only the name of these data files that are special characters of detention. I don't know how to put it in that condition. :(

    Here's one way:

    SELECT  file_name
    ,       ...     -- other expressions, if you want any
    FROM    dba_data_files
    WHERE   TRANSLATE ( file_name
                      , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                      , '?'
                      ) IS NOT NULL
    

    Among other expressions, you can put in the SELECT clause (if you wish) is a copy of the TRANSLATE function, you had in your message. That would underline exactly what characters rendering invalid file name.

  • How to insert special characters

    Hey,.

    I can't understand how to insert special characters in a paragraph (the "Indent to Here" in this case).

    I tried text_frame.paragraphs [0] .silence += SpecialCharacters.INDENT_HERE_TAB;  but all I get is "1397319796" instead of the actual character.

    How to insert special characters instead of these numbers?

    Zoffix222 wrote:

    People who visit, but nobody don't know it?

    What, you mean that in the 5 minutes that you posted it responded to nobody? Shocking indeed.

    You already learned by yourself, 'content' is the wrong type of object stuff "SpecialCharacters' in. 'content' is the content of the text, translated in a simple string of Javascript. Only when you change a single 'character', you can use "SpecialCharacters", because at that time there Extendscript will see that you do not want to change the string "full"?

  • How to insert special characters when I hit e-mail or Facebook?

    How to insert special characters when I hit e-mail or Facebook?

    See also:

  • where are the special characters in the new Pages?

    where are the special characters in the new Pages?

    Menubar pages: Edit: Emoji & symbols, or control-command + space combination. Same situation in other Apple applications. In addition, available as a menu item from the menu entry in the menu bar to the right, Finder.

Maybe you are looking for

  • The 'recently opened pages' button is gone. How do I get it back?

    There was untril very recently a 'Recently-but' (or more 'frequently-access') button at the top left of the screen. That's gone - it was very helpful and I would like to get it back.

  • Can't stay online for more than 2 seconds

    Hello! Recently, I have a problem with my account, I can't stay connected for more than a few seconds and then it disconnects. I tried everything, same journal in other devices, such as my Android phone and the iPad, it's defenetly a problem with my

  • Download driver missing chipset

    Hi out there,. I just got my satellite repair back (keyboard). They formatted and installed new vista. Of course, they have failed to install the chipset family driver. I searched on the Toshiba driver download site but I n t find.I get a problem rep

  • iPhone5 only showing the first 8 digits of the wi - fi address

    Address wi - fi is only showing the first 8 digits, then... How do I access the other 4?  Even when I turn the phone on its side for more space it does not when you view the settings screen.  I try to connect to a secure wireless network and may not

  • How can I change adiminstrator purchased the computer

    need help to change the used model purchased administrator cannot download 2 much of anything