Only display element - Session State

APEX 4.2.2

Display only the page element. Settings: Save Session State = Yes. Output = based on the PL/SQL code. Security > escape = No special characters.

The PL/SQL code uses htp.p to display HTML and page is rendered fine with browser showing HTML code.

But when the page is submitted, the value is not saved in session state is not available for the apex_mail.send process.

What Miss me? How can I get the value of page element to be available in session state to submit after process use?

[I tried other alternatives such as Textarea with Readonly = Always element but anyway this mess up the rendering of the code HTML. [The only thing that appears in many working on the rendering side is only show the item, but then I can't read after the value of submit processing]

Help! Thank you.

Hi Vikas,

This isn't how this parameter "based on" specific is designed to work.  If you look at the underlying HTML associated with the item, you will find that the real value of the element is distinct from what is emitted from your PL/SQL code.  The output of PL/SQL is simply what you want made on the page, but it's nothing associated with the underlying session state value.  If you have a dynamically calculated in the session state for this article, you would be better to use a calculation or specify PL/SQL in the attribute 'Source value or expression.

I don't blame yourself if you find confusing - it is certainly not clear in the documentation or the help text for item-level.

Joel

PS still waiting to see you at the WORLD KScope or Oracle OpenWorld.  You must be to avoid us.

Tags: Database

Similar Questions

  • How to set a field in a form of DML to only display?

    It seems that it would be obvious, but I can't figure out how to set a field in a DML form read-only.  Thanks for all the ideas.

    The most obvious thing is to define the type of item to display only. Save Session State to Yes if the value of the item is required in after not submit treatment or if the value is only for display on the page.

    Alternatively, if you want the element to appear as a normal text control, but do not be modifiable, set the item text field and the custom attributes type to readonly .

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

  • When you change an item type only display in hidden element its value changes from any value in value null. Why?


    Dear reading

    When to change a display one item type in the hidden element its value changes from null value any value . Why?

    I would like to use the result of the query in the hidden item, as well as to display it in report footer.

    shortly the displayed element can read footer bu area hidden point cannot be viewved in the footer box. Why?

    footer

    & P11_DISPLAY_ONLY_ITEM.

    footer

    & P11_HIDDEN_ITEM.  )

    (site of apex.oracle.com Application Express 4.2.5.00.08)

    concerning

    Enformatik wrote:

    in the part of the properties point setting its source type as query retune unique value;

    but when you set its value to the calculation (before header) it works correctly.

    It is the expected behavior. The values defined in the properties of the Source element / by default are only put in the controls of the page displayed in the browser, not in session state. To refer to a session-state item value (as in a & P11_HIDDEN_ITEM. substitution of static text) then the value must be set in session state in a calculation or process that runs before the substitution reference is returned.

    Setting the value using a calculation is the right way to do it.

  • Connect all the elements of session state?

    I need to create a record of routine that captures the current user to an APEX session state and she pours in a table of error log.

    I already have the paper table and an autonomous_transaction function defined in one of my pl/sql packages, but now I need to get information from the user's session, for example what page they were, what their item app values were, what the last request has been, etc..

    Does anyone know how to do that without grant select on apex_030200.wwv_flow_data the ID of the workspace where the logging feature?

    Wwv_flow_data contains information for all users, I want just the logarithmic function to access the current user/app/session data only. Yes, I can filter with a where clause clause, but I rather it would be more like a self filtering view that shows you your own data (defined in the schema of the apex/flow). Even better would be a function APEX_UTIL that returns the session state in a clob or varchar2 32K maybe even in the name = value format.

    My version of db is a business with Apex 3.2.0.00.27 11.1.

    You'll want to use the built-in views. Here is a sample of something that I use to record values report.

    DECLARE
    CURSOR c_items IS
          SELECT item_name
            FROM apex_application_page_items
           WHERE application_id = p_application_id AND
                 page_id = p_page_num AND
                 (region_id = p_region_id OR
                  p_region_id IS NULL) AND
                 display_as NOT IN ('Stop and Start HTML Table (Displays label only)', 'Hidden and Protected');
    
      BEGIN
        FOR r_items IN c_items LOOP
          store_report_value(p_report_id, r_items.item_name, v(r_items.item_name));
        END LOOP;
    
      END;   
    

    You can pass the values of Apex as: APP_SESSION,: APP_PAGE_ID,: APP_USER as parameters in a procedure.

  • JavaScript onchange doesn't work only not with the single display element

    Hello
    I am filling a form element based on the value of another element of form. Everything works great when the element that I am filling is a text box. However, if I do a single display element, it won't fill.
    Does anyone know why this is?

    Here's the header code:

    < script language = "JavaScript1.1" type = "text/javascript" >

    function populate_end_date() {}
    var pay_period = document.getElementById('P7_PAY_PERIOD').value;

    If (pay_period! = "") {}
    var pay_period_length = pay_period.length;
    document.getElementById('P7_PAY_PERIOD_END_DATE').value = pay_period.substring ((pay_period_length-11), pay_period_length);
    }
    }

    < /script >

    Here is the code of html form about to P7_PAY_PERIOD element attribute:
    OnChange = "JavaScript:populate_end_date();" »

    Thank you...

    Ok.

    Change display only type to as it was before (do not save the State)
    The JS below allows you to set the value of the element display only

       $x('DISPLAY_ONLY_PAGE_ITEM_NAME').innerHTML="Show this value";
    

    CITY

  • Where can I find all my States system restore? When I try to restore windows only displays the States from today until 7 days ago

    Where can I find all my States system restore? When I try to restore windows only displays the States from today until seven days ago.

    I'm trying to find the States of up to a year ago.

    Hello

    system restore points are not here forever

    It depends on the amount of space reserved for restoring the system restore points on how you

    and as a new one is created the oldest one is deleted

    http://www.windowsvistauserguide.com/system_restore.htm

    There is a box to check points over 5 days which must obviously have checked back 7 days?

    or 7 days a rough estimate on your part?

    and here's how to change the amount of space for the restoration of the system increase or decrease to restore more or less points in the future

    http://www.Vistax64.com/tutorials/76227-system-restore-disk-space.html

    http://www.vista4beginners.com/system-restore-space-used

  • Updated session state, but are not the elements

    Hi guys,.

    I have a few user contact form where you enter the idea then focusout/focusouthandler() he calls a process to see if this user already exists.

    If the user exist elements of session state are defined in the relevent (e-mail, name) values. If there is no they are set to null.

    Session States evolve as you wish, but the elements (text fields) remain empty. Someone knows how to change that to the JS?

    JS:

    $("#P15_USER").focusout(function() {
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=PULL_DATA',15);
        get.add('P15_USER', $("#P15_USER").val());
        var results = get.get();
    $('#P15_EMAIL').val($v('P15_EMAIL'));    
    });
    

    PULL_DATA process:

    SELECT COUNT(*) INTO :P_COUNTER FROM password_users 
    WHERE USERNAME = :P15_USER;
    IF :P_COUNTER > 0 THEN
    SELECT EMAIL, FIRST_NAME, LAST_NAME 
    INTO :P15_EMAIL, :P15_FIRST_NAME, :P15_LAST_NAME
    FROM password_users 
    WHERE USERNAME = :P15_USER;
    ELSE
    SELECT NULL, NULL, NULL
    INTO :P15_EMAIL, :P15_FIRST_NAME, :P15_LAST_NAME
    FROM DUAL;
    END IF;
    

    Hello

    Your application need 'print' return value.

    For example, use htp.prn. Then you get meet your variable in JavaScript 'results '.

    var results = get.get();
    $s('P15_EMAIL,result);
    

    BTW, if you're on APEX 4.x your should convert your code of dynamic action.

    Kind regards

    Jari

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

  • To find the value of a dynamic element to session state,

    Hi all

    Is it possible to find the value of an item in the session state, but the name of the element is stored in a variable
    as

    APEX_UTIL. GET_SESSION_STATE (v_variable)

    where v_variable would be the name of the element?

    Thanks in advance,
    RD

    You describe the default feature?
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDEJEJE

    DECLARE
      v_variable  VARCHAR2(20) := 'P1_ITEM';
      v_value     VARCHAR2(255);
    BEGIN
      v_value := APEX_UTIL.GET_SESSION_STATE (p_item => v_variable);
    END;
    

    I missed something?

  • LOV displayed as null when it has a value in session state

    I use ajax to Dene Kubinek cascading select list example and it works fine. I have only one small problem. After the process of database update is running, and the page is refreshed the second selection list of with the null value when it has a value of 6 session state. Even if the database is updated with the correct value users will think that a null value has been updated because it shows - select Team - rather than the team that was selected.

    How can I fix it? I have read dozens of threads on the forum about the cascading selection lists and none of them seem to address this issue. I followed messageID = 2803572. When I changed the first select list of a select list with submit it wouldn't work because the onchange process did not run.

    It's very frustrating because the first select list contains the correct value in session state, and it is to show the selected value. I only have this problem with the second select list. I don't have two selection lists, one meets the other.

    Here is the code for my second selection list:

    SELECT TEAM_DESC, TEAM_ID
    OF CEAH_TEAMS
    WHERE UNIT_ID = NV(:P116_CENTER) or NV(:P116_CENTER) = - 1

    I use the same code in another form and it works very well. The only difference is that the other form already has a value for the first list in the selection, so I didn't need additional code to check the value zero. If I don't check the null value (: P116_CENTER = - 1) I get a LOV error when the page initially loads.

    Help. Thanks in advance, Elizabeth

    Salvatore - brilliant! Of course.

    Scott

  • Display all THE columns in the session state for a collection V4.0

    I loaded columns into a collection of APEX c001 to c020. as follows
    I'm in 1.:P1_SPC_NO_OF_SPECIMENS LOOP
    htmldb_collection.add_member (p_collection_name = > 'SPECIMEN_BATCH',)
    p_C001 = >: P1_LEVEL,.
    p_C002 = >: P1_PARENT_ID,.
    p_C003 = >: P1_SPC_TYPE,.
    p_C004 = >: P1_SPC_BANK_ASSIGNED,.
    p_C005 = >: P1_SPC_TRIAL,.
    p_C006 = >: P1_SPC_CONCENTRATION,.
    p_C007 = >: P1_SPC_SERUM_TAKEN_DATETIME,.
    p_C008 = >: P1_SPC_SERUM_FROZEN_DATETIME,.
    p_C009 = >: P1_SPC_CELL_COUNT,.
    p_C010 = > case: P1_SPC_CELL_COUNT_UNIT when '?' then "else: P1_SPC_CELL_COUNT_UNIT end.
    p_C011 = >: P1_SPC_VIABILITY_STATUS,.
    p_C012 = >: P1_SPC_VIABILITY_REASON,.
    p_C013 = >: P1_SPC_INITIAL_QUANTITY,.
    p_C014 = > case: P1_SPC_QUANTITY_UNIT when '?' then "else: P1_SPC_QUANTITY_UNIT end.
    p_C015 = >: P1_SPC_COMMENTS,.
    p_C016 = >: P12_SPC_VOL_OF_SAMPLE,.
    p_C017 = >: P12_SPC_DILUTION_FACTOR,.
    p_C018 = >: P12_SPC_A260,.
    p_C019 = >: P12_SPC_A280,.
    p_C020 = >: P12_SPC_RIN);
    END LOOP;

    When I discovered the contents of the collection in session state, I don't see until c010. How can I view all the columns 'C' of a collection in session state? I know that the values are in the columns to c020 c011 as I can successfully insert 20 values into a table!

    Thanks in advance
    Paul P

    Hello

    Better create report own region for debugging.

    SELECT *
    FROM apex_collections
    WHERE collection_name = 'SPECIMEN_BATCH'
    

    You can set the status of report never when you need, or just delete the entire region.

    Kind regards
    Jari

  • Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error.

    Hi friends,

    I create three field A textfield,textfield B,C textfield and apply the formula with dynamic action.

    C = A + B.

    Now, I want to protect user could not be total change at point C, so I change it is property of the text field to display only and change in

    Settings-> save the Session State-> Yes

    After all changes when I ran page and provide the registry then it shows me error below.

    Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error, contact the administrator of the application for assistance.


    How to disable the total at point C when I use the dynamic action to calculate the Total of A + B.

    Thank you.




    Hi Maxence,

    1. in the case of a display one element

    Change your point of P67_C and change the State of Session Save-> No.

    2. in the case of a text field

    Change your point of P67_C and make it read-only

    go to the attributes of the HTML Form element-> readonly = "readonly".

    Hope this helps you,

    Kind regards

    Jitendra

  • 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

  • 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

Maybe you are looking for