Post adjustment Application items in the apex.server.process for a * process application *.

We were spending the entirety of our method of apex.server.process htmldb_get request the favorite (and documented and supported!). It has worked well so far for the AJAX JavaScript process call, as long as the process of AJAX in question was one * Page * level process. However, when we try to eat a * application * process, it just doesn't seem to work.

For the examples below, we have two elements of Application named PRS_PRODUCT_PROFILE_ID and PRS_PROFILE_OPERATION. We have a process to request on request (* not * a process page!) named MAINTAIN_PRODUCT_PROFILE_2.

Here are the previous htmldb_get approach (which works fine):

function resynchronizeProductProfile (productProfileID)

{

var profileOperation = 'EDIT_PROFILE ';

var ajaxRequest = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is MAINTAIN_PRODUCT_PROFILE_2', 0);

ajaxRequest.add ("PRS_PRODUCT_PROFILE_ID", productProfileID);

ajaxRequest.add ("PRS_PROFILE_OPERATION", profileOperation);

var resynchronizeResult = ajaxRequest.get ();

ajaxRequest = null;

Return resynchronizeResult;

}

Here's the (what I think is the) same call using the new approach of apex.server.process:

function resynchronizeProductProfile (productProfileID)

{

var resynchronizeResult;

$s ("PRS_PRODUCT_PROFILE_ID", productProfileID);

$s ('PRS_PROFILE_OPERATION', 'EDIT_PROFILE');

Apex. Server.Process ("MAINTAIN_PRODUCT_PROFILE_2"

, {pageItems: ' #PRS_PRODUCT_PROFILE_ID, #PRS_PROFILE_OPERATION '}

, {dataType: "text"}

Async: false,

complete: function (ajaxResponse)

{

var resynchronizeResult = ajaxResponse.responseText;

}

});

Return resynchronizeResult;

}

However, in the new version, arguments don't appear to be preparing when the MAINTAIN_PRODUCT_PROFILE_2 application process is called. PRS_PROFILE_OPERATION, for example, is on "even if above, you can see that it is, in fact, pre-programmed on 'EDIT_PROFILE '.

As a general rule, the call to apex.server.process sets the item values in the page and in the session in a single step. This doesn't seem to be the case with elements of the Application (although it works very well for the items on the Page).

What's up with that? Everyone see my mistake?

Thank you

-Joe

Post edited by: Joe Upshaw

Joe,

Using the pictures I showed you can simply use your application objects in the process. This is exactly the same as what htmldb_Get: when you use. add(), you provide a key pair / value that will be added to the respective tables, it is just behind the scenes. By manually adding to the table with apex.server.process, you get the same exact behavior and apex define elements of page/application corresponding to the value in the table of p_arg_names with the value in the p_arg_values table.

