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

Tags: Database

Similar Questions

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • Popup LOV selected the value not in session state

    I have a pop LOV element on a page in my application.  Once the item has been selected in the list presented, I would like to use as part of a select statement.  Select statement failed.  It turns out that the value I want the popup THAT LOV is not being saved in session state, so of course the select statement fails.  I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value is empty.

    What would cause a popup LOV value choice not finish by in session state, and how do I make sure he gets there?

    Thank you!

    If you need the value in a SQL report, you can just set "Elements of Page to submit" in your report to your LOV element definition. Otherwise, create a dynamic fire action when your LOV is changed with a set of pl/sql null process action; then set Page elements to send to your LOV element.

    Alternatively you could do it manually with your own function/Manager javascript using the '$s' Apex API by creating a dynamic action that JavaScript is triggered then the loading of the page:

    $("#PXX_YOUR_LOV").on('change',function(){
      var getValue=$(this).val();
      $s('PXX_YOUR_LOV', getValue);
      });
    

    Changing the value in LOV only updates the HTML code, the element must be submitted to the server so that the value that will be put in session state. The gurus can explain more, but the above methods are what I use depending on the situation.

    see you soon,

    John

  • How to set the value of the box check the plug-in in session state using a DA

    I want to click on the box (plug version) and set (Y or N) in session state without submitting the page.  Is it possible to do it in a dynamic action? or a code in the ? The HTML Form element attributes

    I tried the code proposed to

    Value of session state changes checkbox without submitting

    using AJAX, but can't make it work.

    I also tried the following code, but doesn't seem to work for checkboxes.

    <script language="JavaScript" type="text/javascript">
    function f_setItem (pItem)
    { 
    //alert('running fsetItem');
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',&APP_PAGE_ID.);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
      get = null;
    }
    </script>
    

    More modern solutions using a DA?

    Should I use an event 'onCheck' or 'onchange '?

    Thanks in advance

    PaulP

    APEX V4.2.3

    DB EA 11.2

    APEX listener V2.0.5.287.04.27

    13 blue-gray theme

    IE9.0.8112

    FF26.0

    Paul, in fact, you can use a dynamic Action.

    Say your question change event, say P1_CHECKBOX.

    So here's the clincher.

    Action: execute the PL/SQL Code

    PL/SQL code:

    Start

    null;

    end;

    Page to submit items: P1_CHECKBOX

    That's all.

    Read the help on the elements of Page to submit

    «Specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your 'code PL/SQL'.»

    Kofi

  • BlackBerry Smartphones cannot load games via the media manager-

    Hello

    I hope someone can shed some light on why I can't load any 8700 games on my Blackberry. I use the loader application media manager and every time it comes up with the following message:

    "The following modules can not be loaded because their digitalsignatures were not valid."

    The .cod files and my 8700v isn't about RIM 4.2

    Any help much appreciated.

    Sorted! -Read the thread elsewhere in the Forum about unlocking BES / IT restrictions - large frequently asked questions, worked a treat, thx

  • Updating a game via the Windows 7 Games Explorer

    The following error occurred when I check online for updates of game. Windwos fails to connect on the server game updates check your network connection or try again later.

    This is the new feature in Windows 7 that automatically analyzes the updates of the game, I'm right click on a game, and then click Search online updates.

    It seems crippling sertin Add ons in Internet Explorer resolved the problem I can't remember where exactly they must have been corrupted?

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

  • Demo: by passing the value of the point through 'Session invalid URL' does not

    I've created a demo for this problem on apex.oracle.com. All links point to applications created it so you can try it yourself.

    I have two requests:
    -* 47324 * is the application of 'work '.
    -* 47326 * is the sign in application
    I want them separate, because I'm going to add more applications 'work' in the future and I want to have a single login for all applications.

    When a user accesses the demand for work before I do, I want to put a value to the point of application MYPARAM. This value will be needed during the login process and will be different for different users. The URL of the user's request looks like this: http://apex.oracle.com/pls/otn/f?p=47324:HOME:MYPARAM:789

    When a user clicks on this link, it is not yet connected and so for the 'invalid URL Session"the scheme of authentication of the application, which is set to" f? " "p =47326: LOGIN: & SESSION.: APP_ID_REDIRECT, INVALID_SESSION_ID,MYPARAM: & APP_ID, & SESSION,& MYPARAM."
    As you can see, I'm moving the value of MYPARAM to the SIGN in application - and that's my problem - the value passed to MYPARAM is always zero (click on the link above and try).

    APP_ID_REDIRECT indicates APEX to redirect this application after successful login. For purposes of testing the "Invalid session ID" is also passed to the sign in application.
    You can see (shown on the login page) as the invalid session ID and the ID of current session are different! I suspect that is the reason why the value of MYPARAM is not passed.

    So my question is: is there a way to convey the value of an element via the 'invalid URL Session?


    I know, there is a solution to this problem by offering users the URL directly to the sign in application (http://apex.oracle.com/pls/otn/f?p=47326:LOGIN:APP_ID_REDIRECT, MYPARAM:47324, 789). I ask this just out of curiosity.


    Thank you
    Swear

    Published by: Jure2 on August 21, 2009 10:57

    Swear,

    When the Session is not valid URL is parsed and ' redirect to ' there is no session state containing the item such as values for & MYPARAM. because it has not yet been the opportunity to set session state.

    Scott

  • Get the session state of the order of the day in javascript

    Is there anyway to get the value of an element of demand through jS?

    [I have an app that loads a different source into an iframe depending on which page the user is.]  I can load this value in session state for a part of the application (or a point probably page) but for the redirect which is made in java script I don't know how to get the value of session.  [I do not have it as the value of the client side.]

    Thanks guys, but I think that it would give me only the value in the DOm not in session state.  I had to make a page zero point and dynamic action that populated the in the DOM, and then I could use JS ($v) to get the variables.

    I couldn't find a way to get session state directly.

  • The session-state item values are used is not in the redirection Page

    Hello
    I have a P7_PERIOD point Page, I put the value of the session state for the click of a button. I can confirm that the value of P7_PERIOD is correctly set in session state after the button is clicked. When I try and P7_PERIOD allows to set the value of an element in another page (P17_PERIOD) on the click of a button, it does not recognize the value of new session state.

    For the second button, I'm telling you "Redirect to Page in this application" on Page 17
    Place these items: P17_PERIOD
    With these values: & P7_PERIOD.

    P7_PERIOD has the correct values in session state, but passes the old values to P17_PERIOD during the click on the second button.

    Any suggestions are greatly appreciated.
    Thank you
    John

    Johnny98 wrote:

    I have a P7_PERIOD point Page, I put the value of the session state for the click of a button. I can confirm that the value of P7_PERIOD is correctly set in session state after the button is clicked. When I try and P7_PERIOD allows to set the value of an element in another page (P17_PERIOD) on the click of a button, it does not recognize the value of new session state.

    For the second button, I'm telling you "Redirect to Page in this application" on Page 17
    Place these items: P17_PERIOD
    With these values: & P7_PERIOD.

    P7_PERIOD has the correct values in session state, but passes the old values to P17_PERIOD during the click on the second button.

    Redirections are run in the browser using URL generated during page processing. This means that the redirect for the second button URL uses the value of P7_PERIOD is during the broadcast of the page, not as it is in session state after it is defined by the first button.

    The second button must execute a submit and branch to retrieve the new value of P7_PERIOD. If there are page accept treatment that should not be run when the user clicks this button, use a branch point before the execution of these processes (for example on submit: before calculating), or condition the process on the other buttons.

Maybe you are looking for

  • After you install firefox, it flashes approximately every 6 seconds.

    I have downloaded and installed firefox, and restarted the computer. When I click on firefox, it starts with my homepage, stays on the screen for about 3 seconds, goes and then returned to the screen in 3 seconds approximately. This sequence continue

  • HOTMAIL SAID SHOCKWAVE AND SILVERLIGHT WINDOW ARE "DISCONNECTED"?

    THIS MEANS THAT MY EMOTICONS AND TEXT COLOR ARE NOT AVAILABLE - CAN I SOLVE THIS GOLD IS A WINDOWS PROBLEM - PLS HELP ASSOCIATES

  • EA8500 put in place the problem

    Current nine EA8500 to install it on a system Win10 (fully updated).  Router works through internet modem signal cable to the computer.  But the computer can not find the router.  I tried 192.168.1.1 via a browser (PW 'admin').  Can not find the rout

  • Mass PIN is broken.

    I have a HP Envy dv6-7222nr The spit of land on my charger was broken up. Is it possible for me to continue to use my charger? Also, is it possible to replace the power cord or should I just get a new charger? If it is possible to replace where I can

  • Cannot access IIS related program after than esxi 6.0 randomly rebooted itself.

    Hello, looking for help. If my only randomly restarted esxi (just upgraded to 5.5 a week ago) 6.0 server. I checked the newspaper and for some reason, he felt that he had to change all my firewall settings. I changed them back what I could say, but f