1 Reply Latest reply: Sep 3, 2013 9:37 AM by CraigB RSS

    User should not be able to click on Approve check box and reject check box at the same time. And Once Record Validated or Rejected thus records will be non editable.

    Basheerfororacle

      There are two check boxes called Approved and Reject check boxes.

      Once user selects Approve check box then Reject check box should not allow the user to select.

      (or) if user selects Reject check box then Approve check box should not allow the user to select.

      I mean to say these two check boxes should work as like two Radio buttons.

      ----------------------------------------------------------------------------------------------------------------------


      I have written code as below:


      Field::APPROVE

      Trigger::When- checkbox-changed

      Code::

      ----------------------------------------------------------------------------------------------

      if :BLOCK.APPROVE='Y' THEN

      app_item_property.set_property ('BLOCK.REJECT', ENABLED, property_off);

      else

      app_item_property.set_property ('BLOCK.REJECT', ENABLED, property_on);

      end if;

      ----------------------------------------------------------------------------------------------------------------------


      Field::REJECT

      Trigger::When- checkbox-changed
      Code::

      ----------------------------------------------------------------------------------------------

       

      if :BLOCK.REJECT='Y' THEN

      app_item_property.set_property ('BLOCK.APPROVE', ENABLED, property_off);

      else

      app_item_property.set_property ('BLOCK.APPROVE', ENABLED, property_on);

      end if;

      ----------------------------------------------------------------------------------------------------------------------

       

       

      With the above code works fine for the few of cases but it fails for the below cases:

      There are two types of records Validated and New records. Form Shows validated records in read only mode and remaining records(New Status Records) will be editable mode.

      when we navigate from NEW records to Validate status records check box then this check box allowing to select the check box even it is Validated record(Validated Records should not allow us to do any things. just we can see thus records)

       

      Please drop me solution if any one knows the solution. Thanks in advance!!!

       

      Thanks

      Basheer