SET_ITEM_PROPERTY does not

Forms [32 bit] Version 10.1.2.0.2 (Production)

I have an Add button. ON_CLICK_TRIGGER pretty much creates a registration, duplicates of previous records, changes some fields; but I want MEMBERID to remain the same. So to prevent users from accidentally changing the memberid, I want to turn it off / gray out / whether, as long as users cannot change.

I thought that I can use
GO_BLOCK('ABC');
CREATE_RECORD;
DUPLICATE_RECORD;
SET_ITEM_PROPERTY('ABC.MEMBERID',ENABLED,PROPERTY_FALSE);
...
but it does not work. Why?

Edit:

I also tried the following without success
declare
 v_item Item;
begin
GO_BLOCK('ABC');
CREATE_RECORD;
DUPLICATE_RECORD;
v_item:= find_item('ABC.MEMBERID');
set_item_property (v_item,ENABLED,PROPERTY_FALSE);
...
Published by: apex_disco on December 1st, 2011 12:55

If the focus is on ABC. MEMBER ID, you can set Enabled to False. In other words, if the current element. Go_Item to another field first.

But I think I'd try setting Update_Allowed false instead.

Tags: Oracle Development

Similar Questions

  • set_item_property does not take effect immediately

    Hi all
    I use oracle forms 10 g 2. I have a CHANGE after tripping on a text field and under certain conditions, I want to make a button in the same block to be visible. Initially, the visibility of the button is set to 'NO '. So this is my code in the trigger after CHANGE:
    begin
              if :XXBG_CE_STATEMENT_LINES_NEW.DOC_TYPE = 'Invoice'   
                  then
                     set_item_property('XXBG_CE_STATEMENT_LINES_NEW.INV_DET_BTN',VISIBLE,PROPERTY_TRUE);
                     set_item_property('XXBG_CE_STATEMENT_LINES_NEW.INV_DET_BTN',ENABLED,PROPERTY_TRUE);
              else
                    set_item_property('XXBG_CE_STATEMENT_LINES_NEW.INV_DET_BTN',VISIBLE,PROPERTY_FALSE);
                    set_item_property('XXBG_CE_STATEMENT_LINES_NEW.INV_DET_BTN',ENABLED,PROPERTY_FALSE);
              end if;
    end;
    The 'DOC_TYPE' field is populated through LoV. When I choose "Invoice" button for this field does not appear... I have to open a LoV randomly and then the button appears... Any ideas?



    Thanks in advance,
    Bahchevanov.

    You can try when-validate-item trigger instead of change after and use the same code.

    Hope this helps

  • set_item_property does not work

    Hello.
    I have the scenario,

    If the field 'x' = 1 then
    set_item_property(y,required,property_true)
    on the other
    set_item_property(y,required,property_false)

    but it works very well only as a first step,
    for example, I put 1 then block forms filed there, I put 2 release forms the fied, but if I put 1 new no longer works...
    What lack us...
    TKS.

    Hello

    but it works very well only as a first step,
    for example, I put 1 then block forms filed there, I put 2 release forms the fied, but if I put 1 new no longer works...

    What do you mean that it no longer works? How you came to know this?

    A guess maybe you need to validate that the point manually as below...

     if the field "x" = 1 then
       set_item_property(y,required,property_true)
       :field_y:=:field_y;
     else
       set_item_property(y,required,property_false)
     end if;
    

    -Clément

  • set_block_property ('block', update_allowed, property_false) does not...

    Hi all

    I have the following code in what release button.
    Set_Block_Property('SRC_BLOCK',INSERT_ALLOWED,PROPERTY_FALSE);
    
     Set_Block_Property('SRC_BLOCK',UPDATE_ALLOWED,PROPERTY_FALSE);
    After that, all elements of this block cannot be modified, except one.

    It still allows to update it's value (country_name). I don't know why...

    This article is joined with LOV.
    What double mouse click trigger with the code 'list_values '.

    Please help me to understand the problem...


    But if I try with the following code works...
    set_item_property('SRC_BLOCK.country_name',enabled,property_false);
    but the following code does not work... Why update and insert the property does not work on this point...
    set_item_property('SRC_BLOCK.country_name',update_allowed,property_false);
    
    set_item_property('SRC_BLOCK.country_name',insert_allowed,property_false);
    Thanks in advance,
    Roots

    Hi the roots

    Pls check first allowable day & authorized insert property of this element, it could be changed by mistake (I guess, this should not affect but suppose)

    If is set to yes then u could try attached to the LOV the try the code for the objective test, generate, save and run the form.

    I hope this helps...

    Kind regards

    Amatu Allah

  • Right click does not work on the shape of the oracle

    Hello
    I created a form that is customized by using template.fmb
    When a user tries to put some data in the text field and right clikc the mouse, the menu does not come.
    In fact, nothing happens when right click of the mouse.

    Please help me on this one and let me know if I am missing any configurations or all libraries...

    Thank you
    Kiran.

    Unfortunately, you must assign the context menu for each item by using the Context Menu of the element property. Also, unfortunately, the built-in Set_Item_Property() you cannot set this property during execution; You must set the value of the property in the design. You can use the library Java JDAPI dyamically change your binary forms (.fmb). Search the Forum on "JDAPI" for more information on the use of this library. If you are not competent Java, only option available for you would select all the elements that you want to use this menu drop-down and set the mass.

    Craig...

  • FIND_ITEM (item_name) does not work on TEXT

    FIND_ITEM (item_name) does not work on the TEXT that is on the Web.
    How can I set visibility of the TEXT to be false when the find_item return always found no article.

    My code:

    DECLARE
    textuelle_illustree point;
    BEGIN
    textuelle_illustree: = Find_Item ('TEXT_IMAGE');
    Set_Item_Property (text_image, visible, PROPERTY_FALSE);
    END;

    Hello

    We cannot work on TEXT controls running. I thought it was a TEXT_ITEM. Then to your needs, you must use a DISPLAY_ITEM instead of TEXT. Only then can it be achieved.

    Kind regards

    Manu.

  • iPhone 7 more buttons outside does not

    I've had my iPhone 7 + for about 2 weeks now. Every once in awhile all buttons outside to stop, volume up/down, power, home. The home button will still record and push and give the sensation of taptic and touchID works. The phone itself still works and I can answer texts and which do not use notifications.

    The couple spent time he did, he came upon her in about 4-5 minutes, however it was about half an hour and still nothing. I want to restart my phone, but the switch does not work.

    Has anyone seen this issue or know how to fix?

    Thanks in advance.

    I just experienced the same problem on my iPhone 7, I think it's a bug in iOS, but I am using iOS 10.0.2. Power + button low Volume allowed me to turn it off then turn it back on... Apple please fix this bug!

  • App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    After upgrade 'OS X El Capitan' to "macOS Sierra" window only empty "App store" and page "Safari" made its appearance, no error message shows. store "iTunes" and "Dictionary" does not connect too.

    But Google chrome works well.

    So have you tried the next steps in your original post that Safari does not work after installing macOS Sierra:

    (1) x OS: "Unable to connect" or "unable to connect to the App Store. An internet connection is required"- Apple Support

    2) Advanced the steps to correct the problems with the iTunes Store - Apple Support connection

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • iPhone 7 more telephoto camera does not

    Is anyone having problems with iPhone 7 more telephoto does not activate. I'll go to the camera application and press the 2 x zoom feature, but it appears to be not to activate the camera of 56mm at the front. I cover the lens with my finger, the camera on the right side and the iPhone always displays an image despite me concealing one of the cameras teo. I can't activate the second camera. It seems to only be zooming digitally. I'll do this outside and he'll only digitally zoom when I hide the second lens.

    Im having this same problem. I heard from someone that he could not work until the next software update... but I have no idea and have not found anything in the online help. If someone else gets to know how.

  • Contact ID battery fast draining iPhone 5s does not

    5s fast drainage and Touch ID sinice 10.0.2 iOS iPhone battery update does not

    Restarted the iPhone since the update yet?

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Hey there Scotchman2926,

    I understand that you are experiencing some problems with Apple music on Sierra. I have a few suggestions to help you solve this problem. First of all, if you are unable to access the iTunes Store as well as music from Apple, use the information in this article to help resolve this problem:

    If you cannot connect to the iTunes Store - Apple Support

    If this does not resolve the problem, you might try signing out of your Apple ID in iTunes and then connect again.

    Thanks to be come to the communities of Apple Support and let us know how it goes.

    See you soon.

