Read-only input field error

I have an input field marked read-only on a form.  When I run the application, select the read-only field, press enter, then Save (validating action), I get a WebDynpro exception saying that I attempted to modify a read-only context attribute.  This does not happen if I select the field and press other keys (such as characters)...  only when I press enter.  If I make the field disabled (instead of read-only), this error is avoided because I cannot even select the input field - but I would rather use read-only because it doesn't gray out the field at runtime.  Is this a bug, or am I missing something?
-Dave

When you select the inputField and press enter the OnEnter action of the inputField is being called.
When you disable the inputField it prevents you from entering values as well as accessing it actions also.
When you try to keep you context attribute as read only and keep the input field as enabled it is similar to trying to modify a read only attribute which is not permissible.
Hence the error.
Revert for further clarifications.
Message was edited by: Noufal Kareem

Similar Messages

  • OVS on read-only input field

    OVS will not allow me to change the value of a read-only input field.  If the input field is set to read-only, the OVS selection table does not display an 'OK' button, only close.
    Value cannot be copied (field is not editable)
      I do not want the field to be editable on the screen, but only allow input via the selected row in the OVS.  Any suggestions?
    Edited by: Bob DeNuto on Jul 31, 2008 1:22 AM

    Using Dictionary Search Help and OVS in this case will disable the Copy button and you don't have any control.
    Use Freely Programmed Value Help, this will solve your problem
    https://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
    how to provide f4 help to the read only input field
    Abhi

  • Search help unavailable in Read-only input field since EHP4

    Dear Experts!
    I have a problem with a Portal page since the deploy of the EHP4. The page has standard input fields with Search Helps. I needed to have the input field non-modifiable so the user would have to use the search help to get the proper information.
    Prior to the EHP4 installation, I set the input field to Read Only in the WebDynpro explorer, this disabled the editing while permitting the user to use the Search Help.
    Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    Do you know if there is a way to allow the search help on a read only field?
    Thanks so much for your answer,
    Brian Foster.

    >Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    This was a conscious design decision on SAP's part that disabled or read-only fields should no longer fire value help.  I am aware that this situation was used in the past as you describe.  It is even still used in SE80 for the Web Dynpro ABAP wizards. However usability studies showed that this often confused end users and therefore it is no longer allowed.  The field must be input enabled to fire the attached serach help.

  • How to populate read only input field or text view form value help only

    Hi experts,
    I have one requirement to populate a read-only field or text view from value help.
    User cant put any value there.value comes only from the value help.
    For example,
    when we read context using Code Wizard,we cant type any value there.value only comes from value help.
    How to implement that functionality?
    Please reply.
    Thanks in advance,
    Subhasis.

    Yes it is possible.
    1.Create a context Attribute and then bind this attribute to the Text view UI element.
    2. read context attribute and then set value to the context attribute like this way.
    DATA:
        elem_context1                        TYPE REF TO if_wd_context_element,
        stru_context1                        TYPE if_first=>element_context ,
        item_potxt                          LIKE stru_context-potxt.
    get element via lead selection
      elem_context1 = wd_context->get_element(  ).
    stru_context1-potxt = 'PO'.
    elem_context1->set_attribute(
        VALUE  = stru_context1
        name   = 'POTXT'
    thanks
    Suman
    Edited by: suman kumar chinnam on Sep 9, 2008 12:12 PM

  • Read only af:inputText being rendered as "span" instead of read only input

    I am using JDeveloper 11.1.1.6.0
    I have noticed that when using components such as "af:inputText" and "af:inputDate" with the "readOnly" attribute set to true, the resulting render is a label as a "<span>" element as opposed to a read only <input> element which I would have expected. I see the expected behavior if I utilize the JSF "h:inputText" component with "readOnly" set to true, however I cannot utilize the JSF component as it does not appear as though I can get "autoSubmit" behavior to work with the JSF component so that will not work. To add on to the oddness of the behavior, if the af:inputText has its Rows attribute set to be greater than 1, it will render as a read only <input> element as opposed to a label.
    In addition, the af:inputText's default readOnly form looks glaring when using the simple skin or other skins based on simple. It adds a box that wraps around the exact length of the text in the inputText as opposed to the amount of area that the inputText would have consumed if it was not in "readOnly" mode.
    Is there any way to properly get the af:inputText to render as a read only input as opposed to the label that it is currently being displayed as?
    Thank you.

    Hi,
    its a decision made by the component renderer. If this is a problem for you and if you have a customer support contract then you could file a service request for a change.
    Frank

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • All CS2 apps crash with "Read Only Memory Exception" error.

    Machine Specs.
    Apple G5 1.8ghz DP
    OS X 10.4.10
    It doesn't matter which one I open, they all crash with the same error. This started when a user placed a support ticket for their mac not starting up. I wasn't able to save the user so I created a new user, and then moved their desktop files over to the new user. However the only files I moved were those on the desktop, and their Notes data directory.
    Thinking my job done I marked the tickets closed and walked away.
    I got a call later when the user came into the office and the issue was that Indesign CS2 was crashing with a "Read Only Memory Exception" error. I first deleted the Preferences on the machine. That didn't work.
    So I created a new user to see if it was the user causing the errors. I received the same error when opening Indesign CS2 from the brand new user account. I also tested all other CS2 programs and got the same errors.
    Next I tried deleting the CS2 programs and re-installing them. No luck, same error, even with a new user. I have not re-installed any plug-ins with the new App installs yet.
    Removed all fonts, and ran a font cache cleaner. Same error.
    Finally, the last thing I've tried is to manually remove every adobe application on the machine. Acrobat 5/6/7, CS1, CS2...etc. I have also removed any Adobe files/folders in the //library/, and /$home/Library/.
    Yet I still get the same error. Short of a complete wipe I'm not sure where to proceed next. I'm really confused and hoping someone can give me some clues.

    Thanks to a comcast permissions error any new files I upload to my comcast.net pages requires the administrator username/password to even see the file to download it. Simply giving out the URL for new files results in page not found errors.
    So for the forseeable future I don't see any way to upload this file correctly. Its there on my webspace all 63megs of it. If I login through the FTP account I can upload and download to my hearts content but since anonymous access is disabled I'm not giving out my administrator login info.
    I've got a gig of space, using 22mb of it, and can't upload any more files because no-one has permissions to access them.
    I spent a half hour on the phone with comcast trying to figure this out. However I don't know whats going on with their end. I have a trouble ticket open for a level 3 tech, we'll see whats going on.
    So the Font Scrubber will remain unavailable for the time being unless someone wants to give me guest upload access to a FTP account. I'm not opening a fileshare account with anyone, don't like'm.

  • Disk Utility says: "Unable to read FAT (Input/output error)"

    I have a Western Digital Passport external hard drive factory formatted as FAT32. It worked as advertised for over half a year before it suddenly stopped working and refuses to mount on the desktop (it is visible in /dev). No odd sounds and the disk or other problems, a different USB cable makes no difference.
    The disk shows up as an empty disk in Windows 7 even though it is supposed to contain a small iTunes library. I have tried to repair the disk in Disk Utility in OS X 10.6.4. This is the latest attempt to repair the disk, copied from the log:
    2010-08-10 15:58:44 +0200: ** /dev/disk2s1 (NO WRITE)
    2010-08-10 15:58:44 +0200: ** Phase 1 - Preparing FAT
    2010-08-10 15:58:44 +0200: ** Phase 2 - Checking Directories
    2010-08-10 15:58:44 +0200: Unable to read FAT (Input/output error)
    Does anyone have any recommendation on repair/recovery applications? I own a copy of DIskWarrior already but DW is a HFS-olny repair app…

    Hi Niklas,
    have a look at TestDisk http://www.cgsecurity.org/wiki/TestDisk
    Regards
    Stefan

  • OAF: Error While Formatting a Read Only MessgeTextInput field of an AdvanceTable "$#,##0.00" format.

    Hi Gurus,
    Please see the below issue I am facing while formatting the field in OAF.
    Situation:
    Custom BidPG page extends a shared region.(sharedRN.xml)
    and in SharedRN I have a advance table, with 5 columns each having  MessageTextInput read only Items.
    While the page is getting loaded values are coming from action fired in the PFR. and getting formatted with a $#,##0.00 format. which I have done over bean of all MessageTextInput items
    using below code in process request.
    Formatter formatter =  new OADecimalValidater("$#,##0.00;($#,##0.00)", "$#,##0.00;($#,##0.00)");
    OAMessageTextInputBean NetincPerMac = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("item243");
    NetincPerMac.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    Above formatting is working for below cases.
    285 becomes $285.00
    230.45 becomes $230.45
    But in case if there are numbers like 234.254 it will be formatted as $234.254. Here it wont set the precision to 2.
    I want to display till only 2 digits after decimal.
    please let me know Where I am going wrong or missing some steps to do so.
    I have tried below approaches but it did not worked out for me.
              OADecimalValidater dval= new OADecimalValidater("$#,##0.00;($#,##0.00)", "$#,##0.00;($#,##0.00)");
               dval.setMaxPrecision(2);        
              Formatter formatter = dval;
    Also , I have tried to set Currency Code as well to USD but it didnot worked out for me.
    Please let me know how we can set the precision to 2.
    Please note: in process request I dont have data in the bean, I have tried writing a method in controller and setting precision to 2.but it errored out for NULL values coming from bean in process request.
    Please reply. Its an urgent issue needs to be resolved.
    Thanks,
    Premanshu

    On another link I found the following :
    BKI4007E
    File filename cannot be read. Reason: errno(errno number) errno text.
    Explanation:
    Data could not be read due to some system error. Check errno text for further information. If this error recurs, this might indicate some hardware problems.
    User response:
    Contact your system administrator.
    The Link:
    http://ezbackup.cornell.edu/techsup-v5.4/ibmdocs/messages/html/anrcms5878.htm
    Regards,
    Siddhesh

  • Help with read only text field

    trying to refine a KW form
    I don’t want user to enter value in a box so I made it read only.  $<input name="proptax" type="text" size="10" readonly="true">
    Validation says:
    "true" is not valid value for the "readonly" attribute in any of the currently active versions. See the above warnings for more details.[HTML 4.0]
    So now what?

    DW's validation gives me an error.  W3C  says it's ok.  I wonder why DW (v8) disagrees.
    Actually I 'disabled' the field instead which actually works better for me but they all behave the same,  errors in DW  and ok in W3C
    Thanks

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Read only List-Field

    HI Folks
    It seems to me that there should be an easy answer to the following
    problem, so much so that I feel foolish for submitting it. However, since
    this is my first posting, it is usually o.k. to be an dimwitted idiot.
    Is there any way to have a list field (i.e. scroll list or drop list) that
    doesn't display the icon at the right side of the box (the drop arrow or
    scroll icon).
    We wish to display an item from the list in a read-only fashion, thus is
    not any need to display the list, just the corresponding item from the
    list. (i.e 'sex' it comes from the database as a 1 (Male) or 2 (Female),
    and rather than display the 1 or 2, we would like to display the 'Male' or
    'Female'. )
    Since we are displaying the records in an array and the array field is
    mapped to an object that corresponds to the database table, extra fields
    for translation, including virtual attributes, in that object fowl up the
    writing to that database table. And, of course, the Drop list adds some
    vertical height to the array field, screwing up the esthetic beauty of the
    screen.
    Thanks for reading this.
    -later
    -labeaux
    [email protected]

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Read-only/hidden fields in self request form

    I have a prepop plugin for one of the field which generates a number from an oracle sequence, i don't want requesters to modify it, so I would like to either hide it or make it read only.
    Also, can i put some label/help text to put in some instructions?

    Have a look at the following link for section- *19.1 Step 1: Creating a Request Dataset for the Resources* -> *19.1.1.3 The AttributeReference Element* ->Optional Properties -> approver-only
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/request.htm#CIHGBGBC

  • Read-Only data fields/parameters

    Hi
    How can I make a data-field (parameter) Read-Only?
    For instance : let's say, someone (an Admin) has filled in data into a user form, and saved it. Someone else (who does not have similar Admin status) signs in, and views the form.
    I want the second person to be able to view as well as Edit the form. But, not ALL the fields. Some fields should be uneditable (i.e., read only). He can see the data in those fields. But, he is not allowed to modify them.
    How is this done?
    Thanks.

    example how this field is non-editable on condition basis, you can use your condition
    <Field>
      <Display class='Text'>
        <Property name='value' value='Solanki'/>
        <Property name='title' value='Last Name'/>
        <Property name='disabled'>
          <cond>
            <eq>
              <i>10</i>
              <i>10</i>
            </eq>
            <s>true</s>
            <s>false</s>
          </cond>
        </Property>
      </Display>
    </Field>

  • Default value for Read-Only Picklist Field

    Hi, all--
    I would like to have a default value ("Undetermined") for the "Associated Account" read-only picklist value. I have an account record of this value for this purpose. This is because if there is no value in the field, the record will not be included in a report that includes the field. I do not want to make the field required at this point.
    Field management doesn't appear to allow any default value for read-only picklists. Does anyone know how to get around this, either at the lead record stage or at the lead report stage (without resorting to an analytic, which won't work for what we are doing)?
    Thanks.

    That's a great question. It doesn't appear as though you can select it from the typical method of Admin | Application Customization | Lead | Lead Field Setup | Associated Account.
    Have you tried creating a workflow to populate the field using Before Modified Record Saved?

