Sending page apex to the application process (JSON) values

Hi all

A page 5 apex has a value in a hidden item, P5_CLASS
In the apex 5 page, I wrote a JavaScript to call for a process of application (PL/SQL) to retrieve the values of a table on Page 5.
var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is Get_Class_Data', 0);
and I use the JSON object to display the rows in the table.
-----------
Problem
-----------
It works pretty well. But I need to send the value of the hidden element P5_CLASS to Get_Class_Data so that I can ask P5_CLASS-basedapplication process.

Help, please.

Shiva says:
Thank you Paul,.

So I can use

var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_CLASS_DATA', 0);
ajaxRequest.add ('F15_GLOBALVAR', $v ("#P5_CLASS")) to send the value to the application process?

(F15_GLOBALVAR is an application-level element, I created in the shared components)

And to use this application in my sql in GET_CLASS_DATA, I can use sql... where class =: F15_GLOBALVAR?

Yes.

(Please zip code wrapped in \

...\

Tags to preserve the special characters and formatting.)

Tags: Database

Similar Questions

  • Value of the page element in the APA process not maintained after the send this page

    Hello - I have a sequence of events that goes like this:

    (1) region 0 REG_1 Page is rendered before footer
    -REG_1 region uses javascript / AJAX to call App process PROC_1
    -PROC_1 defines Page1 item PAGE1_MESSAGE for X
    -After that PROC_1 runs correctly, REG_1 don't doSubmit()

    (2) region 0 REG_2 Page is rendered before footer; in this case
    After the page sent by REG_1. (Requirements to ensure that)
    REG_1 has not yet reached)
    -REG_2 region shows an alert PAGE1_MESSAGE (= X).
    -REG_2 region uses javascript / AJAX to call App process PROC_2
    -PROC_2 sets page 1 point PAGE1_MESSAGE to Y
    -PROC_2 sets point Application DEBUG to PAGE1_MESSAGE (this is for debugging)
    -PROC_2 defines the point of Application APP_MESSAGE to Y (this is also for debugging)
    -After that PROC_2 runs correctly, REG_2 don't doSubmit()

    (3) after that REG_2 sent the page, here's what I have:
    -Point application APP_MESSAGE = y. good. That's what it has been for PROC_2.
    -Point Page 1 PAGE1_MESSAGE is bad. X. That's what he has been put to in PROC_1.
    -Point application DEBUG = y. good. This shows at least that PAGE1_MESSAGE was
    the value Y in PROC_2... but for some reason this value is not be kept
    After the application process is running.
    -There's that several other elements of the application located in PROC_2, and they are all correct.


    Any ideas as to why this is happening? It seems like it should be
    quite simple: set the value, send page, the value must be that
    I put it.

    Thank you
    Carol

    Hello

    Exhibition (doesnot save session state), I am not changing who is P1_MESSAGE_1.

    Why does that matter? Why does the hidden item behave differently?
    

    Yes, Hidden Items by usually default state saves. But this isn't the problem in this case because I had changed the item to display only (state saved) and that did not help. Finally back in doesnot save state.

    Try to replace alert (ajaxResponse); with the lines below

    $s('P1_MESSAGE_1',ajaxResponse);
    alert($v('P1_MESSAGE_1'));
    

    Maybe the session state is defined (server), but the value in the DOM HTML (browser) to P1_MESSAGE_1 is not defined. If adding the line above works then the hypothesis is correct.

    And I see that you made the source "static" assignment ...
    

    Yes, I made this change, because it was a reference in itself I think it was redundant. And I had to correct what I thought is not just before debugging. Which cannot be linked to the problem though.

    Kind regards

  • Redirection of the application process

    Hello

    When we try to redirect using the application process get below error.

    When the same process is tried to process Page it works fine.

    We use 5 APEX. Tried owa_util.reirect_url and apex_util.redirect_url.

    Any ideas?

    Hi Arun,

    Why don't you use a branch?

    If you cannot you must always use apex_util.redirect_url. Can you provide an example of code you used? As it seems that the browser actually receives the redirection, but it seems that it is not correct. Use the function "Check system" and tab Net of Firefox to have a look at the answer and after that is returned by the server.

    Concerning

    Patrick

  • 4.2 DOC BUG: all about the application process

    "There is an error in Oracle Application Express Application Builder User Guide version 4.2 §8.8.1 " "on the implementation of the application process":

    A process On Demand is a special type of procedure of demand that has a Point of On Demand process and executes when it is called from a process On demand page level or a browser AJAX call. On-demand processes are useful when you have logic of PL/SQL that you want to run different execution points on several pages.

    At the request of the process generally must be created on a page and not at the level of the application. On request, process created at the application level are created with an initial authorization scheme of must not be Public user. This prohibits the process invoked with users in authenticated sessions.

    As it is perfectly possible (and desirable) at the request of the application process to be invoked, [that] by authenticated users, this should probably read:

    A process On Demand is a special type of procedure of demand that has a Point of On Demand process and executes when it is called from a process On demand page level or a browser AJAX call. On-demand processes are useful when you have logic of PL/SQL that you want to run different execution points on several pages.

    At the request of the process generally must be created on a page and not at the level of the application. On request, process created at the application level are created with an initial authorization scheme of must not be Public user. This forbidden process be invoked from users not authenticated sessions.

    In addition, the second paragraph is a new addition to the documentation for APEX 4.2. What is the reasoning for not creating processes on request at the application level? I've used them for a few years as a way to provide reusable, application- wide (for example, the file downloads and the AJAX content) only items authenticated Apex sessions.

    Hello

    Thanks again. I added a note to the 5.0 docs.

    It is certainly very good create processes at the level of applications On Demand. However, if a process is tied to a single page, only, it is immediately obvious that the process belongs to the interface of this page. It's good from a maintenance point of view, because if you only use application-level processes, it may be more difficult to determine if the process is still in use and where it is called from.

    Kind regards

    Christian

  • Show/hide a Div so that the application process will be executed

    Hi all

    I have the following problem:
    I'm on APEX 3 and I have the page with 2 elements. When the user, enter the value in the first element on the page and navigate out of the element, in the second article should be the SYSDATE.
    This must be done as:
    1. set the fovus in the Item1.
    2. navigate off the Item1 (with TAB or the mouse).
    3 JavaScript function will be executed:
    3.1 icon "Please wait...". "will be displayed.
    3.2 application of getDbDate process will be executed.
    3.3 the value returned by the getDbDate of application process is allowed in the Field2.
    3.4 icon "Please wait...". "disappears.

    Here ist the sample application: http://apex.oracle.com/pls/otn/f?p=MISCELLANEOUS:108

    In Firefox, I have no problems to show the "Please wait...". "Icon, but the Explorer Intener shows me nothing. But the application process will be executed.

    Any ideas?

    Best regards

    Hello

    See the example of CARL
    http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:62

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Question of the application process

    +(First OFF, we're using ApEx 4.0 through IE8) +.
    I have a report that serves as a "shopping bag" of sorts, with a "Delete" button to cancel the Articles of him. But the button 'Delete' is not to go to the page, it leaves just a blank white page. (Fortunately, the process works in the removal of the element)

    The link to the column in the report Page 11 goes back to Page 11. (I tried to change to a new Page 12, including a few branches immediately back to the 11 Page, but it does not solve the problem) The link name is APPLICATION_PROCESS = REMOVECART, clears the cache on Page 11 and sets the value of a hidden element (P11_ITEMCODE) to be referenced in the App.Process.
    The REMOVECART process is a SQL/PL block running On-Demand"that says:

    DELETE FROM INFO_CART WHERE ITEMCODE =: P11_ITEMCODE;
    UPDATE the STATUS value INFO_INDEX = 'In', ORDEREDBYUSERID = '0' where ITEMCODE =: P11_ITEMCODE;

    There is no Conditions, permissions or authentication on the process or the link in the column. Ideas, why the process is not back to the Page based on its execution?

    It appears when you run the application process of the URL which deal with the application will run and that's it. You will need to provide a code in the process of redirection request to the url of the page you want to go.

    Another option is to create a process to run the application process and make it conditional to a certain request value that you can set in your link. Look at the page 4 ("basket 2") for an example.

  • How to set the value of the point of application using pl/sql in the application process

    Hi guys,.

    I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.

    Help, please.

    I use apex 4.2

    Kind regards

    Waqas

    You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.

    For example

    BEGIN

    -assign as a variable

    : G_MY_APPLICATION_ITEM: = 'LARRY ';

    --

    -use in a SQL statement

    SELECT WHATEVER_COLUMN

    IN: G_MY_APPLICATION_ITEM

    FROM MY_TABLE

    WHERE USERNAME =: APP_USER

    ;

    END;

    Peter

  • To access the settings of ajax in the application process

    Hello

    I have an ajax call, submitting a parameter called cBoxKey.

       var get = new
       htmldb_Get(null,$v('pFlowId').value,'APPLICATION_PROCESS=TrackRows',0);
       get.add('cBoxKey','NOTREQUIRED');
      get.get();
    
    

    In the application process I can access the parameter 'cBoxKey' like below;

    declare
        l_checkBoxKey  varchar2(4000);  
    begin
        --
        -- Get the value of the global which will be set in JavaScript
        --
        l_checkBoxKey := wwv_flow.g_cBoxKey;
    
    

    However, this does not seem to work because when I replace

    l_checkBoxKey := wwv_flow.g_cBoxKey;
    
    

    with

    l_checkBoxKey := 'NOTREQUIRED';
    
    

    The application process is called and produces results (through the ajax call).

    In my view, that the question is how access the "cBoxKey" parameter in the application process.

    Any ideas on what could be wrong.

    Thank you.

    Hello

    I check any specification of package APEX version wwv_flow, there is no variable of g_cBoxKey.

    If you have idea there?

    Change your JavaScript for

    var get = new
    htmldb_Get(null,$v('pFlowId').value,'APPLICATION_PROCESS=TrackRows',0);
    get.addParam('x01','NOTREQUIRED');
    get.get();
    

    And then access process on demand as

    l_checkBoxKey := APEX_APPLICATION.g_x01;
    

    Kind regards
    Jari

  • was on a website and now cannot accrss now because I get a web page saying in the Application Server error ' / '.

    In the Application Server error ' / '.

    I was on a website and now can't accrss now because I get a web page saying in the Application Server error ' / '.

    Hello

    1 have had any changes made to the computer before the show?

    2. which antivirus software do you use?

    3. what Internet Explorer that you are using?

    Method 1:

    Try to disable add-ons in Internet Explorer 9 and check if it helps.

    How to manage add-ons in Internet Explorer 9

    http://Windows.Microsoft.com/en-us/Windows7/how-to-manage-add-ons-in-Internet-Explorer-9

    Method 2:

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213/no

    (Also applies to Internet Explorer 9)

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Hope this information is useful.

  • Error: Failed to create the application process: operation not permitted - deployment of ripple to Dev Alpha

    Hey people,

    I was puzzled on this the last bit of time and can't seem to find a solution. (The closest thing I could find is here: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Webapp-not-starting-on-device-VM... but there does appear to be a response [UPDATE: Adam Stanley mentioned that it was due to a missing Debug token, and this isn't the case for me.])

    When I try to "Package & launch" of the ripple, the project is created correctly and even installs the application on the device (is the application icon on the home screen). However, when he tries to run the application, the console of the ripple spit:

    "Error: cannot create the application process: operation not permitted".

    Any later attempt to open the application from the icon on the screen will result in an immediate fall.

    As an attempt to circumvent, I use "Package & sign" and then run the blackberry-deploy with installApp - launchApp - tool options and... it generates the same error as described above.

    I'm working on OS X, and I successfully installed the Webworks SDK as well as the undulation on Chrome Plugin. I have a project together upward with a running python web server and can view the content properly on the ripple. I have my signature correctly registered keys and I generated the file debugtoken.bar. I downloaded the debugtoken on the alpha dev successfully device and placed a copy of the debugtoken.bar file in the root folder of the SDK Webworks. The unit is in developer mode.

    Someone at-troubleshooting suggestions?

    [Edited for format (original post deleted line breaks) and also to highlight a number of things]

    So after getting back to the question, I loaded build with the SDK 1675 Webworks (1.0.4.5) published today, and I was able to go beyond the permission error that plagued me previously.

    Thanks again for the help Adam.

  • adding additional drives in the application process

    Hi, how it is possible to add additional disks in the application process? Now, go in the settings of the virtual machine in vCenter client to add disks after the virtual machine has been created in LCM. We take for the applicant specify how many additional disks and what size (just not RDM VMDK)

    Thank you

    It can get quite complicated because this is certainly not the standard features of LCM and would not be supported by VMware if this customization is not performed by the team of the Orchestration Services of our Professional Services organization... However, that being said, a general approach would be as follows:

    • Duplicate the workflow application for Virtual Machine to the category of workflow custom under user and give a custom name like ask VM

    • Add new entries to the custom workflow that are something like: additionalDiskCount (number) and additionalDiskSize (number) (which implies that all the additional disks would be the same size)

    • Update the workflow to store these values by using a standard LCM Action such as:

    System.getModule("com.vmware.lcm").addDataToTokenKeyAsString (provisioningToken, additionalDiskCount, "additionalDiskCount");

    System.getModule("com.vmware.lcm").addDataToTokenKeyAsString (provisioningToken, additionalDiskSize, "additionalDiskSize");

    The two lines above will store the specified user to other values that the token of data in the database of LCM and you will be able to get it back later because it is related to this particular request token.

    • Hide the initial request button of the tab requests and create a new button that points to your custom workflow

    • Create a new workflow that takes an object of lcm:ProvisioningToken as an entry called "token".

    • Inside of this workflow (let's call it 'Add disks to ask'), you will need to retrieve the additionalDiskCount and additionalDiskSize values that have been stored with the token:

    additionalDiskCount = System.getModule("com.vmware.lcm").getDataFromTokenKeyAsString (token, "additionalDiskCount");

    additionalDiskSize = System.getModule("com.vmware.lcm").getDataFromTokenKeyAsString (token, "additionalDiskSize");

    • You then get the object of VMware3:VirtualMachine of your token:

    VM = System.getModule("com.vmware.lcm.vim3").getVmFromToken (token);

    • Then, using those extracted values and the virtual computer object, use a loop to pass these parameters and some other default values you want in the workflow 'Add drive' (it's in the category library/VIM 3/Virtual Machine management/Device Management workflow.)

    • Once you have confirmed that this new workflow 'Add disks to ask' is working properly by passing only an object token with these entries of additional data stored with them, you can add this workflow for the reminder 'onCreate '.

    The above process is a general approach that could be taken. The specifics of real workflows that you create are up to you and the support of this customization

    Good luck!

    Visit me on http://www.vcoteam.info for vCenter Orchestrator tips and tutorials

  • How to make a visible object in the application process?

    Hello

    I have a resource that is self down and the shape of the object have a few specified additional fields (the fields are marked as required and are made in research). I want to allow (or even force) user to complete a form during the application process. How to do this? Is is possible?
    In fact, the user cannot see the form requesting a resource, it can be seen and filled by approver or administrator...

    Thanks in advance!

    Hi Magnan,

    If your resources form is not available, consider the following configurations:

    -Make sure that the form is active.
    -For the definition of the record resource, ensure that you have set the form as the object Type and define the purpose of your resource in the object name field.
    -For the definition of the resource object, make sure the resource card is defined in the name of the Table field.

    That's all you need to do to have the shape of resources when the user creates a request

    Renato.

  • How to keeps it external links in the application process?

    I have an application that has production, development and test environments. I need to incorporate some external tool URL in APEX and APEX page javascript code pl/sql/menu code links how to respective production, development and test environments in external tools. It is very difficult to change these links manually everytime we Nettwerk enforcement around different environments. is it possible to define an application process where these links are accessible by code APEX page javascript and links of menu/code APEX pl/sql, so that I can change the links in one place? any ideas are appreciated.

    Kind regards
    Surya

    Hello

    To list the target URL place you

    &SERVER_NAME.
    

    Kind regards
    Jari

  • The application process - special characters

    I have an application process (ODP) that I use to fill elements in a page with. I followed the examples of Denis Kubrik e.a. OTN. The problem, in that I ran given with this symbol. I know that there is a special characters that must be escaped in the XML documents. I used the function replace in the SQL query to change '&' in ' & amp;'. However, the process still seems to die. I use the feature of documented test here.

    When I run the ODP that does not return the ampersand, all right, I see the XML document. When I retrieve a line with the ampersand, I see:

    "Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.

    The operation completed successfully. Error during processing of the resources ' http://test:7734 / pls/apex/f? p = 128:0:8491... »

    When I run the SQL in SQL Developer using output I see a valid XML document.

    Someone saw this?

    Thank you!

    Probably because the first is interpreted while the second is not.

    To be honest, I don't know, but it worked for me.

    If it works, I prefer the CHR option.

    See you soon

    Ben

    Don't forget to mark the answers as useful or correct ;)

  • Using the application process, I need display CITY_NAME and return CITY_CODE

    Hello

    I have little problem .i have created an application process
    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>');
       HTP.prn ('<select>');
       HTP.prn ('<option value="' || 1 || '">' || '- Select City -'|| '</option>');
    FOR c IN (select CITY_CODE ,STATE_CODE   from CITY_MAS where STATE_CODE =:SELECT9)
    LOOP
      HTP.prn ('<option value="' || c.CITY_CODE || '">' || c.CITY_CODE  || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    i have two Item 
    
    P1_STATE_NAME Select List 
    
    select STATE_NAME D, STATE_CODE R from   STATE_MAS 
    
    P1_CITY_NAME
    
    select CITY_NAME D, CITY_CODE R from CITY_MAS
    My Table are
    Table for STATE 
    
    CREATE TABLE  "STATE_MAS" 
       (     "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "STATE_NAME" VARCHAR2(50) NOT NULL ENABLE 
         
       )
    /
    
    
    ------------
    
    Table For CITY
    
    CREATE TABLE  "CITY_MAS" 
       (     "CITY_CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "CITY_NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
         
     )
    /
    When I select the name state select and city name of the list has changed with CITY_CODE AS the SEA, GUJ, MOM. CITY_CODE display in the selection list.

    I want Francisco in select cities list and return the value CITY_CODE

    I want when I select the name of the State of list select State then CITY_NAME should be enter in list to select the city names and CITY_CODE to return in to Table.

    I try this with in the last two days, but I can't.

    Please tell me how I can do this.


    Thank you

    Published by: 805629 on January 12, 2011 06:41

    Published by: 805629 on January 21, 2011 12:01 AM

    This is an old blog post which explains step by step. It is for cascading selection lists and must be exactly what you are looking for
    AJAX cascading select list in APEX

Maybe you are looking for

  • Can I still use our existing GMail address?

    I am interested in using Firefox, but want to keep my Gmail address. Is it necessary to change our Gmail address?

  • Tecra S11 does not recognize the Art store

    Hi guys,. I have a new S11 with Win7, 64-bit and a disc Toshiba StorE art. The S11 will not see the drive, but my other machines running XP and Vista have no problem to recognize. Any ideas on how to access the drive with the S11? Input much apprecia

  • How to move a single initializer loop in LV 8.2

    I know that in LV 8.6 we can find options 'pull out a loop initializer' and ' move the a loop initializer in "from the context menu. However, the company I work always uses 8.2 and I can't find the options. Can someone tell me how to achieve the same

  • all in a habit of 6500 a print - General error 0 x 61000016

    my all-in-one keeps refusing to print get the error message General error There is a problem with the printer 0 x 61000016 I tried to stop the printer with the power button, disconnect the source of power and re plugging as he said, but it does not h

  • REG: Web Site should support with IE 6 or less

    I have been academic website developed and hosted with success... but it would be running and support all browsers except IE 6.5 What do I do?