Is there a problem with APEX Application processes and the CAE?

I have a table that has a political function. When I select in the table directly from the page, it seems to be only return lines appropriate for the user.

But, when I select from the same table using an application process (On Demand), PL/SQL block.

BEGIN
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< select >");
FOR c IN (SELECT '1' o)
name | ' (' | school |) ')' d,
pk_id r
OF sch_base
WHERE pk_id = nvl(:REFRESH_LOV_PK_ID,'null')
UNION
SELECT '2' o,
'%' d,
r 'null %.
OF the double
UNION
SELECT '3' o,.
name | ' (' | school |) ')' d,
pk_id r
OF sch_base
WHERE pk_id <>nvl(:REFRESH_LOV_PK_ID,'null')
ORDER BY 1, 2)
LOOP
HTP.prn ("< option value ="' | c.r |) '">' ||
c.d | ("< / option >");
END LOOP;
HTP.prn ("< / select >");
END;

It returns all rows in the table.

Try something like

var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pApp,$v('pFlowStepId') )

CITY

Tags: Database

Similar Questions

  • Problems with sorting of columns and the number of lines in the report

    Hello

    I'm having a problem with sorting of columns and the number of lines displayed in a report.

    This report displays the data correct, but if I try to sort on a column when I click on the column heading in the report returns no line... I need to click on the "go" button to refresh the report (with the column sorted now) in to display the data.

    Similarly, I display only 15 lines per page. If I try to view the lines 16-30, 31-45, etc., that it returns no line until I click on the 'go' button to refresh again.

    Has anyone else had (and overcome) the same problem?

    Thank you

    Joseph

    Joseph,

    2 questions:

    1) are you using the elements referenced by the report page to filter etc.. ? If so, you're failing values of these when the loading of the page?
    (2) are you using PPR page through the results?

    If so, it could be a problem with the different types of session state, as Anton Nielsen blogged about here:
    http://c2anton.blogspot.com/2008/12/Oracle-Application-Express-Apex-three.html

    If so, you can use calculations or processes to set element values in session state persistent during page rendering, as Anton mentions. In this way, when you use PPR page values will be available in session state and your report should work fine.

    Anthony.

  • Having a problem with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular.

    I recently tried to remove malware on my Vista based laptop Toshiba.


    I recently tried to remove malware on my Vista based laptop Toshiba. Malwarebytes helped, but I still have problems with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular. I tried to download from a copy of the USB stick to a clean computer, but he still refuses to load telling me to check my internet connection, which is fine for general use. Please help I get crazy and do not forget that I am a pure layman - thank you if you can help - Kidso

    I found that the best place to ask this type of question is here: -.

    http://forums.ComputerActive.co.UK/forumdisplay.php?f=20

    There are some very good people out there who helped me (successfully) on 2 occasions.

    Good luck.

    I'll be interested to know how you go.

  • Problem with styles of framework and the paragraph of text

    I have a book with a number of documents in it. In one of the documents, there is a problem with blocks of text and paragraph styles. When I create a new text frame, text in it and apply a paragraph style, the style does not apply correctly. Elements of applied and others do not. For example, bullets and numbered lists apply but italic, and font size are not. It only happens with new blocks of text, and the oldest work very well.

    This does not happen in other documents, just one.

    The book is properly synchronized and synchronization options include all options.

    Check your panels styles, paragraph, character and the object with nothing selected. If there is an already established style name, and I think that it would be in the Panel character styles, that's your problem.

    Bob

  • Problem with Quicken 2012 House and the company after installation, runtime error

    I have a problem with my Quicken home and business 2012. I upgraded from 2009 to 2012 and was able to use the new version for about 1 hour, but he hung a little.  Now when I tent to access my Quicken program, I get a runtime error "program: C:\Program Files\Quicken\qw.exe ' abnormal program termination. Quicken is then stopped immediately.  I am currently running Windows XP service pack 3.  Any suggestions?

    Hi RENEE HETTERLY,.

    I suggest that you uninstall and reinstall Quicken program on the computer, check to see if it helps.

    How to change or remove a program in Windows XP

    http://support.Microsoft.com/kb/307895

    If the previous step fails, then you will need to contact Quicken support for assistance.

    http://Quicken.Intuit.com/support/Windows.jsp

  • What is the problem with my AJAX process and '&amp; '.

    On the page where I create a new record, in my line of work, I put P10_ID with the newly created primary key and then 10 page loads.

    I have and onload call in the header of the page 10 - onload = "getValues (document.getElementById ('P10_ID')); »

    I want to put my page 0 items, that works, except if I use an ampersand in one of my fields. I have a hard time understanding why... What is so special about the ampersand? I tried to convert a hex and ascii value but my page 0 items will be unaffected. I get a javascript error that reads: '0' is null or not an object. When I spell out "and" instead of using the ampersand, my page 0 items ARE correctly defined.

    Here's the code...

    My getValues function is:
    function getValues(pValue) {
      var xml = null;
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=Set_Page_Zero',0);
    
      get.add('AI_PRIMARYID',pValue.value);
      ret = get.get('XML');
    
      if(ret) {
        var lName = ret.getElementsByTagName("LASTNAME");
        if(lName) {
          var last = document.getElementById("P0_LASTNAME");
          last.value = lName[0].getAttribute("VALUE");
        }
        var fName = ret.getElementsByTagName("FIRSTNAME");
        if(fName) {
          var first = document.getElementById("P0_FIRSTNAME");
          first.value = fName[0].getAttribute("VALUE");
        }
      }
      get = null;
    }
    My application process is:
    DECLARE
      vFIRSTNAME varchar2(100);
      vLASTNAME varchar2(100);
    BEGIN
      owa_util.mime_header('text/xml',FALSE);
      htp.p('Cache-Control: no-cache');
      htp.p('Pragma: no-cache');
      owa_util.http_header_close;
      htp.prn('<DATA>');
        select firstname, lastname into vFIRSTNAME, vLASTNAME from addresses where pk_id = :AI_PRIMARYID;
      htp.prn('<FIRSTNAME VALUE="' || vFIRSTNAME || '"></FIRSTNAME>');
      htp.prn('<LASTNAME VALUE="' || vLASTNAME || '"></LASTNAME>');
    EXCEPTION WHEN OTHERS THEN
        htp.prn('<FIRSTNAME VALUE="No records exist"></FIRSTNAME>');
        htp.prn('<LASTNAME VALUE="No records exist"></LASTNAME>');
    END;
    I can't copy and paste so I hope that I did not mistakes in patching.

    Any idea's what is the problem and how to fix it?
    Thank you
    Tammy

    Hello

    Thanks for that--I don't know how I find time either!

    First of all, I would like to replace & with a ridiculous character who is not likely to appear in the text – something like ^ maybe.

    Thus, in the process:

    select REPLACE(firstname,'&','^'), REPLACE(lastname,'&','^') into vFIRSTNAME, vLASTNAME from addresses where pk_id = :AI_PRIMARYID;
    

    then in javascript:

    last.value = lName[0].getAttribute("VALUE").replace("^","&");
    

    It is possible that this may have to be:

    last.value = lName[0].getAttribute("VALUE").replace("^","& amp;");
    

    (there is no space between the & amp;-j' had to add that in the post!)

    Andy

    Published by: ATD on November 11, 2009 17:49

  • Problem with DW CC 20141 and the BC add on

    Hi all

    I had this problem on my computers that I have Dreamweaver CC 20141 installed on both.

    I used the program for a while, but all of a sudden on open it I am unable to connect to Vancouver to download a new site and start working on it using Site/site management in the top menu.

    Instead I get redirected to a page to download the BC add on. When I connect to download it, I said I already have and not give me a link to download.

    Measures to address this are:

    1. conclusion of DW

    2. go to Creative Cloud (figure 8) and open it.

    3 make sure you sync files option is enabled

    4. download the Add on Manager.

    5. start add on Manager and make the round in circles for some time using add it manager to uninstall, and the Web page to download the app to BC to uninstall and reinstall the application.

    6. start and leave off DW while doing these steps (sorry, I couldn't work on a logical sequence of things to do in steps 5 and 6)

    7. Finally, DW CC 20141 will BC app and you will be able to connect to BC and download site you want to work on

    However once this is done, when I worked in CC DW the preview for the template I worked on had an error 404 for the model, so I couldn't split view in DW how looked at the page on the site.

    If I had to go back to Adobe Creative Cloud app and disable the synchronization of file to see how the page is in split view.

    I think that there is something wrong with DW CC 20141 and synchronization of files in the Adobe Creative Cloud application.

    Hello

    In case you still experience this issue, please try some suggestions mentioned here,

    Re: Business Catalyst Extension does not not since upgrade

  • Problems with audio/video playback and the Source window

    I have some videos that I try to import into my sequence. Whenever I have open the video in my source window (or drag it to the timeline), the sound goes crazy. He starts to jump and identified himself. When I open the movie file in Quicktime format on my computer, it opens and plays very well. In addition, I don't know if it is not connected, but sometimes, when I open a video in the window of my Source, there is no audio. I can drag to the sequence and double-click on it to put the video of the sequence in the Source window and it plays very well.

    The video that I have problems with is a .mov, filmed from an iPad (not sure what model of iPad). It is filmed in Portrait mode, do not know if it matters. Please let me know what other information would be necessary to solve this problem.


    Thank you!

    First, answer the questions in the FAQ of Information http://forums.adobe.com/message/4200840

    Second, it IS possible whether the ipad video like video iphone

    IPhone will not edit easily because it uses a variable rate

    -A fix in the #22 http://forums.adobe.com/thread/934466 message

  • Problem with directinput in dxdiag and the launch of the games

    I recently started having problems with launch of some games.  Two games, at present, are 'Black hawk down' and 'Dead space '.  When I run Dxdiag I get a direct entry access error.  If I click on 'no' in the pop-up window that dxdiag errors access to direct entry, my dxdiag crashes with report error to microsoft.  I think the two are connected.  I have reinstalled/updated all the drivers of sound, graphics and system nothing helps.  When I try to do the webinstall of directx, I get the message that it has not updated.  All devices works fine.

    Any help would be appreciated and thanks in advance for any help offered.

    Lee

    Home Win XP - SP3 - completely up to date, Phenom II x 4 3.1 GHz, 4 GB ram, radeon hd5670 1 GB, onboard sound.

    Managed to find out what was causing the problem.  I have a USB stick electric meter reader.  It blocks somehow the directinput do some games unplayable and the origin of the problem of dxdiag.  If anyone has a similar problem then I suggest to each of your devices USB, one at a time, unplug and see if the problem goes away. If you think that my answers are useful please vote and mark as a possible answer. Thank you.

  • Problem with my Sansa plu and the switching of computers?

    I have a Sandisk Sansa clip plus 8 GB. Recently, I switched from windows to Ubuntu, and even if the player is filled with music, the (MSC mode) folder is empty on the computer! I guess that's because I used windows/windows media player and MTP mode. When I transfer new music, it normally appears on the player and the computer. But the old music normally played on the player - seems to have gone on the computer.what can do about it?

    Thank you

    I guess that's the issue of the MSC/MTP mode:

    When the drive is connected to your computer using the USB MSC (the value of the player in settings/USB mode), your computer only sees the files that had been moved to the drive when the drive is connected in MSC mode.  Similarly with regard to the MTP mode.  However, all the files appear and can be played on your player, under some USB mode setting.

    A reason why some people prefer to set the USB Mode on their player to MSC or MTP: setting Auto, the Player tries to connect in MTP mode but then you will return in MSC mode if the connection of the MTP does not; as a result, you can have a mixture of MSC and MTP mode transferred the files to your drive, making some of them isn't visible on your computer without going to the other USB mode.

    Because MSC mode is more universal (playing with a wide range of operating systems, including Linux and on Mac, and without the need for Windows Media Player on the computer), some people prefer MSC mode.  However, note that the DRM (digital rights management) files need MTP mode - they will not transfer enough (the DRM license will not transfer) in MSC mode.

    If you currently have a mixture of music MTP and MSC mode on your Clip, you can: put the Clip fashionable want to 'delete' your reader. to connect to your computer; Copy your music on your computer and delete the originals of your Clip. Unplug your Clip to the computer; Set the USB mode to your Clip to the other mode, that you want to use in the future. Reconnect your Clip to the computer; Re - transfer your music from your computer to the Clip; and disconnect.  And now, to keep the Clip value mode USB mode (it can set after an update firmware - always doublecheck it after an upgrade).  Voila!

  • Is there a problem with Adobe Reader DC using the command line to open a file?

    Hello

    I am a developer and we use Adobe Reader to view our PDF help files in our application.  For years, we used WinExec() to open Adobe Reader, by specifying the file to open on the command line and it has been working perfectly.  In other words, upward until our users began to load Adobe Acrobat Reader DC.  Despite this work very well when you type a command using CMD.exe, it simply does not help WinExec() from another application programmatically.  Also, I modified the code to try using CreateProcess() or ShellExecute() and these functions do not work either.

    It may have to do with the fact that there is a switch or a parameter now within the DC, but I don't know what it is, or why it happens.  If anyone can shed some light on this it would be much appreciated because it severely hampers our latest version of the software.

    Kind regards

    Leigh.

    A common cause is not to put quotes on the command line, so instead of

    "c:\program files...\acrord32.exe" "c:\documents and settings\...my file.pdf.

    You write

    "c:\program files...\acrord32.exe" c:\documents and settings\...my file.PDF

    This has always been bad, but older versions it would accept anyway. (It was a recent change but not in DC).

    I would recommend using ShellExecute instead of the command line, however. That simulates a double-click and executes everything the user has created for PDFs (perhaps Reader, Acrobat maybe, maybe something else).

  • There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There are no withdrawal, must be replaced and released.

  • SE "There are problems with the configuration of static files in your environment" after the APEX 5 install using Oracle HTTP Server

    There is not much information in the doc around the new configuration of static file.  Someone at - it an example of this dads.conf he file should look similar to static files?  Everything else seems to work fine - it's my only hang up now.

    Thank you!

    Exact pop-up message:

    There are problems with the configuration of static files in your environment.  Please see the section "Configuration static file Support" in the Guide of the Installation Application Express

    I figured it out on my own - the doc has a section "6.5.4 configuration Support for static file" which basically said yes, it is now supported for static files, then a "see also:" link to the dads.conf section, that I'm not good enough to see there are now 2 new parameters in your dads config file...  All is ready!  It works!  YAY!

  • Strange problem with universal theme, jQuery and APEX 5 on Windows 8.1

    I have a strange problem that makes me crazy. I get it whenever I need to run some jQuery or JavaScript in the new universal theme. This page is a good example:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:600

    Whenever I click on the calendar icon it opens and closes immediately. This happens when I click on and release the quick mouse button. If I do it slowly, click it, wait a second and release the mouse button, it opens as expected. I did the inspection of javascript in the firebug debugging console and I can see that each action runs twice.

    On this page, you can debug:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:16

    by pressing a button.

    I did some tests with some of my colleagues and discovered that this happens only on computers with Windows 8.1 running pages in Firefox or Google Chrome. IE works as expected.

    I invite participants in this forum to do a test for me, if they have one of the browsers mentioned and Windows 8.1. My tests were from two different laptops I (the two Windows 8.1) and also of a virtual machine on Windows 8.1. I was able to reproduce this problem on all three computers.

    I also did the same test with apex.oracle.com and with my local installation of APEX 5.0. They both behave the same.

    I can't reproduce this with applications having the old model like this:

    https://Apex.Oracle.com/pls/Apex/f?p=31517:215

    Thanks in advance.

    Denes Kubicek

    Brad, thanks a lot for the performance test.

    Talking with the main developers of the universal theme, this afternoon, we have now highlighted what we believe to be the cause of this problem. There's code in a universal theme that uses hammer.js and apply a logic of quick click on all the links and buttons, with a few exceptions closely. We believe that it is this code that may be responsible for these questions.

    Please hold fire for more such tests as requested previously, my apologies for any lost time do. We will follow on this thread with results as soon as we can.

    Thanks again for your help so far.

    Kind regards

    Anthony

  • Help with apex.server.process

    Hello

    I try to use the new function apex.server.process for and I seem to have some problems with it. The appeal itself seems to work very well as firebug it returns what to expect. It's just that I return the json string to an object, and this is what causes the problem.

    Here is my application process:

    DECLARE
    
      lv_json             VARCHAR2(4000 CHAR);
      lv_score            NUMBER(12);
    
    BEGIN
    
        --Will get the score from the database...
        lv_score := round(fm_apex.events_api.get_percent_complete(:P40_EVENT_ID,'TOTAL'));
        
        IF lv_score = 100 THEN
          lv_json := '{"success":true}';
        ELSE
          lv_json := '{"success":false}';
        END IF;
        
        htp.p(lv_json);
        
    END;
    

    And this is my javascript function:

    function checkScore(pThis) 
    {
        var getScore = apex.server.process(
            'IS_SCORE_COMPLETE_JSON',
            {
                pageItems: "#P40_EVENT_ID"
            }
        );
        
        if ( eval(getScore.success) )  {
            alert('This is successful');
            //doSubmit(pThis.id);        
        } else {
            openModal('notScoredFully');
        }
            
    };
    

    It is done when the answer is {'success': false} and Firebug, it is it was still evaluating true? Everyone can see what I'm doing wrong?

    See you soon,.

    Paul.

    1 / apex.server.process is asynchronous. You manage it as if it is not. You initiate the call and he went, in contrast to htmldb_get that works synchronously (= makes the browser to wait for return). You must use the function of success.

    Apex.Server.process JavaScript APIs

    The return value of the call to server.process is an object jqXHR, documentation on which you can find here: jQuery.Ajax | jQuery API Documentation

    I would just use same success if, as shown in the example in the documentation.

    apex.server.process ( "MY_PROCESS", {
      x01: "test",
      pageItems: "#P1_DEPTNO,#P1_EMPNO"
      }, {
    success: function( pData ) { ... do something here ... }
      } );
    

    So something along these lines:

    apex.server.process(   'IS_SCORE_COMPLETE_JSON'
                         , { pageItems: "#P40_EVENT_ID" }
                         , { success: function( pData ) {
                                        if(pData.success){
                                          alert('This is successful');
                                        } else {
                                          alert('This is NOT successful');
                                        }
                                      }
                           }
    );
    

    2 / default apex.server.process manages the return as a json data type value. It would be pointless to 'eval', he.

Maybe you are looking for

  • Simultaneous use of ctr0 and ctr1

    I am writing a program that will lead the two lasers with a modulation of the square wave and who reads the data synchronized with the modulation. Must that I control lasers using two channels of the AO and that (actually I want to trigger IT starts

  • Reinstalled Windows & I need a product key to activate the product ID 00359-112-0000007-85536

    I have recently reinstalled windows 7 Home Premium on my Asus and did not need a key to activate it. Check the properties of my computer and found my product ID 00359-112-0000007-85536. Please help me get a corresponding product key!

  • BlackBerry BB Q10 pasword and error message mess ID

    Hello, I bought a Q10 yesterday and carefully implemented a new acct BB ID and password. Then I tried to login with the password, and be kept said that it was not valid and try again. There is no way that the password was not correct that I of course

  • Connect printer 6800 to new router

    I searched all the pages of HP and this forum and that you have not found an answer that works. I have a printer Deskjet 6840 and just had to buy a new router (linksys N750) and cannot connect to the wireless printer. With this model, I can't use the

  • fact adobe first pro CS6 equipped students creative cloud

    I especially need first Pro CS6 and Photoshop CS3 or CS6 for my classes.Also I have a PC at home and would a Mac at school will be compatible?