Updating fields with FRM-40200

Hello all,
I'm using Oracle10g with Form6i with XP sp2. I want to update a block's fields and i have a warning message FRM-40200 (field protected against updated). Here is my block and fields properties
block TypeRelation => insert allowed no; update allowed yes; delete allowed no
fields Nam => insert allowed no; update allowed no; delete allowed no
Type => insert allowed no; update allowed yes; delete allowed no
Relation => insert allowed no; update allowed yes; delete allowed no
When i want to update Type and Relation fields, a FRM-40200 is display.
Do you show me how to resolve this?
Thanks.
MK.

My block isn't a block from DB. What i do is copying a single record from another block (displaying purpose only), display 2 lists items for user to choose and update DB with a new info.
GO_BLOCK('F55150B1');
     SET_BLOCK_PROPERTY('F55150B1', INSERT_ALLOWED, PROPERTY_FALSE);
     SET_BLOCK_PROPERTY('F55150B1', DELETE_ALLOWED, PROPERTY_FALSE);
     SET_BLOCK_PROPERTY('F55150B1', UPDATE_ALLOWED, PROPERTY_TRUE);
     SET_ITEM_PROPERTY('F55150B1.CONTACT_TYPE_LIST', UPDATE_ALLOWED, PROPERTY_TRUE);
     SET_ITEM_PROPERTY('F55150B1.CONTACT_FUNCTION_LIST', UPDATE_ALLOWED, PROPERTY_TRUE);
     SET_ITEM_PROPERTY('F55150B1.CONTACT_TYPE_LIST', INSERT_ALLOWED, PROPERTY_FALSE);
     SET_ITEM_PROPERTY('F55150B1.CONTACT_FUNCTION_LIST', INSERT_ALLOWED, PROPERTY_FALSE);
-- copy from F55150A
     :F55150B1.CONTACT_NAME := :F55150A.NOM;
     :F55150B1.MEDIA_NAME      := :F55150B.MEDIA_NAME;
     :F55150B1.MEDIA_TYPE      := :F55150B.MEDIA_TYPE;
     :F55150B1.PIG_KEY_NO      := :F55150B.PIG_KEY_NO;
     :F55150B1.MAG_KEY_NO      := :F55150B.MAG_KEY_NO;
     :F55150B1.TYPE_NO               := :F55150B.TYPE_NO;
     :F55150B1.FUNCTION_NO     := :F55150B.FUNCTION_NO;
-- reset lists items                              
     CLEAR_LIST('F55150B1.CONTACT_TYPE_LIST');
     CLEAR_LIST('F55150B1.CONTACT_FUNCTION_LIST');
-- populate a control list item
     POPULATE_LIST('F55150B1.CONTACT_TYPE_LIST', 'RECORD_GROUP_CONTACT_TYPE');     
     IF :F55150B.TYPE_NO IS NOT NULL
     THEN
          :F55150B1.CONTACT_TYPE_LIST := GET_LIST_ELEMENT_VALUE('F55150B1.CONTACT_TYPE_LIST', :F55150B.TYPE_NO);
     ELSE
          :F55150B1.CONTACT_TYPE_LIST := GET_LIST_ELEMENT_VALUE('F55150B1.CONTACT_TYPE_LIST', 1);
     END IF;
-- populate a second list items with the control list item
     GO_ITEM('F55150B1.CONTACT_TYPE_LIST');
     EXECUTE_TRIGGER('WHEN-LIST-CHANGED');
The only fields that could be updating are F55150B1.CONTACT_TYPE_LIST and F55150B1.CONTACT_FUNCTION_LIST. Others fields are lock for update.
Thanks for your helps.
Minh Khail.