Maybe you are looking for

  • Laptop HP 2000: HP 2000 - "no audio output device is installed".

    Install my windows 10 recently crashed. The restore point was inable roll back and I had to reset the PC. Once the reinstallation is complete, I have no sound. Device Manager says: This device is not configured correctly. (Code 1) A device attached t

  • I need to identify my Satellite L300-10 q in order to update

    Hello I have an old Satellite phone, I was considering to upgrade. Unfortunately I can't find reliable information about it. I tried to find the model in different sites Europeans Toshiba, using the automatic search, the serial number and the manual

  • Problem Windows 7 XP Mode networks

    I use some old programs of productivity in my office that only run on XP. I bought a new computer with Windows 7 Professional and downloaded and installed the XP Mode and Virtual PC. It works fine, but I can't connect to my network in XP mode. I can

  • Acer aspire 431p webcam unknown driver v5

    My webcam does not work, whenever I have try my applications that have need of the camera, it says please connect the camera in Device Manager, the webcam is unknown with a yellow fr on it and I really need my webcam help will be much appreciated and

  • Is the DVD of backup Windows 8 identical to a full installation disc.

    I have investigated. I'm not entirely sure about this, but when window 8 went through its first users, I bought Windows 8 but also ordered the backup DVD. Now I have a question, do the count of Windows 8 Backup DVD as DVD of complete Installation? Be