Disabled item problem on Apex 4.1.1.00.23

Hello gentleman's
I've got a problem. On my application i have a page with a text field with the options 'Disable' and 'Save Session State' setted to 'yes'. When i put some value on the text field using javascript and try to submit the page the following error message appears:
'Session state protection violation: This may be caused by manual alteration of protected page item P1_TEXT. If you are unsure what caused this error, please contact the application administrator for assistance. Contact your application administrator.'
I really need to save the session state of the text field, even when it is disabled, does anybody know anything about this issue?? I reproduced the error on apex.oracle.com:
http://apex.oracle.com/pls/apex/f?p=1942:LOGIN:1277533900325401
login: test
password: test
Best Regards
Rogério

What you're seeing is the intended and desired functionality of disabling an item and proof of APEX's built-in security robustness.
To accomplish what you want:
Turn off the 'Disable' option and set the 'HTML Form Element Attributes' to readonly="readonly"Keep in mind though, that now your "disabled" item can be modified by any user that knows how to access and manipulate DOM objects. If that is a concern you may need to come up with some way to validate the item values allowed.

Similar Messages

  • Shuttle Item problem in Apex 3.1.2

    Hi
    I created application based on shuttle items in apex earlier version.
    The same is not working fine in Apex 3.1.2 version.
    I'm not doing any process on shuttle items.
    Just created a shuttle item contains a list of values.
    whenever i refresh the page,(or say when i press Cancel button to go back to previous page)
    shuttle item selects all the values in the list, (i.e values in shuttle items are rolling).
    I somehow tried to replicate the same application in demo environment :
    http://apex.oracle.com/pls/otn/f?p=12822:4
    workspace: vsanthanam
    userid: vijay
    password: apex_demo
    If you see above application, whenever we press button submit. it selects all the values in
    Shuttle (actually rolling in my developement instance and not processing further).
    Is there anything that we have to take care while using shuttle in newer version?
    Thanks
    Vijay
    Edited by: Vijay Santhanam on Jan 26, 2009 9:39 PM

    Hi Arie
    Thanks for your valuable inputs.
    While analyzing the issue on two versions: 3.1.2 & 3.0.x ,I noticed few things:
    1) Limitation of 2000 values
    Had raised SR with Oracle, They have treated this as bug some time back and have temporary resolution as per BUG ID 7326899.
    This got temporarily resolved by setting higher value for PlsqlMaxParameters.
    As per my understanding: Shuttles never used to refer to this variable value In earlier version. We are on earlier version on one of the instance, where the value for this parameter is still 2000, and despite having more number of values in shuttles on page it never throws error. That shows its a change in new version and behavior is not same.
    2) Looping/ Going through all values in left box and then right box of shuttle when page submits.
    I am pretty sure at-least about the visual part that it never happened in earlier version what I see on my application on earlier version. But I am not sure about the page rendering / functionality part as this would need regression testing.
    So this is second change in shuttle behavior.
    Since Business users need all values to be present in the shuttle even after submit for resubmission i.e. again creating the records, so I have not put yet the java script suggested by you to put restriction on length so that it doesn’t loops through values.
    I went though the thread where Carl and You have discussed the issue:
    Shuttle Item in 3.1
    Thanks again Arie!
    I am also following with Oracle to get some solution other than following you :-)
    Regards
    Ravijeet

  • Apex- disabling items

    Dear's
    I would like to disable item of any type on a apex page to block the data entry from the end user. I am populating those fields with function (e.g created_by field). When I am trying to insert into database, these columns are not getting inserted. Please let me know how to restrict a page item from the user data entry? And also the field should be updated in the database with the value whatever it has.
    Dennis

    You're definitely correct that disabled items are not submitted with the form. Depending on your needs, you can add logic to a database trigger or use hidden items as Daniel suggested. You can also add your own read-only attribute to the fields by adding readonly or readonly="readonly" to the HTML Field Element Attributes. This will make the field readonly, but will allow it to be submitted. That said, for fields like created_by, created_date, updated_by, updated_date, I always recommend setting those in a database trigger since that is the most accurate representation of those fields. If you want to capture the APEX user doing the insert or update, you can use an expression like :new.created_by := NVL(v('APP_USER'), USER). This will grab the APEX user when there is one or will insert the schema user when there isn't.
    Rgds/Mark M.

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • Access for the disabled item

    Hi All!
    I have a disabled htmldb item, how can i read or access for this item's value? I would like to work with this value in the apex process.
    Now, if i use this disabled item (:P1_DIS_ITEM) in the process i get null value... But there is a value in...
    thx

    Hello:
    Disabled items are cleared out from session state upon Submit.
    Create a hidden item on your page and populate this hidden item just as you populated the disabled-item.
    In your page-process refer to the hidden item instead of the disabled item.
    Varad

  • Disabled item in plot legend when scrollbar is visible

    Problem is that plot legend shows only the plots being displayed correctly, while plot legend scrollbar is not being displayed, which is being controlled using LegPlotMin and LegNumRows properties. But when plot legend scrollbar is enabled (when number of plots exceed a certain number) then one disabled item (already being displayed in the enabled item above it) becomes visible. How to not show it while plot legend scrollbar is visible?
    Second question. If plot legend scrollbar is visible and the user has scrolled it to the bottom and left it there and then selects options where the number of plots are less than a certain threshold and the scrollbar is set to invisible, using property node; then the only lower disabled plot names are shown. So how do I set the scroll position for plot legend scrollbar. I could not find any scroll position property for plot legend scrollbar.
    Thanks

    It is true that you cannot set the index of the topmost displayed plot in a plot legend. It's a missing property! To accommodate long legends, I have used two graphs, one hidden behind the other. Both receive all the data, and their two legends are aligned side by side. In fact, I wrote a routine to align legends of stacked plots, which I've attached here for you. Maybe you'll find it useful!
    Attachments:
    align legends.llb ‏144 KB

  • HTMLDB_ITEM.TEXT : disable item !

    Hello,
    I have a question regarding the use of HTMLDB_ITEM.TEXT,
    Exemple, if my report contains the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year) year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    - the column year is diplayed but I have to disable it.
    - the column name is updated by the user.
    the save process is the following :
    for i in 1..wwv_flow.g_f01.count loop
    if wwv_flow.g_f01(i) is not null then
    update person set name = wwv_flow.g_f03(i)
    where id=:P1_ID and year = wwv_flow.g_f02(i) ;
    end if;
    end loop;
    works fine.
    My problem is : I must disable the column year, I have do the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year,3 ,2, 'DISABLED=DISABLED') year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    Now, wwv_flow.g_f02(i) is no longuer recognized !!!!!!
    Any help !
    Jina.

    Jina,
    Perhaps this posting helps?
    Re: Bug: Disabled items on tabular form
    Regards,
    Marc

  • When_Validation_Item of disabled item

    Aslam o Alikum (Hi)
    In forms 4.5 When_Validate_Item trigger fires for disabled item.
    I migrate about 300 forms from 4.5 to 9i. Now in 9i When_Validate_Item triggers are not firing for disabled item.
    How can i get the 4.5 feature.
    Best Regards,
    Nasir Zeeshan.

    The most efficient way to resolve the problem is to put the edit in the when-validate-record trigger. That is where I put all my multi-field edits. If the edit is in the when-validate-record trigger, when the user leaves the record, the WVR code runs, and you can issue the message there. The only problem is that you cannot put the cursor back into the correct field without using a timer.
    Speaking of timers, it is possible using a timer and some elaborate code, to enforce the two-field-edit as soon as the user moves the cursor away from both fields. That is, if the two fields are next to each other, the pair edit only runs when the cursor leaves the second field (if you are using Tab or Enter or autoskip). But it would run immediately after entering the first field if the user moved the cursor to a third field using the mouse.

  • Problem with Apex hosted SQL Workspace

    Hi,
    I am having trouble with using currval on this site in SQL workshop. I have a demo table and have defined a sequence via sql. I successfully insert a sequence_name.nextval but when I try to add a related child record with current value of the sequence I keep getting this:
    ORA-08002: sequence ORDERS_ORDER#_SEQ.CURRVAL is not yet defined in this session
    I can check on nextval from dual and I can select the currval from dual also but when I try to use the currval in an insert, I get the same error above. Also, sometimes I get the same message even when selecting currval from dual. Seems like a problem with Apex at this hosted site. Or does Apex SQL workshop have issues with currval.
    PM

    Scott, Can you explain a little more about the difference between a hidden item that is set to display never & the other type of item which I am assuming is "display as text saves state" and display never?
    When I viewed the source for both of these I could not see the items in source code.
    Also for an item that is passed into a popup I am exposing hidden item's identity is there a different way to pass values... here is my example:
    <!-- Begin of popup for DNS_NAME -->
    <script language="JavaScript" type="text/javascript">
    <!--
    <!-- window size was 800*600 -->
    <!-- window size was 400*300 -->
    function popupPage(url) {w = open(url,"winDnsName","Scrollbars=1,resizable=1,width=500,height=450"); if (w.opener == null) w.opener = self; w.focus(); }
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function callDnsNamePopup (IPId) {
    var IPId = document.getElementById('P103_IP_ID').value;
    var url;
    url = 'f?p=110:106:2066309280674317::::P106_IP_ID:' + IPId;
    w = open(url,"winDnsName","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    <!-- END of popup for DNS Name -->
    At the same time if I set an item as hidden and display never I cannot use it with a call to a popup...

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • How to change the font color of a disabled item

    Can I change the default color of a disabled item from gray to something else? I've tried to put style="color:darkblue" in the HTML form element attributes but it didn't worked.

    Hi,
    Code probably run, but IE do not just understand CSS what code set ?
    I did find something related
    http://www.askthecssguy.com/2007/05/shawn_asks_the_css_guy_about_s_1.html
    Regards,
    Jari
    Edited by: jarola on Oct 27, 2010 11:24 PM
    And this
    http://stackoverflow.com/questions/602070/changing-font-colour-in-textboxes-in-ie-which-are-disabled

  • 40222 Disabled item failed validation.

    When I run a Forms app, I receive this error message after I click one of its buttons:
    41012 Invalid value for field Renewal_Type
    40222 Disabled item RB.Renewal_Type failed validation.
    There is a radio group by that name in one of the blocks, although it has not been assigned to a canvas. I think the developer of this app may have intended it for another form that he was going to build, but never got to it; thus it's disabled. Is that what causes this error message or is it something else? How can I fix this? Thanks.
    Edited by: Prohan on Sep 10, 2010 9:42 AM

    I found the answer here:
    FRM - 40212 / FRM - 40222 error on a radio group during query
    I can't say I understood the explanation for why it worked, but it did.

  • Error : FRM-41316: cannot set insert allowed property of disabled item

    Hi Forum,
    I have a requirement to making the following field non editable Ship Confirm Rule+ in Order Management-->"Release Sales Orders"-->"Shipping" tab
    I tried to achieve this using form personalization using the below condition and action
    Trigger Event - WHEN-NEW-ITEM-INSTANCE
    Trigger Object - RELEASE.DOC_NAME
    Condition - :RELEASE.PICKING_RULE is not NULL
    Processing Mode - Both
    Action Type - Property
    Object Type - Item
    Target Object - RELEASE.SHIPCONFIRM_RULE_NAME
    Property Name - ENABLED
    Value - FALSE
    I could see the field becomes non editable but when i navigate to "Release Sales Orders"-->"Shipping" tab and press tab button on the field "Trip" I am getting the below error
    FRM-41316: cannot set insert allowed property of disabled item RELEASE.SHIPCONFIRM_RULE_NAME
    Even i have tried with the following Property Names set to " FALSE " but still the field is able to editable
    ENTERABLE
    ENTERABLE(APPLICATIONS COVER)
    INSERT_ALLOWED
    INSERT_ALLOWED(ITEM-INSTANCE)
    UPDATE_ALLOWED
    UPDATE_ALLOWED(ITEM-INSTANCE)
    Please help me to resolve this issue.
    Thanks in advance
    Regards,
    CSK

    Hi Francoiq,
    Thanks, As you advised I will post this in E-Business Suite
    Regards,
    CSK

  • Disable Items in User Interface - Custom

    I have been looking through the Control Identifier/Policy ID number from the spreadsheets below.
    http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=6627
    I have been unable to find the following item in order to remove it using group policy.  Can someone tell me definitively if it does not exist and if it does what is the correct ID in order to disable it through User Configuration->Administrative
    Templates->Microsoft Outlook 2010->Disable Items in User Interface->Custom.
    Under Tasks, New Task, Assign Task there is a check box next to "Send me a status report when this task is complete" that I want to remove.
    Thanks,
    -Ethan

    Hi Ethan,
    >>Under Tasks, New Task, Assign Task there is a check box next to "Send me a status report when this task is complete" that I want to remove.
    Sorry, based on my knowledge and test, there is no corresponding policy ID to disable this checkbox.
    In addition, I searched around and found that this setting should correspond to the following registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\options\Tasks
    AddToUpdList
    Regarding this point, the following article can be referred to for more information.
    Task Options not in Outlook Object Model - Registry Workaround
    http://www.outlookcode.com/threads.aspx?forumid=4&messageid=32320
    Please Note: Since the website above is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Jave script to enable and disable items

    Can any one tell me some sites that has used java script to enable and disable items.
    My target is to enable/disable an LOV and a text area when I press a button.

    You could check this example out.
    http://htmldb.oracle.com/pls/otn/f?p=11933:65:54438924816002::NO:RP
    Set the drop-down items to -1 to disable the text areas and any other value to enable them.

Maybe you are looking for

  • Oracle 10g EM is not working properly

    Hi all! I just installed a new database of Oracle 10g (10.1.0.2) and applied patchset (10.1.0.4). After all I started the OEM using emctl start dbconsole, it starts alright and I'm able to login on the database using the SYS as SYSDBA user. When it g

  • Need help, I am waiting for XML to onLoad to be called before sending return statement

    I have created a function that is going to return an array based on some XML that I am loading. Below is a visual of what I am trying to do. I am basically looking for a way to have my function wait for the xml to be loaded before the return function

  • Entire song list showin up under movies

    when i go into my videos an movie folders it doesnt show any movies or vidoes because i dont have any on my ipod but what it does show is my entire song list....how do i get my songs out of the movie folder/section

  • Hello I get an error and iTunes shuts down on step 3

    this is the error I get: Process:         iTunes [8127] Path:            /Applications/iTunes.app/Contents/MacOS/iTunes Identifier:      com.apple.iTunes Version:         10.5.3 (10.5.3) Build Info:      iTunes-10530301~1 Code Type:       X86-64 (Nat

  • Unable to open .acsm files

    I've just upgraded to ADE 2.0 and can no longer open .acsm files.  I've tried to associate ADE 2.0 to .acsm files via Windows 7 control panel and 'open with' but when I click ok, nothing happens - no error message but no acceptance of the association