Similar Messages

  • Display value instead of key in input field with LOV?

    Sorry, this is so basic I'm sure it must be easy but somehow I can't find it in the documentation. The LOCATION table contains a foreign key referencing the CLIMATE table. As well as its primary key, CLIMATE has a column called NAME holding the name of the climate (e.g. temperate, tropical, etc.). The user must be able to update the climate value for the location he is working on. So I have a list of values which looks up possible climate names, the user selects the name he wants and the value gets set in the LOCATION table. That works, but the problem is that the input item displays the key value of the CLIMATE record, and I need it to display the value of NAME instead. Of course I can have another field showing the name, but that is messy, the user doesn't understand the key value and shouldn't have to see it. So how do I make one input field display the NAME, while actually updating the key value from the LOV choice?
    Thanks

    Thank you, Joseba. It does help to some extent. Now I have a non-updatable field with the climate name in it, and below that is the magnifying-glass icon that invokes the list of values. I guess that's not bad, and I can put a label next to the magnifying class saying "Click to select climate". So it's better, but still looks very odd compared to updating fields that are in the LOCATION table itself, where it's an updatable field and the maginfying glass is right next to it. Really the user should not have to behave differently just because the database chooses to hold the value that he wants to alter as a reference to another table.
    Is there at least a way to put the list of values magnifying-glass next to the field that displays teh value, rather than underneath it? They are all inside a thing called "af:panelFormLayout", and I tried setting MaxColumns to 2 in its properties, but it still won't let me move the list-of-values field alongside the other one.
    Thanks.

  • "FRM-40200: Field is protected against update"

    "FRM-40200: Field is protected against update" ...
    hi guru,
    when im about to check the checkbox in transaction statuses in receiving-> transaction status summary . to  resolve the pending receiving transaction in PO, this error occurs "FRM-40200: Field is protected against update" ...
    Thanks

    Hi,
    In this form you may delete the record but won't be able to update it.
    Thanks,
    PS.

  • PHP Show if hides update fields, but they get overwritten with an empty string

    I have an issue with a page where some update fields are displayed depending on who is logged, for example:
    <?php if ($row_Users['UserID']=="101"){ ?>
    <input <?php if (!(strcmp($row_lodges['101_finalist'],"Yes"))) {echo "checked=\"checked\"";} ?> type="checkbox" name="101_finalist"  value="Yes"/>
    <input type="text" class="rankfield" name="101_rank" value="<?php echo($row_lodges['101_rank']); ?>" />
    <?php }  ?>
    <?php if ($row_Users['UserID']=="102"){ ?>
    <input <?php if (!(strcmp($row_lodges['102_finalist'],"Yes"))) {echo "checked=\"checked\"";} ?> type="checkbox" name="102_finalist"  value="Yes"/>
    <input type="text" class="rankfield" name="102_rank" value="<?php echo($row_lodges['102_rank']); ?>" />
    <?php }  ?>
    The issue I have is that if User101 is logged in and updates fields 101_finalist and 101_rank, it overwrites 102_finalist and 102_rank with an empty string.
    Is it possible to prevent each user from seeing the other fields for other users, and prevent the existing values for those other users not be overwritten?
    Hope that makes sense!
    Thank you.

    That would mean multiple nominations when really there only needs to be one nomination per category in any given country.
    It would be:
    1, 345, 101, Borana Lodge, 7, 2, Yes, 1
    1, 345, 102, Borana Lodge, 7, 2, Yes, 3
    1, 345, 103, Borana Lodge, 7, 2, No, NULL
    Instead of:
    1, 345, Borana Lodge, 7, 2, Yes, 1, Yes, 3, No, NULL
    Sorry, Lodge isn't in the nominations table, the list above is what is displayed on the site. Lodge gets looked up in the Ldoges table.
    At the moment it works like this:
    People can visit a website and vote for lodges in different categories, giving them a score out of 10 for each.
    If a lodge gets a vote in a particular category an admin person creates a nomination for that lodge, in that category.
    And the last bit is where judges login and tag the ones they think should be finalists.

  • Issue with field data type NUMBER(22,5) while updating field data.

    Hi,
    I have a field with data type NUMBER(22,5).
    While inserting or updating field data it should take 17 digit and after decimal point 5 digit total 22 digit.
    I set 22 for maximumLength property of messageTextInput field.
    While updating field I am getting following problems,
    1) I provide the value as 1234567890123456789012 (22 digit) and click apply button.
    then I got error message as
    Error
    मैकेनाइजड दो पहिया/तीन पहिया वाहन - Value 1234567890123460000000 exceeds the maximum allowed value (NUMERIC (22, 5))
    2)then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)
    The I tried with simple SQL insert statement to insert data and it successfully insert 12345678901234567.12345 value.
    Any item property I missed here to set?
    Please suggest.
    Thanks & Regards,
    Sagarika

    hi
    according to
    " then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)"
    this statement ,it seems that it is definitely applying round or somthing like that function in the code before inserting value in the table("try with select round(12345678901234567.1234 ) from dual u will get the same result = 123456789012345600 ") ,
    bcz u r able to insert the same directely into the table using insert statement so kindely have look on the code if something like this is not happening there.try to check code in related EOimpl class
    try to to use debugging mode ,and the 23 char problem is related to maximum lenghth of text box make it 23 it will get resolved and u will be able to enter 17 digits with 5 digits after decimal point
    thanx pratap

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • Update Date field with mm/dd/yyyy format

    I have a Field with Date Type then I have to update it with sysdate but only with the mm/dd/yyyy (not TIME)
    I make:
    UPDATE TABLE
    SET DATE_FIELD = to_date(to_char(sysdate, 'mm/dd/yyyy'),'mm/dd/yyyy')
    Is There a better way to do it?????
    Thanks!

    You can use
    trunc(sysdate)
    for the insert.
    Regards,
    Gerd

  • Multi-Row Update form with wrapped fields

    Hi,
    I have a multi-row update form with too many fields to fit on the screen without having to scroll. Is it possible to wrap the extra fields onto a 2nd line.
    So each DB record will actually span 2 srceen rows and fit nicely into my browser ??
    Thanks for any help,
    Brandon

    It is possible, but would require some serious work on the report template, to create a custom row template.
    I started to do this at http://htmldb.oracle.com/pls/otn/f?p=24317:191 but realized that it is hard work. Also, where would you show the headings for the second part of the row (split onto the next line)?
    Instead, I would use the Show/Hide columns technique (client-side scripting) to reduce the number of columns shown. Search for it on this forum. Carl and I have some good examples out there.

  • Update new field with existing data programmatically

    I have a requirement to write a code that update an existing lookup field.
    We are running sharepoint 2010. We have a content type, which is used throughout all the sites. The content type has a field called Product, which is a lookup field for all the products we have. The field also contains subproducts. For example, a product
    by name PR1000 has a subproduct PR1010 all in the same drop down menu.
    Now we want to change this grouping and separate them based on product and subproduct. I have created new field called Parent Product (PP) and Child Product(CP).
    I would like to programmatically update the Parent Product field with Product and Child PRoduct field with child product if any. So here is how it works; if an existing item or document has product PR1010, I would to update PP with PR1000 and CP with 1010.
    The problem I am having in order to start this project is the product field is part of every document library and lists and there are 1000s of items with data for product.
    Please help with ideas or suggestions. I am thinking of a feature event receiver, which when activated will automatically update every item with product field not empty.
    Thanks for your help in advance.

    As Bruno suggested ,if its on time activity and on the all site then so go with Powershell 
    script. use feature event receiver when it require on the selected site and if this require to extend
    other sites so that contol will be at your end,else you need to again modified the powershell script.
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Update text fields with xml data based on DDL selection of an ID number

    Hi guys,
    this one should be straight forward, but I cant seem to find a straight forward answer.  In a nutshell:
    XML file contains ID, Name, Location (so far 3 records in sample xml file)
    Form contains a Dynamic Drop down list to allow selection of ID and text fields to display the associated name and location of that ID.  The binding of the Drop down works fine, however I need the other fields to update to the associated name and location when different ID's are selected.  I assume I'll need some sort of exit event on the drop down list to update the other fields with the Name and location of the ID selected, but I dont know enough to have a stab at it.
    please, please, please help, Im starting to pull my hair out.
    James.

    Hi James,
    This would depend on the structure of your XML but assuming you have something like;
    <Data>
                <Item>
                            <Id>1</Id>
                            <Name>Name1</Name>
                            <Location>Location1</Location>
                </Item>
                <Item>
                            <Id>2</Id>
                            <Name>Name2</Name>
                            <Location>Location2</Location>
                </Item>
                <Item>
                            <Id>3</Id>
                            <Name>Name3</Name>
                            <Location>Location3</Location>
                </Item>
    </Data>
    Then in the change event of your dropdown (your could use the exit event but then value might not have changed so would be performing unnecessary processing) add the following code.
    var itemGroup = $data.Data.resolveNode("Item.(Id.value === '"+xfa.event.change+"')");
    Name.rawValue = itemGroup.Name.value;
    Location.rawValue = itemGroup.Location.value;
    The xfa.event.change will be the value selected, the resolveNode will return the Item with the matching Id, and then it is just a matter of assigning it to your form fields.
    Hope this gets you started.
    Regards
    Bruce

  • Use of FM BAPI_EQUI_CHANGE to update equipement with customer fields

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

  • How to update TASK_hyperlink_address field with PSI?

    Simple question but hard to do.
    Can we have custom fields with html hyperlink?
    And why having fields read only ????

    Enterprise Custom Fields do not support Hyperlinks. You can use the HREF standard task field for this purpose.
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

  • Write/Update IPTC fields with database information.

    Hi all,
    I'm testing lightroom and at this moment I'm happy with its features. I'm a ACDsee Pro user, and I miss one inportant feature in lightroom.
    In ACDSee you can create templates, and then run a batch to write the database information (image rating, keywords, categories, owner, etc) in the IPTC fields of the images.
    This allows you to have your star ratings, per example embedded in the image. Benefits? you can recover your database from the iptc, or you can use the rating done with acd in other apps.
    Is a very powerful feature, because allows you to specify in what iptc field you want any information, and is possible to replace the entire field or jus add some information.
    I wonder if is in lighroom any way to do the same. I would like to write the keywords IPTC field with the lightroom database keywords. Do you know how?
    And what about to write the stars or color code in any IPTC fields?
    If lightroom allows this, must fit all my needs ath this moment.
    Thanks a lot in advance!

    Carlos
    I think you are talking about the menu command Metadata >Save Metadata to file - Ctrl S or Cmd S. For documented file formats like JPG, TIF, PSD, DNG, this writes the metadata into the file itself. For undocumented formats, mainly raw files, this creates xmp files.
    John

  • Quotation maintenance with infor record update field

    Hi experts
    When we use me47 to maintain the quotation , it has one field infor update field, Which we could set it as A,B,C. then the infor record will be updated.
    May I check where I could maintain the A,B,C?  We hope to set C update without plant as defalut content.
    Please help give advice how to setup this ?
    Thanks
    ALice

    Hi
    Thanks a lot . When I use me47 to maintain one quotation, Then I click the item,
    it will go to item screen,
    There is one field - Update infor record under quotation data tab, which has A,B,C three choice.
    I attached the description, I hope to know where to maintain this A,B,C, If I could set C as defalut one ?
    Thanks
    Alice
    Indicator: Update Info Record
    Determines whether:
    The purchasing info record for this vendor and material is to refer to this PO item, and
    The item is to be valid for the entire purchasing organization or just for the plant.
    Use
    The indicator determines which prices and conditions are suggested in future PO items.
    Prices and conditions can apply to an entire purchasing organization or to a single plant within a purchasing organization.
    For example, if you create a purchase order for a plant for which an info record has been defined at plant level, the purchase order is based on the conditions in the plant info record and not on the conditions that apply to the purchasing organization.
    Procedure
    Enter the relevant plant key:
    A
    Updating of the document number is effected at plant level as long as there is a purchasing info record at plant level. Otherwise the document number is updated at purchasing organization level.
    B
    Updating is effected at plant level if plant conditions are allowed for the plant.
    C
    Updating is effected without plant data if plant conditions are not necessary for the plant.
    Dependencies
    The level at which updating of the document number may be effected is defined for each plant.

  • FRM-40200 and FRM-40501 in Enter-Query-Mode

    Some strange behaviour in Enter-Query-Mode:
    Although the help states
    About Designing Forms for Querying+
    +.. To make a "query-only" block, set Query Allowed to Yes and Delete Allowed, Insert Allowed, and Update Allowed to No. ..+
    I get FRM-40200: Field is protected against update.
    System.Mode says, we are currently in ENTER-QUERY.
    Setting insert- and update-allowed to TRUE, I get
    FRM-40501: ORACLE error: unable to reserve record for update or delete.
    The entered character flashes and is erased immediately.
    Any ideas?
    Forms 10gR2
    Items are base table, all transactional properties aund query_allowed are true, query_length is ok.
    2 Things that happen before the initiation of the enter-query-mode:
    . data-source is changed to another view; column names are ok.
    . all block-items are disabled and not navigable at start-up of form and re-enabled and made navigable before entering the block.
    The values of block and item-properties mentioned above are take at WHEN-NEW-ITEM-INSTANCE and no further trigger fire.

    I think you are not meaning just the KEY-ENTQRY-Trigger, that to easy
    IF INSTR(:SYSTEM.TRIGGER_BLOCK, '_DETAIL') = 0
    +               AND :SYSTEM.TRIGGER_BLOCK NOT IN ('VZG_KOPF','KONTROLL','BUTTONS','TEMP')+
    THEN
    +     ENTER_QUERY;+
    END IF;
    .. but the rest is a lil bit, let's call it bulky; including pll and db-packageges.
    I hoped to get a clue, if somebody has a similar expeience, in what direction to search. It's strange.
    And, as I noticed today, it's not a problem of all forms of the app. Not even of all the forms called from the same "environment" (same globals, same menu-form from which they are opened). To me it looks like Enter-Query does not work in the forms where I switch the block-data-source from a view to a globally temporary table. That (this switching) is not a new feature and Enter-Query worked in the past. Althoug we had some changes in the temp tables in the last weeks there are no problems in querying the data in the forms. Recompilation of pll and fmb, no improvement. And either Enter-Query woks in a form or it does not.

