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

Tags: Database

Similar Questions

  • 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

  • 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

  • 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

  • The assignment of value to an element of Application via JS

    Hi guys,.

    I am trying to assign a value to an element of application using javascript. But I can't do that when I try to view with alarm the result is empty. You have an idea how can I assign a value to an element of the application using javascript?

    Another yew (action is "ASSIGN")
    {
    var moname = $(el).children("td[headers='SOURCE']").text ();
    $s ('F10_SELECTED_OBJ', moname);
    Alert ($v ('F10_SELECTED_OBJ'));
    }

    Thank you

    You cannot reference elements of apex in javascript application because they are not rendered in the HTML DOM.

    See what {message identifier: = 10343221}

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

  • 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

  • Set the 'Not available' application via the SQL statement

    Hi, I am trying to automate the deployment of applications and wonder if anyone knows how I could define the "Unavailable" via a SQL script application. In the views of the APEX_030200 scheme, there is a view called "APEX_APPLICATIONS" with "AVAILABILITY_STATUS" and "UNAVAILABLE_TEXT" columns What I want to do is to run a statement that sets the 'Not AVAILABLE' application before you run the import script.
    Thanks, J

    Hello:

    You can use the 'wwv_flow_api' to set the State of the application

    DECLARE
    ws_id number;
    BEGIN
    select max( workspace_id) into ws_id from apex_applications ;
    wwv_flow_api.set_security_group_id(ws_id);
    
    wwv_flow_api.set_flow_status (
        p_flow_id => :app_id,
        p_flow_status => 'UNAVAILABLE',
        p_flow_status_message  =>'Application being updated...')
        ;
    end;
    

    The valid values for p_flow_status are
    'AVAILABLE. '
    "AVAILABLE_W_EDIT_LINK,"
    "AVAILABLE_W_INLINE_EDIT,"
    "DEVELOPERS_ONLY,"
    "UNAVAILABLE_URL,"
    "UNAVAILABLE_PLSQL,"
    "RESTRICTED_ACCESS,"
    "UNAVAILABLE".

    CITY

  • transform &gt; represent the objects in illustrator via javascript

    Hi all

    is there a way to transform > reflect the Vertical axis in illustrator, but via JavaScript not apple and I mean does not reflect the scale H or V

    Thanks in advance.

    Hi Muhammad.eloc,

    You can try something like this:

    var totalMatrix = app.getScaleMatrix(-100,100);
    app.activeDocument.activeLayer.pathItems[0].transform(totalMatrix);
    

    for example the first element of the path in the active layer

    Have fun

  • Assign the value at the point of application of the classic report

    I have a classic report in 4.2 Apex in which a column is bound to a different page. Now, I want to store the value on which the user clicked in a part of the application. How can I do? Help, please

    Element and the value light on the element fields and the value for the column link.

    Learn more about this error. Is that when you click on the link? The destination item is protected? That would explain the error.

  • Game via the point of Application Session State

    I'm try together session state of a form using apex_util.set_session_state element and an element of demand. Have tried several configurations of the code below.

    Can someone guide me on the correct syntax to reference the application element, person_key?
    begin
      apex_util.set_session_state('P410_PERSON_SEQ', &PERSON_KEY.);
    end;
    Jeff

    Jeff,

    Glad that it worked for you.

    Is it possible to set up an example on apex.oracle.com?

    Kind regards
    Blabla

  • Try to highlight the item application via javascript

    Hello

    I don't know what I do wrong here someone maybe can enlighten us? I have the following in my
    Header HTML of my login page
    <script language="JavaScript1.1" type="text/javascript">
    function setAppItem(val){
      var req = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=dummy',  
      &APP_PAGE_ID.);
      req.add('F_LOGIN_MESSAGE', val);
      var gReturn = req.get();
      req = null;
    }
    </script>
    
    <script language="JavaScript1.1" type="text/javascript">
    function doLogin()
    {  
      var err = false;
    
      alert(document.getElementById('P101_USERNAME').value);
    
      if((document.getElementById('P101_USERNAME').value == '') ||
        (document.getElementById('P101_PASSWORD').value == '')) {
    
        setAppItem('You must enter a username and password.');
        err = true;
    
      }
    
      if(!err) {
        doSubmit('Login');
      }
    }
    </script>
    The setAppItem function is called, but it does not put the text of elements of application?

    Thanks in advance for any help!

    Hello

    Check your page now.
    I think you don't need any point or set those.
    Just the value internal node HTML DOM.

    BR, Jari

  • To access the built in functions via javascript

    Hello world

    Is there a way to call one of the functions by using javascript? For example, I added a click_box and events on the success, I can choose to continue, go to a different slide, open a file/url, etc. I can also choose to execute a javascript script.

    My question is, is that what I can choose run a javascript script, then inside this javascript, call the 'open file/url' and pass it a variable (url)?

    The reason why I want to do is when a user clicks on a link to open a URL, I want the movie to pause until they come back and click on the next button to continue.

    Unless of course there is a much easier way to achieve this.

    Thank you

    Manny

    Hi Manny

    If you look at the list, you should see that open the file or the URL is among your choices.

    What many seem to miss is that after that, you choose to open in a new window. Here, there is an option that you need to clear so that the project remains paused. Thinking about it, this little always seemed strange to me that he was just interrupted by default. I mean, if you open a new window, you'd think it would mask the Captivate movie. So why would you want the project to continue? But I digress...

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • Hide the button label Radio via Javascript

    Aloah,

    I have a problem with the cache one option button and label.

    Location:

    I have two groups of Radio with 3 radio buttons.
    Click on a radio button within the first group, I would like to hide the 2 buttons in the second.

    I tried the x_ToggleItem of javascript functions, the x_Hide and the x_ToggleItemRow.
    But all the functions to do the same thing:
    They hide only the button (input type), but not the label (not the Label of the Radio group, but the radio button label).

    So my question is:
    How to hide the button Radio WITH his label?
    Or: How I address the label in JavaScript?

    PS: in the future I will bore you guys more often with questions: P

    MFG,
    Andi

    Hello Andi,

    The problem is that the current implementation of the input element radio group and the label are "separated". There is no common parent (as it should be IMHO).

    But there is... jQuery. Using jQuery you can hide an element with the id and hide the label using the next() method.

    If something like this (where P13_RG1_3 is the 3rd option in a radiogroup):

    $('#P13_RG1_3').hide (); $('#P13_RG1_3').next () .hide ();

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

Maybe you are looking for

  • What is the difference between Action Cam model HDR-AS10A and HDR-AS10B

    What is the difference between Action Cam model HDR-AS10A andB of the HDR-AS10

  • Photosmart C4795 MAC OSX Lion

    Since the installation of Lion, I can no longer connect wirelessly with Macbook Pro my wife.  We have AT & T U-Verse with their 2Wire Modem/Acess Point.  I deleted the drivers and installed via software update.  I can connect USB and the only instruc

  • How to pass data?

    Hello I'm working on a control system where a (bidirectional) engine will run for specific data. When it begins to spin, engine should do this for a while and wouldn't change his rotation even if data for the opposite rotation comes. In this case, af

  • Error 1600 SCXI 200329

    Hello world I used my scxi-1000 chassis with the scxi-1600 daq card. Today, I get this error when I try to get data from several modules. Error number is 200329 and I have attached a screenshot for this error. Do you have an explanation for it? Thank

  • Shift register no

    I am new to multisim and indeed digital theory in general. I am trying to wrap my head around shift registers, and I hope someone can help out me. A circuit with a 74164 conduct 8 LEDs is attached. I filled A & B high if it is enabled and has a HIGH