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

Tags: Database

Similar Questions

  • How to access the value of the point of application in javascript

    How to access the value of the point of application in javascript?

    Hello

    A way

    var myVariable = '&MY_APP_ITEM.';
    

    BR, Jari

  • The value of the point of Application via Javascript

    How do you define the value of an element of application using javascript?

    Hello

    I have not tested, but I think $s not work for point of application. He finds only the page elements.
    You can test

    $s(pNd, pValue)
    
    Given a DOM node or string ID (pNd), this function sets the Application Express item value taking into account what type of item it is. The pDisplayValue is optional. If used for a page item of type "Popup LOV" where the attribute "Input Field" = "Not Enterable, Show Display Value and Store Return Value". It will be used to set the "Input Field". The value of pValue will be stored in the hidden return field.
    
    Parameters
    
    pNd (DOM Node | string ID)
    pValue  (String | Array)
    pDisplayValue(String)
    

    BR, Jari

  • 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

  • Dynamic action to set the value of the point of Application

    Hello
    I want to display a form button that sets a value of the point of Application. Can someone please help and guide how to proceed?

    The requirement is, the user will receive a report, they can change a record and a button will allow him to SET the record for the session. When it accesses a different page within the application, they will see that the data relevant to the record that is DEFINED.

    Thanks in advance
    Aali

    Hi, Estelle,.

    You can use the dynamic action 'Code from PL/SQL Execute' to fix your application. For example, your code might look like

    begin
        :G_DISPLAY_MODE := :P1_DISPLAY_MODE;
    end;
    

    Page items to submit: P1_DISPLAY_MODE

    P1_DISPLAY_MODE would be the element on your current page where you select the desired value.

    Hope that you give something to play with.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Bug during import of calculation and the point of application

    Hello

    I created a component export file which contains, among other things, a part of the application and a calculation of the claim on this point. Looking at the export file, this is the order of events:

    +...+
    Create calculations of the application
    Create the application point
    +...+

    However, when I import this file in our test environment, the point of application is created but not calculated. In fact, if I create the calculation manually and re - import the file, the calculation is actually deleted! However, if I change the import file and to reverse the order of events:

    +...+
    Create the application point
    Create calculations of the application
    +...+

    .. .it works very well. Is this a known bug?

    I use Apex 3.0 on Oracle 10 g btw.

    Thank you!
    Luis

    Luis - I filed a bug for the problem of calculation/pos. The problem is that a trgger on wwv_flow_items removes the corresponding calculations and the way in which the element is replaced is to remove it first and then re-create.

    The last date of update for components is not very reliable on this report. I wouldn't want to ignore them.

    Scott

  • I just bought an Iphone 6s and not yet am possession of en from the Sim Card. Ook, do you know if I can use the phone including applications via Wifi and put the chip later? Thank you. Renault JL

    I just bought an Iphone 6s and not yet am possession of en from the Sim Card. Ook, do you know if I can use the phone including applications via Wifi and put the chip later? Thank you. Renault JL

    No, because if you bought a new iPhone, then you need a SIM card to activate it before you can use the wifi applications.

    This is a phone after all, you don't need a sim card any to be able to activate it.

  • Hai iam Amaladas from Chennai (India) iam Remote Sensing and GIS researcher here most people using the Google Earth application and five members using Iphone, we need a Google Earth app (India)

    Hai iam Amaladas from Chennai (India) iam Remote Sensing and GIS researcher here most people using the Google Earth application and five members using Iphone, we need an app (India) of Google Earth?

    https://www.Google.com/search?q=Google+Earth+app+India&ie=UTF-8&OE=UTF-8

  • while shooting pool on directory, use the pointer to draw the ball, that the screen goes up and down

    When I use the pointer that the screen moves up and down I want to trun off

    Hello ron crabtree,.

    This thread has been created in the Feedback forum. the Microsoft moderation team has moved this thread to the Performance and maintenance Forum.

  • Can I use the JDE demo application code in my application?

    I have the RIM signing keys for my BB application. If so, can I use the Blackberry demo application code in my application?

    Thanks for any help

    She found!  There are too many posts by him on this forum!

    It is in this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=9393

    To save everyone looking, here is the text:

    "You are free to use the sample code available on BlackBerry.com website in your own application.  This includes sample diagnosis network included in the knowledge base.
     
    Mark Sohm
    BlackBerry Development Advisor
    www.BlackBerryDeveloper.com".

    Thanks Mark.

  • I bought a picture but when I downloaded it, it always says "Adobe Stock" on it. Is this normal? I thought that once I bought article which could disappear as I would really like to use the point on Web sites, etc. Help, please.

    I bought a picture but when I downloaded it, it always says "Adobe Stock" on it. Is this normal? I thought that once I bought article which could disappear as I would really like to use the point on Web sites, etc. Help, please.

    You can also check:FAQ: where can I find useful links on the use of Adobe Stock?

    I'm moving this discussion Adobe stock

  • can I scroll the pages via gesture control. At the present time to scroll, I use the pointer over the edge Strip!

    I would like to be able to scroll using the gesture control. I think I've been using sound, but it now seems to be not not available.
    Scrolling by pointing at the helm of the edge is a pain!

    Gestures are a feature of your operating system. Check your operating system settings.

    TB - 38, 3 Win10-PC

  • Dial the node library with cluster table feature using the pointer of table data

    Hi all.

    I am writing a wrapper of LabVIEW for an existing DLL function.

    The service was, as one of its parameters, an array of structures.  The structure is very simple, containing two integers.  I use the call library function node to access.

    In Labview, I created an array of clusters, when the cluster has two integers of 32 bits as members.  So far so good.

    Now, I have to pass this in the node library function call.  I use here in trouble.

    I used the LAVA so the topic in the knowledge base as my main sources of information, although I read a lot of topics in the forum on the subject too.

    I don't understand I could write a new function that takes as a parameter a struct with the size as the first member and an array as the second, and I might just do this and do call the regular service, but I was hoping to do more simply.

    The file function C LabVIEW generates for me the COLD Lake when I choose "To adapt to the Type" and "Data in the table pointer", the prototype he expects is:

    int32_t myFunc (handful of uint32_t, uint16_t channel,
    int32_t FIFOnumber, Sub data [], int32_t numWords, int32_t * actualLoaded,.
    int32_t * actualStartIndex);

    And the prototype of the function in my DLL is

    int myFunc borland_dll (DWORD channel, channel of Sina,)
    FIFOnumber int, struct mStruct * data, int, int numWords * actualLoaded, int * actualStartIndex);

    It sounds like a match for me, but it doesn't work (I get garbage in the data).  The topic referenced above LAVA, I realized it would work.  This isn't.

    If I have to cast the data to the pointer-to-pointer I get when I generate c code in my wiring to a CIN struct and by generating, then I seem to get what I expect. But it seems to work when I choose "pointers to handles" too, and I'm expecting data table pointer to give a different result.

    Is it possible to get it works directly, or I have to create a wrapper?  (I am currently using LabVIEW 2011, but we have customers using 2009 and 2012, if not other versions as well).

    Thank you.

    Batya


  • Zoom in &amp; out while using the pointer - this function can be disabled?

    Hello all - I need help please. Most of the time when I use my new HP laptop, while I use the mouse Touchpad Square that moves the pointer on the screen, often, sometimes the screen zoom in or out. I found a function of zoom on the laptop, but I can't find anything that says "turn off the zoom feature. Do you know how or if the zoom feature can be disabled touch pad / mouse? It is very annoying to all means must adapt to my zoom, thanks-Tim

    Hi Tim,.

    Try the following.

    Open windows control panel and on the top right, next to the display by: select "large icons".  The new layout, select the mouse option, then the tab setting ClickPad (or device settings), and then click the settings button.

    The option you're looking for is called "Pinch Zoom" (see image below) - remove the check mark next to this entry, and then click apply and then click Ok to save the setting.

    Kind regards

    DP - K

  • To use the Member in applications using EPMA in planning

    Hello

    We use the EMP Version 11.1.2.1 and I created a Dimension of accounts and members below using EPMA and now I want to use a part of the members that I created in EPMA under dimension of accounts in one app and other members in second request? How can I achieve this?



    Ex: accounts
    A1
    A2
    A3
    A4



    I want to use A1 and A2 in a planning Application and A3 A4 in the second planning Application.


    Kind regards
    A.S.

    A.S.,

    You must create the accounts Dimension in the library shared of EPMA. Then add this dimension to your applications and in the dimensions of application pane in the Middle, right click on the Member or you want to exclude the hierarchies and choose to exclude members. Please keep in mind that if you do this at the parent level, its descendants will be also excluded. To see the members who are excluded, simply right-click on the dimension itself and choose Show excluded members.

    Also check out the documentation here for more details...
    Page 153
    http://docs.Oracle.com/CD/E17236_01/EPM.1112/epma_admin.PDF

    Kind regards
    Pete

Maybe you are looking for