Replace() function doesn't work in Application Designer?

I'm using PeopleSoft Application Designer 8.51. I'm trying to do a simple Replace function so I can escape single quotes rather than allow them to blow up the sql query.
&deptid = Replace(&deptid, "'", "''");
App Designer chokes when I hit Save: "Invalid function parameter type. (2,19)"
According to the docs I'm using this correctly: http://docs.oracle.com/cd/E26239_01/pt851h3/eng/psbooks/tace/book.htm?File=tace/htm/tace14.htm#H4095
Even if I try to execute the example right out of the documentation, I get the same error: REPLACE("StringFun", "Fun", "Number");
Is this a bug in app designer? REPLACE is a super common thing, it's not something obscure. How can this not work?
Thanks in advance.

I figured this out. “Replace” is a strange duck function that relies on offsets. “Substitute” is the magic I needed, works just like I was expecting Replace to work. The documentation I was reading on Replace was for “ PeopleSoft Analytic Calculation Engine” rather than peoplecode. I’ll pay closer attention to that next time. Maybe this will help someone else...

Similar Messages

  • Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on

    Hello,
    the Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on. Once you click on tools > Snapshot > raster, the window where the displayed 3D model will be white.
    The same happens when  you click on the taskbar.
    There one other option than to turn off the Aero Design?
    System:
    OS: Windows 7 32bit
    APEX 9.3.2
    nvidia Quattro NVS160
    4GB RAM
    Dell Latitude E6400
    Thanks,
    Olli

    Hello,
    the Snapshot function doesn't works in APEX 9.3.2, if the Aero Design is turned on. Once you click on tools > Snapshot > raster, the window where the displayed 3D model will be white.
    The same happens when  you click on the taskbar.
    There one other option than to turn off the Aero Design?
    System:
    OS: Windows 7 32bit
    APEX 9.3.2
    nvidia Quattro NVS160
    4GB RAM
    Dell Latitude E6400
    Thanks,
    Olli

  • Text replacements synchronization doesn't work on my Mac

    Hello, I cannot make text replacements synchronization work on Yosemite (the same problem was on Mavericks – I hoped, that Yosemite will fix it, but it didn't). The symptoms are:
    Synchronization backend work properly: when I add or update shortcuts on my iPad, the change will appear in sqlite database stored in ~/Library/Dictionaries/CoreDataUbiquitySupport/... on my Mac
    When I go to Keyboard Preferences → Text, I can see shortcuts synchronized from my iPad there
    The shortcuts doesn't work in applications at all (even if they are enabled via Edit menu)
    I started to play with brand new user account on my Mac and I was able to make synchronization work. After some investigation I found that shortcuts are automaticaly copied from ~/Library/Dictionaries/CoreDataUbiquitySupport/... to ~/Library/Preferences/.GlobalPreferences.plist under NSUserDictionaryReplacementItems key on this new account, but on my real account they don't appear there. If I add some shortcut to .GlobalPreferences.plist manualy, it works in applications as expected. So something which is responsible for keeping CoreDataUbiquitySupport and .GlobalPreferences.plist in sync doesn't work, probably. Any ideas, how this can be fixed?
    By the way, there is one more issue with shortcuts: add/remove/reset to defaults buttons are missing in Keyboard Preferences → Text.

    Try PRAM reset.

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • Since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    Check whether you have the latest driver:
    Printer and Scanner software available for download:
    http://support.apple.com/kb/HT3669?viewlocale=en_US

  • I upgraded my 3 yr old iMac to Snow Leopard and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site, but still no joy.  Any suggestions?

    I upgraded my 3 yr old iMac to Snow Leopard (OS X 10.6) and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site and installed them, but still no joy.  Any suggestions?

    aspaceman,
    Perhaps I owe you an apology.   Having re-read that downloading from HP was unsuccessful I feel uncomfortable.  Can I suggest you update your 10.6 system (as noted in your profile) to 10.6.8 (if it is not already there) by using the
    Mac OS X 10.6.8 Update Combo v1.1 combo update plus any software updates that then apply.  

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • Sort function doesn't work E12

    the sort function doesn't work half the time on Elements 12 organizer.

    What about FUNCTION CLOCK_INFormula
    RETURN NUMBER
    IS
        l_hours_worked  NUMBER;
        l_to_return     NUMBER;
    BEGIN
        l_hours_worked := TO_NUMBER(NVL(:ATX_CLOCK_IN,'0'));
        IF (MOD((l_hours_worked - 0.02),0.25) = 0) THEN
            l_to_return := TRUNC((l_hours_worked - 0.02) * 4) / 4;
        ELSE
            l_to_return := TRUNC((l_hours_worked + 0.23) * 4) / 4;
        END IF;
        RETURN (l_to_return);
    EXCEPTION  
        WHEN VALUE_ERROR THEN
            RAISE_APPLICATION_ERROR ( -20100
            ,   'ERROR, Cannot represent '
            ||  :ATX_CLOCK_IN
            ||  ' as a number.');
    END CLOCK_INFormula;?
    This function assumes :ATX_CLOCK_IN is always positive.
    T.

  • Tap function doesn't work, recovered files in bin etc

    Hi
    I'm using Mac Book Pro 13' - Mac OS 10.6.8
    1) Every time, I switched on my laptop, the one finger (tap to click) function doesn't work (although I have set it up).
    I have to go to 'systems preferences' to set it up again.
    2) Why is there 'Recovered files' in the trash bin each I switched on my laptop? How to get rid of it?
    3) Sometimes when I work using Word 2011, it takes a long time to save (the little icon will be swirling and swirling) and then I had to force quit and lose unsaved info. Why does this happen and how to avoid it from happening?
    Pls help me. I'm in the middle of my thesis submission and urgently need solutions to my Mac problems. Thanks!

    Reinstall Photoshop. That often fixes the issue.

  • Preview function doesn't work in Cap2

    I just installed Captivate2. In the project I'm working on,
    the Preview function doesn't work. Or rather, it works
    sporadically... sometimes it does, and --- much more often -- it
    does not. What happens instead is, the "generating slides" message
    appears, and the progress-bar begins, but then suddenly the
    message/progress window disappears, WITHOUT generating the swf file
    and without doing any kind of preview. It happens on all the
    various options of the Preview function.
    It does work about one time in every ten attempts.
    This surely isn't acceptable... Anyone else encountering
    this???

    Hi UncleErnie
    By chance have you fiddled with the slide properties of any
    of the slides? One of the new options available in version 2 is to
    apply navigation options that cause slides to behave certain ways.
    So it stands to reason that if a slide was configured to jump to
    the end of the movie and the end of the movie option was to close
    the movie... Well, hopefully you see what I mean.
    Another question I would have is where are you editing your
    project? Are you possibly saving it to the company LAN and editing
    it using Captivate to make edits while in that location? If so,
    this is normally bad practice. Try moving the project locally and
    see if the issue resolves.
    Cheers... Rick

  • Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    drag the other clip 'over' the main clip
    the 2nd clip has to be selected/yellow border...
    then you're prompted in the Inspector with the several options...

  • Scroll up function doesn't work at all.

    My Blackberry Bold9930 is having some issues and it is my second one this one is about two months old. First of all it has a dead pixel and I know you can not do anything about that. The other issue is with the track pad in some windows scroll up/down function doesn't work at all but left to right works. In some windows the scroll up/down function it will but others will not WHY? Windows that the function will not work that I know of are any pop up winds and the tap page in the browser some options pages etc. Why is this? Yes I have done restarts latest software I have done everything.

    Can you scroll using the touchscreen?
    Whenever my trackpad scroll "sticks" or seems to not work, it's because I have too many browser windows open, or too many apps open.  Which browser are you using?
    Try closing apps, closing windows, and leaving open only those you are actually using at the time.  A battery pull (quick pull in my case) usually cures a sluggish phone every time for me.

  • HP Digital Filing function doesn't work with Mountain Lion....?!

    My HP Officejet L7780 is an All-in-One with a fabulous feature of Direct Digital Filing allowing us to do a digital scan and filing into a folder on my Mac. It is operated entirely from the printer by a single button.
    It works perfectly on my MBP with Snow Leopard.
    On my new MBP with Mountain Lion this function does not work - (the printer cannot find the computer, or says it is not turned on or it is not accessible..) Applecare cannot explain it - the Apple Genius does not know how to fix it - HP washes their hands saying the printer is no longer Supported.....
    I have a perfectly good printer/scanner/copier/fax - and i can still call a scan from my computer - but i can no longer send a file from the printer.
    I've done all the software downloads, uninstalled and reinstalled all the MAC-OS and Printer software, 3 times - looked throughout the HP website for udpate drivers to work with OS10.8
    Does anyone know how to fix it, please ?

    Hi ShlomiL,
    Thanks - i'm sure your answer is correct, it is totally consistent with the observed facts. but i ask myself WHY, oh WHY does Apple do such a short-sighted move to cut off legacy apps or legacy hardware forcing people either to not adopt their latest hardware/software, or waste totally good office equipment which is still perfectly workable.
    As luck would have it, i have an MBP with OS10.6 for my business - i can do a Direct Digital file scan to it perfectly OK but my new Retina MBP which i use for all my personal finances, taxes etc is the one i want to use with the printer, at home.
    I can get stuff from the scanner to my home MBP but have to do that poor workaround - and i refuse to be forced to trash a perfectly good 4 year old printer just to please some software re-designer.
    Is there a work-around (hack ?) where i can download the old SMB file/driver into Mountain Lion and replace the SMBX version which comes with the new OS, please ?

  • HP Deskjet 9600 Won't Print with 10.4.11 & Find function doesn't work.

    Hi, there seems to be some link between the find function not working and HP printers not working in Tiger. I read this forum - http://209.85.215.104/search?q=cache:-v3OvLGNYBwJ:forums.cnet.com/5208-6126_102- 0.html%3FforumID%3D10%26threadID%3D271686%26messageID%3D2667189find+function+not+working+intiger&hl=en&ct=clnk&cd=6&gl=us - and it seems like others have had this problem. Is there any other solution other than Archiving and Reinstalling system software? I don't have enough HD space to do that...?...I only have 1.74G. I've heard you need at least 10G available. Is that true? Thanks.

    It is not obvious the problems are related. I read the thread and one user had both issues but the others didn't seem to.
    Does Spotlight work?
    What exactly happens when you try to print?
    Have you tried repairing permissions yet? (/Applications/Utilities/Disk Utility - highlight your HD on the left and choose the First Aid tab and the repair permissions option.)
    If that doesn't work, see if the problem occurs in another account. If you are the only user, create another user in the Accounts pane of System Preferences.
    Do you have HP software installed or are you just using the drivers which come with OS X?
    - cfr

Maybe you are looking for

  • How to validate the input parameters in Oracle BI Publisher reports

    Hi i am new to Oracle BI Publisher I am using OBI for generating simple reports. here i need validation for input parameters (Date Parameter) and also want to disable the Date filed so that user can select through the calendar component. Here validat

  • HT5878 How to to install fonts in iOS 7

    I want to know the procedure of adding fonts to iOS 7. I intended using the fonts in pages, numbers and keynotes apps. Thanks

  • Archive date no longer appears in metadata?

    I have noticed that for a while now the Archive field in the metadata tab of the inspector remains blank despite the fact that I archive pretty much every time I use Aperture (and the archive process seems to work - the 'thermometer bar' window pops

  • Partial Page Rendering with HTMLDB2.0. How can I do it?

    Hi, somebody told me, that PPR is implemented in HTMLDB 2.0. So not the whole page will be rerendered after a submit but a single region. I know this very helpful feature from the ADF-Java Server Faces. How can I do it with HTMLDB 2.0? Bye, Rumburak

  • ShowDetail component...

    Hi, I am working on developing similar look alike of showDetail component in adf, i have looked into the code of adf and i am implementing the same way the adf has, but the problem i am facing here is i am getting the all the components rendered twic