Please help me its urgent -  restrict field update against a condition

Dear Friends,
I'm new to the oracle forms .. i want to restrict a filed update against a condition in my form.
I am using multi record block. I want to disable few fields in a row e.g. there are 10 records in the record block i want to disable three items of 2nd record on the basis of some condition. How can i do it??

HI,
you can use the form-built in procedure SET_ITEM_INSTANCE_PROPERTY and the appropriate property....(UPDATE_ALLOWED = PROPERTY_FALSE).
For example:
  begin
    if <your_condition>
      then
          set_item_instance_property('<your_item1>',<record_number/CURRENT_RECORD>,UPDATE_ALLOWED ,PROPERTY_FALSE);
         set_item_instance_property('<your_item2>',<record_number/CURRENT_RECORD>,UPDATE_ALLOWED ,PROPERTY_FALSE);
     else
         set_item_instance_property('<your_item1>',<record_number/CURRENT_RECORD>,UPDATE_ALLOWED ,PROPERTY_TRUE);
         set_item_instance_property('<your_item2>',<record_number/CURRENT_RECORD>,UPDATE_ALLOWED ,PROPERTY_TRUE);
    end if;
  end;
  For more info , take a look at the on-line help....
Greetings,
Sim

Similar Messages

  • Hi: please help me its urgent

    hi all,
    i am getting the values of netwr and amount in the outout.
    but unable to find the values of matnr, arktx.i am sending the code please suggest.
    loop at it_vbrp.
    LOOP AT it_konv WHERE kposn      = it_vbrp-posnr and
                          kschl      = 'ZP01' OR
                          kschl      = 'ZP02' OR
                          kschl      = 'ZP03' OR
                          kschl      = 'ZP05' OR
                          kschl      = 'ZP06' OR
                          kschl      = 'ZP51'.
    it_item-netwr = it_konv-kwert.
    it_item-amount = it_konv-kwert * it_vbrp-fkimg.
    append it_item.
    endloop.
    endloop.
    LOOP AT it_vbrp.
    *is = sy-tabix.
      it_item-matnr = it_vbrp-matnr.
      it_item-arktx = it_vbrp-arktx.
      it_item-fkimg = it_vbrp-fkimg.
      it_item-meins = it_vbrp-meins.
    MODIFY it_item TRANSPORTING  matnr arktx fkimg meins WHERE
    matnr = it_vbrp-matnr.
    ENDLOOP.
    regards
    akmal

    Hi akmal ,
                      Your this part code is wrong .How can you modify it_item when you have looped it_item table.Follow the bold part of the code.So you don't have to start the it_vbrp loop again.
    Loop at it_vbrp.
    it_item-matnr = it_vbrp-matnr.
    it_item-arktx = it_vbrp-arktx.
    it_item-fkimg = it_vbrp-fkimg.
    it_item-meins = it_vbrp-meins.
    MODIFY it_item TRANSPORTING matnr arktx fkimg meins WHERE
    matnr = it_vbrp-matnr.
    loop at it_vbrp.
    LOOP AT it_konv WHERE kposn = it_vbrp-posnr and
    kschl = 'ZP01' OR
    kschl = 'ZP02' OR
    kschl = 'ZP03' OR
    kschl = 'ZP05' OR
    kschl = 'ZP06' OR
    kschl = 'ZP51'.
    it_item-netwr = it_konv-kwert.
    it_item-amount = it_konv-kwert * it_vbrp-fkimg.
    <b>it_item-matnr = it_vbrp-matnr.
    it_item-arktx = it_vbrp-arktx.
    it_item-fkimg = it_vbrp-fkimg.
    it_item-meins = it_vbrp-meins.</b>
    append it_item.
    endloop.
    endloop.
    Please reward if useful.

  • Hi pls help me its urgent

    hi experts'
    i have to generate asset utilization report in webdynpro
    inputs for report are some rfcs
    i get result from rfcs
    i need to float report i used bussinessgraphic object
    its not interactive
    if i go for tables
    how to create tables with drill down inside table
    how to set color for each cell of table depending on condition
    please help me
    its urgent
    and send me code n link

    Hi Vani,
    Your requirement has many things
    1. How to call RFCs
       https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    2. Once you have data, how to work with BusinessGraphics ?
      https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38
    (This docs contatins all the required info on webDynpro UIElements)
    3.Tables
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#46 [original link is broken]
    Regards,Anilkumar

  • I have downloaded iOS 6 to my iTunes but I have clicked "Download Only" not "Download and Update" how do i install/sync it to my iPad. Please help me, its taken me hours to download it i don't want to do it again :(

    I have downloaded iOS 6 to my iTunes but I have clicked "Download Only" not "Download and Update" how do i install/sync it to my iPad. Please help me, its taken me hours to download it i don't want to do it again
    PLEASE HELP ME!!!

    Hook your iPad into your computer and open iTunes. GIve it a couple of minutes to get going, then click on the name of your device, then the main summary page. In the middle you'll see a software update button/area. Click on check on updates and update and follow the prompts.
    it SHOULDN"T redownload but if you've already got it should just install.
    I'd suggest that you first do a complete sync before you update, that way you have a good backup to restore your device from if the upgrade doesn't go perfect.

  • Problem with connecting ipad 2 with crestron cp2e...help plss its urgent... I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while t

    problem with connecting ipad 2 with crestron cp2e...help plss its urgent...
    I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while the device was in auto -lock(sleep)press connect to reconnect) when i pressed again its connected with cp2e. i am using netgear wireless access point . i also has been changed access point as well as updated ipad firmware bt problem is as it is .. pls help.

    Hi have you solved the issue ?
    Cause I have the same problem.
    Tnx

  • Last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    Charge the battery.
    If necessary, restore the iPod >  iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    I have updated my iPhone 4s to iOS7 but when i connect it to itunes on my PC it give me a msg to restore your iPhone in summary tab, Please help m using win 7 and updated itunes.

    What is showing on the screen of the iPhone?
    Does iTunes say the iPhone is in recovery mode?

  • Is it possible to export contacts  from Outlook 2011 for Mac and importing this file back into Mac Address Book.? please reply me its urgent

    Is it possible to export contacts  from Outlook 2011 for Mac and importing this file back into Mac Address Book.? please reply me its urgent

    Is it possible to export contacts  from Outlook 2011 for Mac and importing this file back into Mac Address Book.? please reply me its urgent

  • I want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    Welcome to the Apple Community.
    You can only wipe your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Jailbroken phones cannot be discussed in an Apple forum. If you synced your phone with your computer the texts will be in the backup, so if you restore the backup you may get them back, but with a jailbroken phone it's anybody's guess what will happen.

  • Please help. After a recent iOS7 update my iMessages are gone and I can't get it back, nor can I log into my Apple ID. MY PASSWORD is not expired. iPhone 4.

    Please help. After a recent iOS7 update my iMessages are gone and I can't get it back, nor can I log into my Apple ID. MY PASSWORD is not expired. iPhone 4.

    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...

  • I am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • TS1424 My Apple ID has been disabled. I have tried everything and cant get any help correcting it. Any suggestions?? Please help!! I have 25 updates and can't update anything

    My Apple ID has been disabled. I have tried everything and cant get any help correcting it. Any suggestions?? Please help!! I have 25 updates and can't update anything

    http://www.apple.com/support/contact/

Maybe you are looking for

  • Data load from DSO to cube fails

    Hi Gurus, The data loads have failed last night and when I try to dig inside the process chains I find out that the cube which should be loaded from DSO is not getting loaded. The DSO has been loaded without errors from ECC. Error Message say u201DTh

  • How can I encrypt all the content of my Ipad 2?

    Hello, I am looking for a solution like CheckPoint FDE in order to encrypt all the content of my Ipad 2? Does anyone know a similar solution? Thanks

  • How can I stream from iTunes (Win) to Apple TV (3. generation)?

    Home Sharing is turned on, but I can't see my iTunes library on my Apple TV, also I've no idea, how to stream from my MacBook or PC to the Apple TV. Firewall is offline during testing. Streaming photos and from iOS-devices works.

  • Query property "Save and reuse variable value" doesn't work in BW EHP1

    We have a workbook which contain 4 queries, every different worksheet is a different query. All the queries are on the Same InfoCube and all the queries use the same variables. In the properties of the query n.2 we set the parameter "Save and reuse v

  • Error in developer instllation in windows 7

    hi i have error when try to setup developer 10g this error http://aishaa.net/setup.png please what can i do to solve this problem ? thank you