Double Quotes In LOV Return Value Being Replaced With &qu ot; By APEX 4

My company recently upgraded our development and test boxes to APEX 4.0.2, which we have been wanting for a while now. We discovered that since the upgrade some of our checkboxes and radio groups no longer work as expected. What I mean by this is that the return values being checked for were not correct, and on several occasions we received PL/SQL errors related to numeric to character conversion issues.
After debugging some it turns out that we have the following LOV query for one of our Checkboxes:
select
statement d,
stmt_id || '" title="&P20_FORM_STMT. ' || statement || '.' r
from
stmts
The return value for the LOV is setup so that it would return a 508 compliant checkbox. We were told we needed a title for each value of a checkbox or radio group to be 508 compliant. These titles must also be relevant to the selection being made, hence the substitution string being used in the return value.
What I discovered in all of this is that APEX 3.2 did not convert the double quotes in our return value to &qu ot;, but APEX 4.0.2 does. This causes the value of any given checkbox or radio group to look like the following:
value="1&qu ot; title=&qu ot;This is the statement that I have made."
And what we are looking for, and what APEX used to do is this:
value="1" title="This is the statement that I have made."
Does anyone know a way to prevent APEX from converting the double quotes to &qu ot;, or is there a way to insert an element attribute for each checkbox or radio group value that contains a substitution string?
Thanks in advance!
Pastey

ryansun wrote:
4.2.1
Hi,
I have a classic report, which has a count column that is hyperlinked. using the standard apex column hyperlink option. In that we have the option of passing values. I noticed that when I am passing a value which has "/" in it, it replaces the / with & #x2F;
I have created a application item which I am populating with the report column.
Because of which I cannot use that value in the report query.
Any suggestions?Yes. Don't pass string values in URLs. Especially where it is possible for these strings to contain URI reserved or APEX sensitive characters. This might work for a while but your application can be broken months from now by users including a "&" or ":" in data that gets passed as a URL parameter. Whilst it is possible to escape strings to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
Exposing data in the URL may also introduce security vulnerabilities. Also note that the maximum length of a URL in Microsoft Internet Explorer is about 2KB, which can easily be exceeded by throwing a few string values at it.
Only use discrete alphanumeric key values as URL parameters. In target pages/regions, use these key values to retrieve the required data using item source attributes and processes.