Maybe you are looking for

  • Plant as Full Warehouse

    Hi, I need to create a configuration for a Plant which will be used as a warehouse. it needs to have Full WM configuration. any tips on this?

  • I am trying to print on filofax paper but wont print on HP deskjet 3070A

    The guides only allow paper to be placed in the middle of paper selection, and only half of the printing comes out, half of the page is blank.   Its also very difficult to retrieve the shorter paper because the aperture where the paper is inserted is

  • How can i implement the default value for this variable?

    In one of our Stored procs,we have a variable RECS_TO_DELETE, which determines the number of records to delete from various DELETEs that happen within this proc. The value for RECS_TO_DELETE variable should be obtained from a configuration table sys_

  • Essbase trigger error : Application shuts down

    Hi, I am implementing a trigger in Essbase BSO application. Trigger is as below CREATE OR REPLACE TRIGGER 'SPMTEST'.'SPMTEST'.'SPMONUPD' WHERE (Jan,[2010], Sales, Actual, [100-10], [New York]) WHEN Jan > 20 and Jan < 25 THEN SPOOL EssSPM WHEN Jan > 3

  • New page command

    Hi experts, i have a requirement. after execute the report,it will display multiple personal number in abap hr as blocked list like in first block employee earning details in second block employee deduction block in third block employee tax details.