3 Replies Latest reply: Nov 28, 2012 11:48 PM by MAHA REDDY RSS

    enabling and disabling the button in the multi record block

    MAHA REDDY
      hi all,
      i am using
      Forms [32 Bit] Version 10.1.2.0.2 (Production)
      Oracle Database 10g Release 10.2.0.1.0 - Production
      i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
      i have write this code in when button pressed trigger

      IF :record is null THEN


      SET_ITEM_INSTANCE_PROPERTY ('BLK_NAME.ITEM_NAME',REQUIRED , PROPERTY_TRUE);
      SET_ITEM_INSTANCE_PROPERTY('BLK_NAME.ITEM_NAME',NAVIGABLE,PROPERTY_TRUE);

      ELSE

      SET_ITEM_INSTANCE_PROPERTY ('BLK_NAME.ITEM_NAME',REQUIRED , PROPERTY_FALSE );
      SET_ITEM_INSTANCE_PROPERTY('BLK_NAME.ITEM_NAME',NAVIGABLE,PROPERTY_FALSE);

      END IF;

      but it's showing bad bind variable ( :record is null) in this case.

      Please give me any solution

      Regards
      Maha