When test you it in your demo application by assigning the value of the page element, and then using the 4 button (point), you can see that the question of the application session state has changed by inspecting the session state of the elements of the application through "session" in the developer toolbar. (it's in the "apex of ajax samples - forum" app)

Of course, you can use the scalar parameters x # to provide values for the process, but why would you do the extra arch? If the elements of the application would set the restrictions, you still get the same result as if they were not, and they are easily manipulated through the same ajax call. I added an extra button with an ajax call using x 01. I never had problems with the help of the scalar parameters.

Tags: Database

Similar Questions

  • How to set the value of a * APPLICATION * with apex.server.process?

    If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:

    $s('P1_MY_PAGE_ITEM', 'I Like Pie!');
    
    apex.server.process(   'dummy'
                           , { pageItems: "#P1_MY_PAGE_ITEM" }
                           , { dataType: "text",
                             async: false,
                               complete: function( ajaxResponse )
                                     {
                                          var ignoredReturn = ajaxResponse.responseText;
                                     }
                             });

    Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!

    However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.

    What is the correct syntax to do this?

    Thank you

    -Joe

    Hey Joe,

    Returning to that thread you made a couple of months ago, the answer is here:

    Post adjustment Application items in the apex.server.process for a * process application *.

    Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.

    For example, in an application with article SOME_ITEM of the application, I can put the value as follows:

    (function(){
    var arrNames = [], arrValues = [];
    arrNames.push("SOME_ITEM");
    arrValues.push('some value');
    apex.server.process(   'dummy'
                         , { p_arg_names: arrNames, p_arg_values: arrValues }
                         , { dataType: "text"
                           });
    })()
    

    Any required application process. Should the item be free that you set it from the browser.

  • Possible bug in apex.server.process?

    I was testing the documented new AJAX function apex.server.process and I noticed that I seem to get an error.
    The documentation on the process can be found here:
    http://docs.Oracle.com/CD/E37097_01/doc/ doc.42 /e35127/javascript_api.htm#BGBJEFDJ

    I created an example where I have both called an Ajax function by using apex.server.process and another call button using pure jQuery. The use of jQuery works and returns "test", the apex.server.process gives an error.
    I just follow the syntax has been documented so I don't think I did a syntax error.

    I downloaded an example on apex.oracle.com
    Workspace: Ajax
    User: demo/demo

    If you make changes to the application, make a copy first please.

    Error returned with apex.server.process:

    Error: parsererror - SyntaxError: JSON.parse: unexpected keyword

    Documentation:

    See also: see the documentation for jQuery jQuery.ajax for all other available attributes. The dataType attribute is set by default in json.

    Solution when it returns plain text:

    apex.server.process( 'AJAX_TEST',null, {"dataType": "text"});
    
  • "Unable to select"Sent items"on the IMAP server.

    I am trying to set up Windows Live Mail, but when I send a message, I get the error message "Cannot send or receive messages on behalf of Aol."  Header for the "sent items" download did not complete.  Cannot select "Sent items" on the IMAP server.  Try to update the list of folders, and then try again. "I can't understand what they mean on the"folder list ".  What should I do?  Thank you.

    Thank you for visiting the Microsoft Answers site.

     
    The question you have posted is related to Windows Live Mail and would be better suited to the Windows Live community. Please visit the link below to find a community that will support what ask you:
     
    http://windowslivehelp.com/product.aspx?ProductID=15
  • create a new item in the apex

    Hi all

    I have an element on the page "Target_date". I want to create a new element that displays the number of days left or late (based on target_date - sysdate).
    but I don't know how to create a new item in the apex and apply this calculation. Could someone help me please?

    Hello

    lets say we have two elements: P1_NUMBER_ONE and another article: P1_SUM
    the result of P1_SUM is a difference in value P1_NUMBER_ONE and sum...
    now, please go to: P1_SUM and open source...
    now on the source, there is a calculation of calculation of post which is where the calculation will be made for the calculation of your date:
    You can use a function here to do your calculation of post for the result P1_RESULT as item:
    function (: P1_SUM);
    and he gives a result... to change logic to date now...

    hope it helps and is what you are looking for...
    Concerning
    Alex Noel, Makumuli,
    Tanzania

  • Header download for the 'sent items' folder did not complete. Cannot select "Sent items" on the IMAP server. Error number: 0x800CCCD2

    original title: error number: 0x800CCCD2

    Can anyone help with this issue:

    Header download for the 'sent items' folder did not complete. Cannot select "Sent items" on the IMAP server. You could try refreshing your folder list to synchronize with the IMAP server. Account: 'AOL', server: 'imap.aol.com', Protocol: IMAP, server response: "SELECT failed", Port: 143, secure (SSL): no, error number: 0x800CCCD2

    Thank you!

    Hi again Steve - I have spent a lot of time on the phone this morning to Dell technical support. the accompaniment of the victim and I did a lot of fiddling around with various options of Windows Mail and I don't know exactly what we were doing, but the issue seems to have resolved itself! Thank you for your time and trouble.

    Best, Douglas

  • Problem with the AJAX server process

    Hi team,

    I use APEX 5.0, apex.server.process to update a collection, and this process uses "async = false" (I need it and can't remove that I want to wait for results before the next call is made)

    My code below

    function f_UpdateCollection(v_fixture, v_store)
    {
        apex.server.process
        (
            'UPDATE_FIXTURE',
             {
                x01: v_fixture.checked,
                x02: v_fixture.value,
                x03: apex.item('P46_PARENT_PAGE').getValue(),
                x04: v_store,
                x05: apex.item('P46_PLAN_ID').getValue(),
                x06: apex.item('P46_BU_ID').getValue()
           },
           {
                dataType : 'text',
                async: false,
                success : function(pData)
                {
                     //alert(pData);
                },
                loadingIndicatorPosition:'page'
           }
        );
    }
    
    

    The question is as soon as I put async = False, my loading indicator stops working and the page looks like hanged for about 10 seconds. I want this to work with async = false. If I withdraw this statement, indicator of loading works fine. Can someone Guide, how can I use indicator of loading with async = false;

    Thank you

    Sunil Bhatia

    Hello

    You can collect the values of table and box to pass the application process.

    This way you only call once your process.

    But I'm not well understood what you are trying to do.

    Kind regards
    Jari

  • 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.

  • 1 error windows must now restart because the plug-and-play service taken end unexpectedly__error 2 - windows must now restart because the DCOM Server process Launcher service put end unexpectedly__

    1 error windows must now restart because the plug-and-play service terminated unexpectedly
    error 2 - windows must now restart because the DCOM server process Launcher service terminated unexpectedly
    -every half an hour or 45 minutes such error comes and restarting the laptop... How to solve this problem...

    Hi nevil.fidelis,
     
     
    This seems to be a common problem, I recommend you to follow the discussions below and check if it helps.

    You can follow the procedure posted by Bindu RMicrosoft support, Moderator on Sunday, 24 January 2010, at 20:04.
    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/ea20a793-5fe8-4448-9fa2-c3ef45069b87

    For additional help please refer to the following thread also:
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/aa3373fa-836D-43f2-BCFC-6e566553c818

    You can also check the positions of the TCD in the thread below on
    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/0f1a049c-4852-4321-91d7-dc1255f4d7a4
     
    Consider the response posted by Karena R, Moderator Thursday, December 31, 2009 at 01:28
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/aa3373fa-836D-43f2-BCFC-6e566553c818

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • What is the web server integrated for Windows XP Professional?

    Hello

    I would like to know what the web server integrated for Windows XP Professional.

    I don't know of a free web server like Apache or IIS.

    I want to host my site on the net using the web server integrated in XP (not IIS).

    Thanks in advance.

    It is not just any server web, other than IIS, integrated with Windows XP Professional.

    You think perhaps of Personal Web Server (PWS) which was part of the old operating systems like Windows NT.  Which no longer exists in Windows XP Professional - it has been replaced by IIS.

    -B-
    http://www.officeforlawyers.com | http://www.OneNote-tips.com
    Author: Guide to counsel for Microsoft Outlook

  • Host process for Windows Services stopped working and was closed & Windows must now restart because the DCOM Server process Launcher service terminated unexpectely

    my computer keeps stopping and restarting itself. I get the same messages of 2 error: host process for Windows Services stopped working and was closed and; Windows must now restart because the DCOM Server process Launcher service terminated unexpectely. How can I fix? I used the norton support, run analyses of many, nothing has helped.

    None of the above works though... I didn't know by another forum to download Hitman 3.5 http://www.surfright.nl/en/downloads/home that he got rid of a virus that norton, Norton 360 and Malwarebytes antivirus support could not. I had no problem since :)

  • Dedicated is part of the Instance server process or not?

    Hi friends,

    I am new to Oracle database. I read book celebrates 'Expert Oracle Database Architecture' by Thomas kyte. Page n ° 62, he stated that "this dedicated server process is not (by definition) part of the instance."

    But in the [email protected] documentation to almost most of the places, they have mentioned this dedicated server is part of an instance. Interestingly, Tom Kyte has co-written book. I got confused because the dedicated server process would also PGA, so he will be part of the memory, so it should be part of the instance. Then Tom Kyte said to this dedicated particular process and why? It must be said that with any reason? What is it?

    I also asked my coach. But I don't have a satisfactory answer.

    Thank you.

    67bf3bdd-9577-45A7-a776-f8e8d3c9c0d3 wrote:

    Hi friends,

    I am new to Oracle database. I read book celebrates 'Expert Oracle Database Architecture' by Thomas kyte. Page n ° 62, he stated that "this dedicated server process is not (by definition) part of the instance."

    But in the documentations of [email protected] almost most of the places, they have mentioned that this dedicated server is part of an instance. Interestingly, Tom Kyte has co-written book. I got confused because the dedicated server process would also PGA, so he will be part of the memory, so it should be part of the instance. Then Tom Kyte said to this dedicated particular process and why? It must be said that with any reason? What is c?

    I also asked my coach. But I don't have a satisfactory answer.

    Thank you.

    Can cite you an instance- specific documentation indicating that dedicated server is part of the Forum?  Your embedded link is a "mailto" link, not a url to a document.

    I can provide specific links indicating otherwise.

    If I start to the Online Documentation of the database to Oracle 11 g Release 2 (11.2) I'm on the portal for all documents in database 11.2.

    From there, do a search for "dedicated server" and the results of this research to Oracle Database Search Results: dedicated server

    The first returned result is the definition in the Glossary

    The definition States:

    dedicated server

    A configuration database in which a Server process handles requests for a single client process.

    If I followed the link incorporated for the "server process", I get the definition of a "process server" to the Glossary

    Note that this definition is for the "process server", not just dedicated server.  It is said

    process server

    An Oracle process that communicates with a client process and the Oracle database to meet the demands of the user. The server processes are associated with an instance of database, but are not part of the instance.

    (underlining)

  • Restrict the web server integrated for listenling only on the local Interface

    I installed the CF with the built-in web server (port 8500). Now, I have to use IIS for the Web site and the web server integrated for administration of CF.
    How to configure the web server CF-Administration, it allows connection only (unrestricted firewall on port 8500) localhost?

    Thank you

    Try to set the following attributes in the WebService of the for the server's jrun.xml file:

    127.0.0.1
    127.0.0.1

    Ted Zimmerman

  • How to change the border style of the list items in the apex


    Hi all

    We have created a few items from the selection list in the Apex and ask users to make changes to the border.

    I tried many ways, but he was not able to make changes, some could help me how we can change the border style of list items in Apex. By, the approach has been used by us

    Attributes of the element in the HTML form -> style = "" border: 1px solid #E5E4E2; "" [I speak that way] but no luck.

    Kind regards

    Sheikh tayeb.

    SruthiTamiri wrote:

    Hello

    Please find the details below

    APEX version # 3.2

    Internet Explorer version #7

    Mozilla version 12.0.

    Used theme #Blue

    Topic identification number is #12

    It is not possible to change the appearance of the borders of the selection list in IE7.

    To the borders of all the elements of the selection list style on a page in other browsers, include the following style sheet in the HTML Header page:

    .formlayout select {
      border: 1px solid #E5E4E2;
    }
    

    APEX 3.2 is no longer supported, and IE7 is obsolete. Upgrade to the current version is recommended.

  • Domain for the APEX server change

    (Subject to modification to handle, but can not show more - Dave Mallasch)

    Our APEX is located on a Windows desktop computer that people knock remotely at the moment. I had a few questions about possibly spend this application on a server:

    (1) is there a downside to place APEX on a virtual server? Did not find anything in this regard, I wanted to see if anyone had experiences with it running on a normal server VM v.

    (2) we have to change the domain where it is located. I couldn't find references to the area and could not find anything in this regard in the documentation. It will affect an existing Apex instance if we change the field on the machine as it is (Windows environment - we would be changing domain it is a member as well as the name of the computer but keep the same IP address)?

    Thanks in advance!

    Dave M.

    Hi Dave,.

    I don't know if this is considered "production use", but I show APEX on 11g in a virtual machine all the time - it just works great. I got no problem with it.

    Problems with the modification of the domain name are really associated Web server and not APEX associated. I know when I get up a new VM with a new IP address, as long as customers can resolve a name for the IP address, everything works without error.

    If you have any questions, report that they return here and I'd be happy to try to help. But I do suspect that you will encounter problems.

    Joel

Maybe you are looking for

  • Sorry, we do not recognize your sign in details

    When I try to connect to the desktop application Skype on my computer, using my Facebook account, it is said that it does not recognize my login information. Please check your Skype name and password and try again. Although I didn't know that I was u

  • If you have XP service pack 3, you still have to have sp 2 on your pc?

    Original title: windows xp If you have xp service pack 3 do you still have to have sp 2 on your pc or can I remove sp 2

  • No sound after installing new video driver.

    Original title: video driver installation breaks sound... When I downloaded a new Autodesk program had to install a new video driver.  Once that was completed my sound no longer works.  Thanks in advance for your suggestions. D. R.

  • Question of blackBerry Smartphones POP3 e-mail

    Initially, I connected my school via IMAP email.  There has been very little reliable for me that I don't get any messages, messages have a lot of latency, and it's all just a pain. However, my GMAIL accounts using the POP3 email form has been good. 

  • Why don't I have a unknown user showing in the security properties?

    I opened my case users of C drive. It seems that my name of user George. Open the tab Properties , then Security, I find under permission entries the following user information: Type: allow Name: S-1-5-21-2599003222-447476865-398919086-1001 Authoriza