Similar Messages

  • Why is the &copy_id being replaced with @id in _i_sqlplus?

    why is the &copy_id being replaced with @id in isqlplus?
    insert into title_copy
    (copy_id,title_id,status)
    values(&copy_id,&title_id,'&status');
    insert into title_copy
    (copy_id,title_id,status)
    values(©id,&title_id,'&status');
    Please help,
    Thanks!

    &copy represents the HTML entity © (copyright symbol).
    I don't have much iSQL*Plus experience but I recommend using a variable name that is not an HTML entity.

  • My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to display the data?

    My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to disable the data held on it and ensure that if it is fixed, nobody can use/see my data and access my account?

    Hi Gazpan,
    Thanks for visiting Apple Support Communities.
    I recommend using the steps in this article to back up your iPhone if possible:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    You may also find this advice helpful for your situation:
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5661
    If you no longer have your iOS device
    If you're using iCloud and Find My iPhone on the device, you can erase the device remotely and remove it from your account by signing in to icloud.com/find, selecting the device, and clicking Erase. When the device has been erased, click Remove from Account.
    If you're unable to complete either of the above steps, you should change your Apple ID password. Changing your password won't remove any personal information that is cached on the device, but it will make sure that the new owner can't delete your information from iCloud.
    Cheers,
    Jeremy

  • Punctuation sometimes being replaced with "?" when published

    Hello,
    Every once in a while, when a page has been updated, most of the punctuation is being replaced with question marks (?).
    I've since gone in a second time and changed the question marks to the proper punctuation and the page published properly.
    Any thoughts?
    Thanks,
    Kagan Mustafa
    xod Media
    www.xodmedia.com

    Hello Kagan,
    I noticed on both of the pages, your charset is defined as:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    Please try changing it to UTF-8 and see if this resolves the problem:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Best regards,
    Corey

  • What is the recalled iPod nano being replaced with

    What is the recalled iPod nano being replaced with

    I sent my 1st generation nano back on Monday and got my replacement today (Thursday).  Apple is FAST! Kudos for great customer service.  However, I also got the 6th gen. silver 8gb nano like deggie said although I didn't know that it was refurbished and I am very disappointed.  This is the super-tiny nano that I'm guessing no one liked because they redesigned it after 1 generation.  If they were sending refurbished nanos, I would have much preferred any generation but the 3rd or 6th generation or at least the option of choosing from what was available.  All of the others look very similar to the 1st generation which I really liked.  That said, the 6th gen. does have more memory than my original and has some additional features but I think I would have rather kept my old one.  I said I think because I haven't used the "new" one and I might get used to it.  Something to consider if you are happy with your 1st generation nano.

  • Can a single LOV return values to two different fields?

    Hi,
    I have a scenario where I already have a LOV in the form which is assigned to a Field A. This LOV returns the value to field A. I have another field B which needs the same list of values. I can assign the same LOV to the field B as well, but can the value selected be returned to B?
    I can create another LOV with the same record group, but just wanted to know if its possible to use the same LOV again.
    Thanks

    Hi Karuna,
    You can achieve this by providing a third column in LOV (whose column width can be set to 0 to prevent it from being visible in lov) which can be comma-separated of two fields. This third field can then be assigned to the form field. And a substr() function call can get you both values.
    Hope this helps,
    Anantha
    [http://askanantha.blogspot.com]

  • Text Entry Box--Advanced Actions--Conditional Statement--Double quotes in literal input value

    Hello forums,
    I'm new to the forums (and Captivate in general), but I'm having a real problem carrying out a tutorial design and I think you may be my only hope.  Let me explain what I want to do and the difficulty that I'm having:
    I'm an instruction librarian at a university, and I'm designing an interactive tutorial for English 100 students to complete in order to become familiar with how to search the library catalog.  What I've done is taken a screenshot of the catalog search page, made it the background of a slide in Captivate (vers. 6), and placed a text entry box over the search bar in the screenshot.  The idea is for the students to conduct a simulated search by choosing one of three suggested search string formulations, and depending on the search string they enter, the tutorial will jump to a slide featuring a screenshot of what the actual search results would look like.  The idea is to emphasize the use of keywords over full-sentence phrases, and the use of double quotation marks to enclose multi-word search terms.
    So I've set the action for the TEB to "Execute Advanced Actions" and then created some IF/THEN statements in the "Advanced Actions" pop-up window (with action type set to 'conditional'). The script is such that if the student enters the first search option (how does sleep affect college students) in the TEB, the tutorial jumps to 1 slide, if they enter the second option (college students AND sleep), featuring a Boolean operator (AND), the tutorial jumps to a 2nd slide, and if they enter the third option ("college students" AND sleep) with the double quotes around "college students" and the Boolean operator, the tutorial should jump to a 3rd slide.  This action script works fine for the first two input options, but I can't make it work for the third search option.
    I think that it has something to do with the fact that the third input option features double quote marks, and this seems to throw off the script (I tried a quote-less input value for the third IF/THEN just to make sure that it would work jumping to the 3rd slide and it did), and I'm wondering if anyone has any suggestions as to how I can get around this issue.  Again, I need it to work so that if the student enters "college students" AND sleep, with the quote marks and the Boolean operator, the tutorial will jump to a slide showing the search results if those search terms were used in a real search of the catalog.
    I'd be extremely grateful for any help that anyone here can give me, we've been trying to make our online tutorials more engaging and interactive (and therefore more interesting), and I think this would be a great way to teach students about using quotes in their catalog searches.
    Thank you for your time and consideration.
    Andrew Wilk
    College Library
    UW-Madison

    The tutorial is for a "how to use catalog searching" instruction in an undergraduate library session.  We use boolean operators (AND, OR, NOT) to combine search terms, ex. to search for books about the sleeping habits of college students, I would enter "college students AND sleep."  Because "college students" is a multi-word phrase to describe one concept, I need to put quotation marks around the phrase to prevent the catalog from searching for the individual words separately, so the most correct search becomes ["college students" AND sleep] with quotation marks around only "college students," a user-typed "AND," and the word "sleep" (no q-marks).
    A colleague of mine worked out a pretty cool (if complicated) solution that I'll share if anyone is interested.  Since the q-marks where the problem, we've set it up so that the TEB validates the response for the search string with q-marks around "college students." If they enter it correctly, the tutorial jumps to the corresponding slide. The attempt # is set to 1, and if the user fails to enter the validated phrase (they misspell or use one of the other response options) then the TEB is set to run an Advanced Actions Script in which the other two options are scripted in IF/THEN statements that cause, when the term is entered correctly, the tutorial to jump to their corresponding slides. We've created another tab of IF/THEN statements that say that if the response is NOT equal to one of these response options, then the slide restarts (technically the slide "jumps" back to itself and starts over) and the user gets another chance to start the cycle over again.
    I know this is confusing (I had a really hard time explaining it in words), so if anyone is interested I could make a Jing video when I have some time.
    Thank you for all your suggestions

  • Assigning LOV return Value to multiple text items

    Hi all
    I have a custom form on which i have 10 text items
    text item 1,text item 2 ....text item10
    I have a table xx_querywith fields
    text_item,query
    i have inserted into the xx_query table
    insert into xx_query(text_item,query)
    values(text_item1,'select sysdate from dual');
    insert into xx_query(text_item,query)
    values(text_item2,'select sysdate-1 from dual');
    I have created a record group dynamically and i am getting the query from the query column of the xx_query table into the record group(say test_rg)
    I have created a LOV test_lov and thr set_lov_property i have populated the test_rg query into the test_LOV
    is it possible for me to set the return item of the LOV dynamically so that i can get the LOV on the item which i want to ?
    thanks
    _

    Hi All
    thanks for your responses
    I have Created a control item and assigned the return value of the LOV to the control item
    and i have assigned the LOV to the text item that i want
    Currently when i navigate to the text item the LOV is visible
    but when i select a value from the LOV the value is not getting populated into the text item
    I have assigned the value of the control item to the text item
    but i am not sure in which trigger to write the code so as when i select the value from the LOV the value should be shown on the form populating in the text item
    Thanks

  • LOV return value to submit multi LOV/Text field order by value!

    I have nested LOV and return value reflected to another LOV/Text field by order wise.
    My problem,
    The return value LOV or Text field should be dispay with one by one values order by (Dynamic).here i using the query in each LOV source.
      select DMS_DD_ENG_DESC dis, DMS_DD_ID ret from DMS_DEPT_DETAILS
    where DMS_DD_DT_REF_ID=:P3_DETAILS
    Workspace          :RAM_R&D
    User Name/Password :aramani/apex
    App                http://apex.oracle.com/pls/apex/f?p=36167:3I should do the dynamic action for this case?
    anyone can help me plz.
    Thanx,
    Ram

    Hi Ram,
    I changed your application and i think it is working the way you want.
    I don't know if it exactly what you need but take a look and let me know.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • List Manager based on LOV returning values with missing spaces

    I am using a list manager based on a pop up lov, in this case it is a list of supplier names. When the pop-up list is shown the values are displayed as expected, with all spaces intact. When I click the supplier name, and then click Add to add to the list manager, all spaces in the supplier name are lost.
    The field I'm pulling is a varchar2 in the db. Here's the sql behind the lov:
    select '(All Suppliers)' d, '(All Suppliers)' r from rep_gy_spend
    union
    select distinct supplier_name d, supplier_name r
    from rep_gy_spend
    order by 1
    Any ideas on why the spaces are lost?

    DJ - There is a javascript function on the page that does that. View page source and you'll see it. You could override it with your own and change that behavior and you could prevent it from upper-casing the returned values as well by using different onclick javascript on the add button.
    Scott

  • Numbers being replaced with periods in PDF

    I'm working on tagging PDFs to be 508. All of the pdfs have already been made and the tagging is being done in Acrobat Pro 8.
    The problem is seen in the "content" window looking at the tags. The document text can be seen and numbers like "1s", "2s", "4s" and "6s" have been replaced with periods. Not every PDF is the same, some will only be missing the 2s and another will be missing the 4s and 6s.
    When the PDFs are viewed on screen or printed out they are fine, its the screen reader that has the problem.
    I believe all of these PDFs where made straight from InDesign and not saved as a postscript file and then distilled. PDFs done the long way seem to be fine.
    Have anyone else had this problem on a Mac?
    Jon B

    Can you check the metadata inside the PDF from InDesign to see if the
    problem files are from an earlier version of InDesign or not? In
    addition, do we know if this text was tagged or not (via the STRUCTURE
    command) ...
    A little more investigation ?
    Jon

  • Haviing double quotes show up when executing a command with a variable

    I am trying to run a command that requires double quotes to be part of it. For example:
    $adddiskname = "Harddisk5"
    "$adddiskname(No
    Signature)"
    only gives the output of
    Hardisk5 (No Signature)
     but I need it to look this when it runs:
    "Harddisk5 (No Signature)"
    Here is the command line I have now:
    $adddiskname = "Harddisk5" Start-Process-FilePath'C:\Program
    Files\Veritas\Veritas Volume Manager\vxdisk'-ArgumentList"-f","sig","$adddiskname(Not
    Signature)"-Wait
    Any help would be great.
    Thanks,

    The entire string needs to be in the Quotes, so when the command is run, it shows the (No Signature) as well.
    Example:
    "Harddisk5 (No Signature)" is the end result.
    Okay:
    $addDiskName = 'Harddisk5'
    "`"$addDiskName (No Signature)`""
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • What date is G-Cloud Intune with SA (Version 5) being replaced with version 6?

    I understand that Windows Intune with SA, sold as G-Cloud, version 5 is being expired, and will be replaced with version 6.
    With version 5, we have the option to purchase the license "with SA", which enables Enterprise level. Since version 6 no longer has the option to purchase "with SA"; I need to know from what date the version 5 is going to expire.
    How long will existing version 5 licenses run until?
    Thanks
    Jim

    For Microsoft Intune questions, please ask them here: https://social.technet.microsoft.com/Forums/en-US/home?category=microsoftintune
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Greek Text Not Displaying Properly (Characters being replaced with different ones)

    Hi,
    I am using Adobe Photoshop CS3. I have a spreadsheet of Greek translations. When I copy and paste the text into Photoshop, certain characters are missed out or replaced with an incorrect one. I have tried downloading fonts that support the Greek character set, but still no luck. If I paste this text into any other applications (Word, explorer etc) the text displays properly. I was wandering if there is a setting or anything in photoshop that I need to change? It seems to be an issue with this application only.
    Many thanks,

    Have you tried to set your system language to a European setting, e.g. Ireland or UK? Seems like an issue with incorrect Unicode conversion. Also turn off OpenType features for automated glyph replacement in the menu of the Character palette...
    Mylenium

  • Popup LOV Returning Values

    In my entry form I'd like to use the "Popup LOV" to bring the names of employees. I use the following statement:
    SELECT full_name, party_id
    FROM vs_parties
    ORDER BY 1
    Everything seems to be working OK, however, only "party_id" is returned to the form. Is there a way I can hide the ID field and display the related "full_name" only.
    Regards, Tomas

    In order to clear out a Popup Key LOV value it was suggested to ..... Preface the query with [select '-choose option-' a, 0 b from dual union all ...].
    Does anyone know of a fix for this solution if you want to set the value to null? Because as it stands if you use this query and replace "0" with null, the popup key lov actually returns "-choose option-" for both the display value and the actual value. I cannot use the value of "0" so that is why I am needing it to return as null.
    Here is an example I posted up, the field that has the Popup key is "Name" you will see that once you pick "choose option" and save the record that in the report it sets the value of name to "-choose option" instead of null. Once this happens you cannot edit the record unless you do a backend SQL update to set value to null or a anything else.
    Here is the link: http://htmldb.oracle.com/pls/otn/f?p=37103:21
    This is the LOV query used for Name:
    select '-choose option-' a, null b from dual union all select IP a, ip_id b from IP order by a

Maybe you are looking for