Maybe you are looking for

  • How can I sync my iPhone with a new iTunes library and not loose apps?

    Up until a few days ago I was syncing my iPhone with my PC notebook. Long story short, the machine crashed and I had to re-install. luckily I had a backup of all of the music from my iTunes library which is now hosted on my Mac Mini, but I didn't hav

  • Back up from computer and icloud failed...

    My ipad 2's home button was not responding properly. I was adviced to restore the device by the retailed seller. I backed up the device to both icloud and computer. I've been using icloud for a long time. Later, I hard reseted the device reloaded it

  • Why no BCC UI for inventory management in ATG?

    As per my understanding, inventory of SKUs should be maintainted by business users. But, I don't see option(UI) for that in BCC. Is my understand wrong? If not, what is the strategy Oracle/ATG recommending business users to maintain inventory managem

  • How Do I avoid the SIGN IN screen in Windows XP Pro?

    I just changed my Hard Drive on my TE2000 and installed Win XP Pro SP 2. Now when I boot up I have a sign-in window with my name and blank password diagram that I just hit YES and then it takes me to my DESKTOP. When I want to shut down or restart It

  • Toplink.jar/manifest/issue

    Hello! I need to read library-informations with ANT-Task jarlib-display. I use Toplink 9.0.3 and it would be nice to have an useful toplink manifest - file with package specifications. regards Harald.