using value of the element in the process of ondemand

All,

Ive ondemand treat like below to do simple insert when it is called, but its takes only not entered value point, but it works when hardcoded values is specified. Can someone help me find the issue here

application process:

===================

Start

insert into test1 values (117, 'Hello' - |) V ('P41_EMPID'));

HTP.p ('Hello world');

exception

while others then

HTP. PRN ("an error occurred retrieving the name");

end;

the value V ('P41_EMPID') or: P41_EMPID is blank in the table, what could be the problem?

Thanks in advance.


Gor_Mahia wrote:

Ive ondemand treat like below to do simple insert when it is called, but its takes only not entered value point, but it works when hardcoded values is specified. Can someone help me find the issue here

application process:

===================

Start

insert into test1 values (117, 'Hello' - |) V ('P41_EMPID'));

HTP.p ('Hello world');

exception

while others then

HTP. PRN ("an error occurred retrieving the name");

end;

the value V ('P41_EMPID') or: P41_EMPID is blank in the table, what could be the problem?

The element has a value of session state when the process is run. How and when is the value of P41_EMPID together?

Tags: Database

Similar Questions

  • By the way the values and the process of PL/SQL call via a column binding

    Hi all

    I have a report and a link on one of the columns that you take you to another page and passes the data from the report to this page. Everything works well. In addition to picking up the details of the report, that I join the link to call a process page before it goes to the next page by using some of the values picked up in the report. This I can go to work by changing the link to a URL and put in some javascript that is to say javascript:doSubmit('TEST_PROCESS'); By doing this "Lose" the opportunity to pass the info according to the report, via the link.

    Can someone give me a clue as to how I can achieve both please? I guess I need to create my own javascript function, but I don't know how to enter the information of a line in a report to send.

    Concerning
    Helen

    Helen:

    JavaScript works against the current page's HTML elements. Application parts are NOT HTML elements and can therefore be manipulated directly from Javascript.

    CITY

  • Need to use values from the first query in other queris to the data model

    Hello
    Here is my requirement-

    I use the data model to run multiple queries. The first query, I get 10 records. Now, I want to use these 10 records in the second query to get my final result. I am not able to use the sub query as the two motions are quite long and complex.

    Select distinct Bishop of emp

    Select empno, emp where Bishop in (: Bishop)

    I can't use: Bishop because it will give only the last value stored at Archbishop. Is it possible to be able to use all the values from the first query in the second query using the data model?

    Hello

    Are you sure that you have your "dataStructure" configured correctly? Try this simple example:

                                                                          
    

    Hope this helps

    Andy

  • Dashboard invites using values of the table no

    Hello

    I have a requirement of the customer to design a report to dashboard as follows.

    Guest of dashboard will have 4 filters, three filters comes from the table, but the fourth filter has 3 values of the table no. The fourth filter will have values like 'Report with Sales Amount', 'Report with the purchase amount', 'report with purchases and sales '. I have three different reports of Table designed for each of the fourth filter choices. But how I apply, also in line of dashboard and navigate through the rite based on the selection report.

    My approach is correct.

    Thanks for your time and your help.

    The fourth guest where you 'Report with Sales Amount', 'Report with the purchase amount', 'Report with both purchase and sales' you shoot a dummy column in the command prompt and write a sql in show.

    would be something like

    SELECT Case when 1 = 0 then the 'Customer Dimension. " "" Cust name ' another 'report with Sales Amount' the end OF sales UNION SELECT Case when 1 = 0 then 'Customer Dimension. " "" Cust name ' another 'report with the amount of the purchase' end OF sale

    and in the quick game, a variable presentation tell var_criteria

    Now create report2 for a certain randomn column with another column has the values you want to display for example 'in relation to the amount of sales.
    Create a filter on the 2nd column and reference the variable var_criteria of presentation and it by default "in relation to the amount of sales.

    On the dashboard in the section page put the report and select navigatoin guided by selecting report 2.

    Please let me know if you have any questions.

    Thank you
    deep

  • Pass the value to the process of request through javascript

    Hey everybody,

    I am currently struggling with the call to an application process and passing a value to it through javascript. Ideally, my javascript is triggered by a dynamic action, which itself is triggered when a user changes the value of a selection list. Below is the javascript code that is relevant:

    for (k=0; k<active_array.length; k++){
          var request = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=CAL_COLORS', 0);
          request.add('x01', check_array[j]);
           var ajaxResult = ajax.get();
           alert(ajaxResult);
          active_array[k].parentNode.style.backgroundColor=document.getElementById('P14_TEST_COLOR').value;}
    

    And she calls the application process is also shown below:

    declare
    v_color varchar2(20);
    begin
    select color into v_color from cal_colors where other_user = apex_application.g_x01 and user_id = :USER_ID;
    :P14_TEST_COLOR := v_color
    end;
    

    The issue seems to be that online 03 my JavaScript, especially since my array element is not spent properly in my process. In an attempt to debug this, I added the alert message, however, instead of any relevant information, the alert shows just the HTML page! I'm at a loss as to what I'm doing wrong here, so if anyone has any input, I would very much appreciate it.

    Basically, you need to rewrite in the http buffer, using htp.p:

    DECLARE
      v_color VARCHAR2(20);
    BEGIN
      SELECT color
        INTO v_color
        FROM cal_colors
       WHERE other_user = apex_application.g_x01
         AND user_id = :USER_ID;
    
      htp.p(v_color);
    EXCEPTION WHEN no_data_found THEN
      htp.p('white');
    END;
    

    You could potentially make it much more efficient also. At the present time you loop on what is probably an array of elements, so from a tabular form probably. Rather than call an ajax for each line, you can group together them and make a call.

    Example:

    JS, you can use this to create an array with values to be placed on the server:

    var lArray = [];
    $("input[name=f03]").each(function(){
    lArray.push($(this).val());
    });
    

    And you can use the apex.server.process api to call a process on demand:

    apex.server.process("MYPROCESS", {f01: lArray}, {success: function(pData){console.log(pData);}})
    

    As you can see, the table with the values is put in the table in the f01. You must use the option of success well since it will be asynchronous (htmldb_Get.get is a synchronous call).

    With respect to the CLASS code:

    DECLARE
      l_return VARCHAR2(4000);
    BEGIN
      FOR i IN 1..apex_application.g_f01.count
      LOOP
        l_return := l_return || '"VALUE' || i || '",';
      END LOOP;
    
      l_return := RTRIM(l_return, ',');
      IF l_return IS NOT NULL THEN
        l_return := '[' || l_return || ']';
      END IF;
    
      htp.p(l_return);
    END;
    

    It will loop through the items in the table-f01 and build a new JSON notation and write it back to the http buffer so it returns to the client. It will look like this:

    ["VALUE1", "VALUE2", "VALUE3", "VALUE4", "VALUE5", "VALUE6", "VALUE7", "VALUE8", "VALUE9", "VALUE10"]
    

    I say this because when users use your application, you do not want such a quantity of calls. A single call by treatment action would save a lot of resources. You may have to loop twice on your items to apply your backgroundcolor, but I don't voluntarily not too mention jQuery since you is perhaps not familiar with it and get scared by him.

  • Task Manager Win7 showing wrong memory values in the process bar

    I've been running Windows 7 64 bit Home Premium for quite some time now (2 years or more) and I have not encountered any serious problems. But recently my task manager started showing some strange values for all processes in the list. She says that explorer.exe is using a maximum of 65 k, which is the highest value compared to others except for firefox, which rises to 130 kb. I searched all kinds of forums and couldn't find answers. It is not a serious problem, but it makes it very difficult to know when a game or a program uses to much memory.

    I don't know exactly what card to set up here. But here are some of the most important, that if all goes well, it is not my hardware.

    OS: Microsoft Windows 7 Home Premium (6.1.7601 SP1 Build 7601)
    Processor: Intel Core i7 - 2600 k CPU @ 3.40 GHz
    RAM: 8 GB of DDR3 memory (I don't remember the exact manufacturer)

    I hope someone can help me
    -Rasmus.

    According the information that you have provided, I don't see anything unusual.

    My explorer.exe and IE9 using the same amount of memory (private beach).

    Edit: 25/10/2013 - after reviewing your original question, I realize, my answer was incorrect.

    The values must be higher.  See the last post by Emil Prager.

    I apologize for my control.

  • Calculations using values in the channels

    Is there a way to make simple calculations (addition/subtraction) of single values selected channels?   New user DIAdem, so I'm not at all familiar with the scripts.  Looks like it should be a simple command, and I'm right on it.

    Thank you

    Shannon

    Hello Shannon,.

    It seems to me that you do not want to add two or more 'cells' (to use the jargon of Excel) together.

    DIAdem manages data such as channels, not individual cells. If the approach to add two cells in DIAdem works like this:

    The variable SMC allows you to access a 'cell' in a channel, using the following sequence parameters:

    ChD (X, Y)

    where X is the line number of the table of channel, and Y is the name of the channel (column) or the number of the cell you want to access.

    For example, this expression here calculates the result of adding the value of line 2 of the channel called "Temperature_1" and the channel called "Temperature_2" of the example data set that takes over at the start of tiara. In this case, R1 is a real internal DIAdem variable that stores a single value.

    R1 = SEC (2, Ch("[4]/Temperature_1")) + SMC (2, Ch("[4]/Temperature_2"))

    The calculation above can be entered in the "Calculator" which is available in MODE of DIAdem and DIAdem analysis in the toolbar.

    I hope it's useful, please let us know if you have additional questions.

    Otmar

  • using the value of the point of application in javascript

    Hi all

    Apex 3.1

    I have a javascript that calls an application process, please see below. In the application process, I have create/modify the value of an element of the application logic. Later in the javascript, I need to define a page element to the value of the application element that has been created in the application process. All of the alerts that I post for the javascript display this value as empty, even though a similar HTP.prn in the process of the application displays the value! Once the completed script the correct value of the issue of enforcement is in session state. Can someone explain this problem of sync for me? Why can't I get the value of an element of application in javascript code when the application process is called by the javascript code?

    Is there a simple solution for me to get this value?
    <script>
    function f_ValidateLinkLine(pThis) {
        
       // The row in the table
       var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
       
       // is Link Line really a number?  
       if ( isNaN(html_GetElement('f20_'+vRow).value)) {
            if (html_GetElement('f20_'+vRow).value.length > 0) {
            alert('Link Line is an invalid number - '+html_GetElement('f20_'+vRow).value);
            html_GetElement('f20_'+vRow).value = '';
            }
       } else {  
           if ( ! isNaN( parseFloat(html_GetElement('f20_'+vRow).value) ) ) {
    
       var link_line = parseInt(html_GetElement('f20_'+vRow).value);
    
       if (html_GetElement('f20_'+vRow).value.length > 0) {
    
          var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateLinkLine',0);
          get.add('F101_LINK_LINE',html_GetElement('f20_'+vRow).value);
          get.add('F101_INVENTORY_ITEM_ID',html_GetElement('inventory_item_id_'+Number(link_line)).value);
          get.add('F101_QUOTE_LINE_LINK_ID',html_GetElement('f01_'+spacer+link_line).value);
          get.add('F101_QUOTE_LINE_ID',html_GetElement('f01_'+vRow).value);
          get.add('F101_QUOTE_NUMBER',html_GetElement('f19_'+vRow).value);
    
          gReturn = get.get();
    
    
       // The application process can sometimes change the value of F101_QUOTE_LINE_ID
      //  and I need to set f37 to this value when this happens
    
        html_GetElement('f37_'+vRow).value =('&F101_QUOTE_LINE_ID.');  //< -- This does not work, the applicaiton item is blank!
     
          if (gReturn) { 
           alert(gReturn);
          }
     
          if(gReturn) { 
           html_GetElement('f20_'+vRow).value = '';
           html_GetElement('f37_'+vRow).value = '';
          }
    
       }  //End Check Length
    
      } else {
    
      html_GetElement('f37_'+vRow).value = '';
    
      } // is Link Line a number?    
     
     } // End If   
    
    } // End ValidateLinkLine
    
    </script>
    Published by: blue72TA on August 16, 2011 11:39

    Published by: blue72TA on August 16, 2011 11:41

    Published by: blue72TA on August 16, 2011 11:41

    Hello

    When you use the point of application in JavaScript, as you do, string &. F101_QUOTE_LINE_ID is replaced by the value of the session state.
    Changes to this value of the item when you call process On Demand do not affect the page.

    Lets take for example,
    You app element value of F101_QUOTE_LINE_ID is for example XX in session state.
    You run the page and view the source of the page that looks like this

    html_GetElement('f37_'+vRow).value =('XX');
    

    Like you have a value hard to JavaScript code.

    Nothing can change this, unless you refresh the page.

    You need return the value of the process On Demand.
    To set the value of code might look like so

    html_GetElement('f37_'+vRow).value = gReturn;
    

    Kind regards
    Jari

  • The replacement of the PK in the process to insert the form after this

    Hello

    I'm quite new in the world of the APEX and I'm having a problem I want to please appreciate any input on... I use APEX 5.0.

    I have a form page to insert (P2) to a new section in my table of queries (with PK of 'ID' column). The billing ID (P2_ID) page is hidden (not sure if that makes a difference)... I then have a process after submit type "Send E-mail" and I want to include information about the new entry in the email.

    Each substitution that I do, as & P2_Description, & P2_Requester. etc works fine, but the replacement of the ID (PK - & P2_ID) does any work. I presume it is because at that time, the recording has not intervened in the table, and the sequence/trigger has not generated the following value?

    How can I please pass this value to the process/electronic mail? I tried to use P3_ID (P3 being the form of update page) and it works, but it always sends the previous entry.

    I'm sure that it must be simple, but as I said I'm pretty new to APEX and could not understand how! Is it possible to have this identification number to pre-fill the next value in the table field, before the present? And what happens if someone else creates a new entry at the same time?

    Thanks in advance

    George

    Hi George,.

    User807933-Oracle wrote:

    Thanks a lot for your reply Jitendra,.

    Do I have to use a different page for "Return Key in Item" element other than P2_ID?

    Under the settings for the DML processes, I have:

    Primary key column: ID

    Main key: P2_ID

    and added P2_ID to return key in the element. Support operations is just "Insert..."

    However, it is always empty when it arrives on the enamel. My process to send the e-mail message must be in a different area? I'm currently after shows. Maybe add to the treatment area, after the DML process?

    Thanks again!

    How are you referring to the item values in the process of your e-mail?

    your mail sending process should be after the insertion process.

    Kind regards

    Jitendra

  • Apex. Submit - the value of the claim

    By using a number of different versions of Apex - on this particular server is Apex v4.0.2

    The JavaScript API documentation indicates apex.submit () the definition of the QUERY variable - which I suppose is the point value of standard application used in the Apex.

    I'm currently debugging presentation on the side of the browser and apex.submit () to DISPLAY the value of the request (as a variable p_request). But the value is not accepted or implemented on the side server. With the help of : REQUEST or v('REQUEST) in the regions of the page does not display the value of the validated request. It has the value null. There is no explicit condition of branch on the page.

    Which do not work, is that the elements of page values assigned are submitted and seen by the back-end. For example if P1_NAME is defined in apex.submit (), this value is visible by regions/process page after submission. Unlike the value of demand.

    I'm doing something wrong? Is this a problem with an older version of the Apex?

    BillyVerreynne wrote:

    It works very well. All elements of page Apex that are assigned values, performed with the values and the process/regions/etc on the next page has the correct values.

    The value of the REQUEST is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why he has no value when they are referenced in the next page.

    Set the attribute to query in a branch of post-submit to the target page of &REQUEST. to demand ongoing value available in the page to see the transformation.

  • Second firefox.exe appearing in the process in Windows Task Manager...

    Hi all!

    I started facing this problem a few days ago and do not know what is the cause:

    In my Windows Task Manager, there are two firefox.exe that appear under the process (under Applications, Firefox only appears once). I used to complete the process to close each of the firefox.exe that appear and the result was special. Depending on whether one I finish, either the window closes completely as well as all tabs or hangs the tab that is currently open and I get the message: "bad new first: this tab broke down."

    I scanned my computer with AVG for viruses and everything was clean back. I've also scanned with ESET for malware and nothing was found.

    Any idea what I can do to fix this? Any help would be appreciated.

    You may see the new multiprocessue feature in Firefox.

    Code name for Firefox multiprocessu 'e10s. https://wiki.Mozilla.org/Firefox/multiprocess

    Started with Firefox 48 for a very small percentage of users with noi extensions installed; expanded in Firefox 49 to a slightly more large group of users; expansion in Firefox 50. Automatically disabled when too many installed extensions are detected and extensions that do not yet support e10s are detected.

    Compatibility of the extension for the most popular extensions that are hosted on AMO are listed here: http://arewee10syet.com/

    To disable multiprocess:

    Type of topic: config in the address bar, press ENTER, accept the warning. This in the search field at the top of the browser.tabs.remote.autostart page. Double-click this preference in the reduced list located under the search box to switch to the 'value' of True to False.

  • Identify the process of the virtual machine in the Service Console

    Maybe it's a little challenging, but I need to "hang" a VM intentionally for purposes of Compliance\Qualification.  I'm trying to understand the best way to do this and my colleague suggested to connect to the service console, identify the process virtual machine running and terminate, so suspend the virtual machine.  The problem is, I'm not sure how to proceed.  Could someone point me to the light?

    Thank you very much.

    Steve

    You must know the name of the vmx file (usually it is the first name of the virtual machine).

    Then, connect SSH (or console) to your ESX and run the following command

    PS auxfww | grep 'VMXname '.

    At this point, you can locate the correct PID of the virtual machine. The first number to appear in the output is your PID.

    The PID can be used to complete the process by issuing the command kill-9 PID.

    André

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • value of the element is not common when used in dynamic action

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    dacoellov wrote:

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.

    If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .

  • Value of the element after replacing the automated process of line does not?

    Greetings!

    I have a standard process of line automated filling in the fields on my current form after the header. Certain values that I need to replace by calculations from the data in other tables. If right after the line, I inserted another process for this. The results are actually stored in the database, but does not reach the customer. Why? Somehow it seems, once the line is completed, the html elements are not affected more during the processing of the page.

    So I resolved to set certain values with a call ajax after the page is loaded, but which actually is not the best way to do this.

    In coordination with the question: what is the difference between the headings of before and after? I looked in the documentation, but wrong in details. Myself I havn't found no difference between the two.

    I hope you can help me get clarity on who and how to implement the calculation as well as the shape of line.

    Thanks a lot and best regards,

    Tobi

    Hi TobiP,

    If your item has as the Type of Source database column, and I think you do since your using an automatic process of line Fetch, in the properties of the element, you'll find a region called 'Source '. If the Source value or expression is not null and the Source is set to "Always replace the value that exists in the session state", then the value of the source will be taken from what you put as the source and ignore session state values defined by other processes. Assign to this "only when there is zero current value in session state" to use the session as a source value.

    Kind regards

    Joni

Maybe you are looking for