Apex DatePicker setting session state problem.

Hi all

Workspace: hanamike

User name: test

Password: test

With the help of dynamic action, run PL/SQL, to set the session state.

Using Firefox console showing too many recursion error but session state is defined so slow.

But when the use of Ipad screen will freeze when the session state setting.

Capture.PNG

Already had the application properties, security, Mode of escape from HTML to base but still display the date value as a unicode type (c, c ++).

Please advice.

Thanks in advance.

Zack

You have set something on the change of P1_DATE1 to change the same domain, and "Remove Change Event" is set to no.

It is an infinite loop.

Tags: Database

Similar Questions

  • Setting session state using dynamic measurements?

    Hello

    I created a simple page that using a dynamic action, tells what one order when you click on the radio button:

    http://Apex.Oracle.com/pls/Apex/f?p=40415:1

    The currently selected order is stored in a page element called P1_ORDER_ID, which is referenced by the points of report. However, before refreshing the report points, I need to set the State of a session with the new value of P1_ORDER_ID manually, using Javascript.

    Is there a declarative way to do this without JS? I could not find a type of action "set session state..."

    Thank you
    Luis

    In the dynamics of Actions, choose _execute PLSQL Code as type_ action and in the _ "" * Page items to submit * "put in the name_ element."

    The PLSQL code is a dummy process and does nothing (we use it so that send us a request to the server and the value of this element).

    BEGIN
      NULL;
    END;
    
  • Apex 5.0 "session state protection violation" during the change of display only value point in dynamic action.

    The following feature gives us a message "session state protection violation", after we migrated our application from Apex 4.02 to 5.0.

    For example, in apex.oracle.com: https://apex.oracle.com/pls/apex/f?p=50676:1:

    Whenever the value of the input field changes, the URL to test changes. This is done in a dynamic action of 'change' on the version field. The action of the set value changes the value of URL to test.

    When the page is sent to the error message is displayed.

    1. Why do we get this message in Apex 5.0 and not in 4.0.2?

    2. What is the way to do this in the Apex 5.0?

    Thank you

    René

    Just try save session state - no.

  • Problem with the setting session state variable...

    So, I try to understand the context of variables.

    I have a package with a few procedures that were hard coded so I decided to change some of them to use variables in them.

    I'm in APEX 4.1 g 11 backend.

    When I run:
    BEGIN
    APEX_UTIL.set_session_state('p_collection_var', 'STORAGE_TABLE');
    END
    I thought is a variable that would be accessible by:
    v('p_collection_var');
    in the package I have.
    ERR-1002 Unable to find item ID for item "p_collection_var" in application "4500".
    It seems that as the first code is not setting the variable. I'm not sure what I am doing wrong with that.

    Published by: bostonmacosx on November 27, 2012 15:36

    Hello

    You have a page or application P_COLLECTION_VAR in your application?
    You call APEX_UTIL. Procedure SET_SESSION_STATE and V session function valid apex?

    BTW, I think you still need to write the name of the element with capital letters.

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

  • APEX Session point of the Application or the item of Session State set and get?

    I need assistance with items and values in a single Application-Apex:

    I have a List-Item (P101_UMGEBUNG) selected on the page of connection (Page 101) in my application (next to username and password).

    After this item has been selected in the list of outfits and the "Login" button pressed, I want to use this value of the element in the context of different select statements on other pages for example in reports to the 4 Page, like this:

    "select * from mytable where environment =: P101_UMGEBUNG;

    The select statement is faulty, it dosent go back any line. It turns out that the value I just chose in the list is not 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 of the element is empty:

    Unbenannt.png

    Which would cause a selected list value not end upward in session state and how to make sure he gets there?

    I've tried different solutions (process of pl/sql, javascript actions dynamics and brances) I found here in further discussions and with google, but maybe im wrong,

    Someone has a solution for this problem and could explain it in detail?

    Hello

    Value of the item on your login page is disabled by the process of "Empty the Cache page (s)". To save the State of this element, you can:

    1. remove the "Empty the Cache" page (s) process or set the condition to "never". It security hole.

    2 create the point on another page (for example, on page 10 P10_UMGEBUNG) and create processes on the login page BEFORE the process of "Empty the Cache" page (s), which will be

    Save the State of P10_UMGEBUNG. Make the process of PL/SQL:

    BEGIN
      APEX_UTIL.SET_SESSION_STATE('P10_UMGEBUNG', :P101_UMGEBUNG);
    END;
    

    After that, you can use the value of the P10_UMGEBUNG element:

    select * from mytable where environment =:P10_UMGEBUNG;
    
  • 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

  • With the help of APEX_UTIL. SET_SESSION_STATE to set an element value in Session State?

    Goal: Refresh a region but not the entire page, where the region has a query based on the value of a page element, that the user has selected. I (think) I () would be the updating of the region works well but the page element that uses the query is not in State of Session!

    The current issue: I have a procedure (APEX_UTIL. SET_SESSION_STATE) to assign a value to the user enters the Session State, but how do I get this value in the first place?

    What I have in the region:
    : P23_SELECT_RUN_DT (date picker)
    Lines extracted according to the date picker. Initially, the query retrieves all rows because: P23_SELECT_RUN_DT (date picker) is null.

    I'm trying to follow {message identifier: = 9781139},
    I added a DA (event: change) with the following PL/SQL:
    BEGIN
        APEX_UTIL.SET_SESSION_STATE('P23_SELECT_RUN_DT','???');
    END;
    But how do I specify the value to use is the date picker? I can't use: P23_SELECT_RUN_DT; It has the value null.

    I added this: point P23_SELECT_RUN_DT for an example, I'm already working:
    WS: APEX_EXAMPLES_01
    USER: demo
    PW: demo
    Application: 991203 - BPR_991203 Page 23 (tab: Master 3)
    Click the edit Pencil after 'ProgramName 1' to fill the three regions. The date picker is the third region.

    What is the approach to use? Can someone suggest an easier way to achieve this?

    Thanks in advance,
    Howard

    Howard (in training) wrote:
    Re my goal:

    The current Question:... to assign a value that the user enters into the State of Session...?

    I thought that maybe this works. I added P23_SELECT_RUN_DT 'Page to present '. I removed the former DAs. Then I added a refresh of the region for the date picker, thinking that the: P23_SELECT_RUN_DT value would be submitted whenever the changed date picker. No joy. The newly selected value is not in Session State.

    ???

    You're going to hate this :D (although I admit it's obscure uber - I was quickly running out of ideas when I noticed it...)

    The problem is the static region ID BPR_RUN details. It is not valid HTML ID attributes cannot contain white spaces. I do not know exactly why the presence of the verboten discombobulates APEX or jQuery so space overall, and I'm not venturing in the debugger to determine. I'll just point to it as another reason to respect some HTML and use the markup compliant to standards.

  • Apex 5.0 and State of Session with mobile apps

    Hello

    How to display the value of the session state of page to the Apex 5 elements using a mobile application

    When I run the page, there is no toolbar down unlike the version 4.2

    Concerning

    Gus

    Hello Gus,

    When you are in the shared components, you should see a "Flashlight" icon in the toolbar (two icons to the icon to edit the Page xx). This "Find" popup has a tab "Sessions" and "Debug".

    Concerning

    Patrick

  • Apex 4.2.2.0.11 item session state page appears

    I tried to comment on that, but find week. This problem is not... all the page elements are in SESSION STATE. Anyone encountered this problem?

    Hello

    See if that helps

    https://forums.Oracle.com/message/10720310

    Kind regards

    Jari

  • How can I get a session state value in my apex or DML text field

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    dave_414 wrote:

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    Depends on the Type of default property item.

    Use a static text with Substitutions of State of Session with a string substitution of static text:

    &USER_SECURITY_PIN.

    or the body of the PL/SQL function (for example):

    return apex_util.get_session_state('USER_SECURITY_PIN');

    or Expression of PL/SQL with a bind variable reference:

    :user_security_pin

  • Session state and checkboxes

    Hi guys,.

    I'm a little hard with the checkboxes in the APEX 4.2

    I am trying to add 2 boxes in my application to filter the data

    The problem is how then to value by default when the user opens the page, some data are displayed

    If I use the 'Default' section in the details of the box (setting may 1 as default), when I open the web page, the checkbox is marked, but in the session state is not defined so no data will appear. If I submit the new page then Yes, the data is displayed

    I could use a calculation that defined the box = 1 if it is not set when the page loads, but it would not work as the calculation would give it 1 time and again when the user the box remove the flag

    Anyone know how I could apply this?

    Thank you very much

    Hello

    so I found a solution according to the following:

    -create box 2 or more

    -create a hidden text field

    -create a header after calculation that has always defined the hidden field = 1

    -create one before the calculation of header for each box the value = 1 box only if the value of the hidden text field is null

  • Protection of session state - Arguments must have Checksum - help needed

    Hello world

    I use apex 4.0 and that you have defined:

    Protection of session state = True
    Page = Arguments access protection must have the checksum
    Point of application protection = Cecksum required - Session level
    Page data entry point Protection = required Cecksum - Session level
    Page Display-Only item = Cecksum required - Session-level Protection

    On the pages that contain an interactive report, calls to other pages updated and or to delete a record from the pharmacokinetics of recording work OK.
    I put these as follows:
    In the Interactive report link-> Link attribute column = onclick = "new top. Ext.apex.PopupWindow ({url: this.href, title: 'Change collation details', width: 530, height: 500, listeners: {'success': gReport.search}}). show(); return false; »
    Target = this Application Page
    Page = 302Item = P302_IDCLASS
    Value = #IDCLASS #.
    Page Checksum = - default user.

    The problem is the button 'Create a new record' that is on the page of interactive report. I set the button as:
    The attributes button = onclick = "new top. Ext.apex.PopupWindow({url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:302:::',_title:_'Create_New_Classification',_width:_530,_height:_500,_listeners:_{'success':_gReport.search}}).show (); return false; »
    Action when click = redirect to the Page of this Application
    Page = 302
    Clear Cache = 302

    When I click the button I get the following message:
    Session state protection violation: this can be caused by a manual change to a URL containing a checksum or using a link with a missing or incorrect checksum. If you don't know what caused this error, contact the administrator of the application for assistance.

    If I change the attributes of the button to be:
    OnClick = "new top. Ext.apex.PopupWindow({url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:::',_title:_'Create_New_Classification',_width:_530,_height:_500,_listeners:_{'success':_gReport.search}}).show (); return false; »

    It works OK, bu page elements are not clear.

    Could somebody please explaing to me what I am doing wrong so I understand my mistake?

    Thank you

    Daniel

    Hello

    If I understand correctly what you need...

    Create a point of the MY_BTN_URL application.
    You can set this element of Protection of the Session State to 'Restricted - cannot be resolved in the browser.
    Create the calculation of demand for this article
    Calculation Point: Before header
    Calculation type: PL/SQL Expression
    Calculation:

    APEX_UTIL.PREPARE_URL (
      p_url => 'f?p=&APP_ID.:302:&APP_SESSION.::NO:302::::',
      p_checksum_type => 3
    );
    

    Change your attributes of button

    onclick="new top.Ext.apex.PopupWindow({ url:'&MY_BTN_URL.', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
    

    Kind regards
    Jari

    Published by: jarola October 25, 2011 15:50

    Published by: jarola October 25, 2011 16:16

  • Links created manually on a tree with the Protection of the active Session State

    Friends,

    I met a problem and hope you can help me with.

    I created a tree using the method described in a book great John & Scott, 'Pro Express Application'. Here is an example of a link stored in my table:


    access a page, passing it parameters

    f? p = & APP_ID.:3: & SESSION.: P3_IDENTIFIER, P3_FAMILY_NAME: & P2_IDENTIFIER, & P2_FAMILY_NAME.


    When the page is executed that it works as expected. I can expand the tree and go to the page, passing it the parameters if necessary.

    However when I turned on the protection of session state these links "handmade" has stopped working. (What I expected because it contains no checksum!).

    After some research, I see that I must use APEX_UTIL. PREPARE_URL to generate the URL with a checksum. But that's where I met problems. I can't be able to pass parameter values to the calling page.

    The original tree query was:

    Select "IDENTIFIER" id,
    "PARENT_IDENTIFIER" the nest,
    Name of "TITLE."
    Link "LINK."
    null a1,
    null A2
    a < table >

    Then, I changed the option to use APEX_UTIL. PREPARE_URL:

    ....
    APEX_UTIL. Link PREPARE_URL (Link),
    ....

    But clicking on the link just gave me a blank page. I then hardcoded just the url in the select statement:

    ....
    APEX_UTIL. PREPARE_URL ('f? p ='|: APP_ID |) » : 3 :'|| : APP_SESSION |': P3_IDENTIFIER, P3_FAMILY_NAME: & P2_IDENTIFIER, & P2_FAMILY_NAME. ") link.
    ...

    and it works, the page is called, and I can see the values of the parameters passed. But I can't use this method because it is limited to a page!

    Finally, I tried to store the parameter values, the parameters and the page number in different columns of the table that the tree came and then bring together them:

    ...
    APEX_UTIL. PREPARE_URL ('f? p ='|: APP_ID |': ' | navigate_to_page |': ' |: APP_SESSION |': ' | parameter |': ' | parameter_values link).
    ...

    Go to page set: 3
    parameters a value: P3_IDENTIFIER, P3_FAMILY_NAME
    parameter_values has the values of: & P2_IDENTIFIER, & P2_FAMILY_NAME.

    He now calls the page, but the values of the parameters have become literals. so, where I would expect an identifier I see & P2_IDENTIFIER Idem for family name.

    What I am doing wrong? How can I pass values to my page called using apex_util_prepare_url?

    If necessary, the details of my environment are: Apex 3.2.1 Oracle Application Server 10.1.2.3. Database Oracle 10.2.0.3

    Thanks in advance for any help you may be able to provide.

    Hello

    & NAME. the rating is not available in SQL, you must either use: NAME or v ('NAME') or nv ('NAME') (for numbers). One of these must be concatenated in your SQL statement in the same way that you did for: APP_ID etc.

    Andy

  • Session state protection error

    Hello

    I get an error on the browser Internet Explorer (doesn't happen in chrome), which States "Session State protection violation: this can be caused by manually editing the protected page P11_NEW_FLAG point." If you don't know what caused this error, contact the administrator of the application for assistance. Contact your administrator for the application. "


    I don't know why this error because the element P11_NEW_FLAG is NOT protected at all. Here's the security properties are attributed to him:



    Capture.PNG

    It has a readonly condition associated with him making it readonly based on some logic PL SQL.

    I don't know where to start debugging? What can be the root cause?

    Thank you

    Sunil Bhatia

    Hi Sunil Bhatia,

    Sunil Bhatia wrote:

    Hi mohamed,.

    No, its not hidden item, it's a FLAG (Checkbox) I display on the front end. There are readonly. I debugged and error occurring only when the box is read-only. It automatically creates checksum argument.

    Other settings to watch?

    Thank you

    Sunil Bhatia

    You use the condition parameters of article readonly?

    CheckBox and select items does not in HTML readonly property. ReadOnly checkbox in the case of Oracle APEX is setting the disabled property. Therefore, on presentation of the page it is originally the error of session state protection.

    An easy way to do this is to write a dynamic action (run Javascript) to disable the checkbox if necessary:

    $("#P11_NEW_FLAG").attr("disabled",true);
    

    But write a front page submit dynamic action (run Javascript) to activate elements disabled on the page, so that the layout of the page works fine:

    $("#P11_NEW_FLAG").removeAttr("disabled");
    

    Reference: Apex tips and tricks - an easy way to make read-only items

    I hope this helps!

    Kind regards

    Kiran

  • 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

Maybe you are looking for

  • moving a hard drive to a new Mac disorder by iTunes?

    Hello My 2006 Macbook seems to have definitively failed. Reflection on the installation of its drive system in a Mac Pro as an additional player. Both are old, under Snow Leopard. Both have installed itunes, and both computers are allowed with my itu

  • HP Pavilion desktop computer: lack of accelerometerDLL.dll

    After I've upgraded to window 10, I got this error message everytime I restart the computer: the program cannot start because accelerometrdll. DLL is missing from your computer... Is there anyway that I can fix this? -Paul

  • Photoshop crashing on Print - EVERY TIME

    Photoshop has been crashing on me whenever I print.  If I hit Ctrl + P, or go to print in the file menu it crashes INSTANTLY.  It is not even think first.  No matter how big or small, the file is all it blocks just instantly, regardless if it is a do

  • Downloaded cs2 updated necessary serial number

    I downloaded cs2 updated according to the instructions of the cat, now I need serial number for download cs2. I removed the previous cs2 from my system

  • License transferable?

    Hey! Can you please tell me if it is possible to change a license, which is already given to a person, and give it to another? Thank you!