Home » Developer & Programmer » Forms » enable or disable current item in the block (oracle 10g)
enable or disable current item in the block [message #492575] Tue, 01 February 2011 04:08 Go to next message
shaz
Messages: 182
Registered: June 2009
Senior Member
Hello Gurus,

I have one tabular block on the canvas and there is one check box on this block. I want that when I uncheck this checkbox, one item on the current record gets disabled.

I have tried:
I have tried solving my prob, but all i manage to turn all the records enabled or disabled.

I am attaching a dummy form in which I have tried. Checkbox is acting on field :ecc_no.
The DB table for the same is:

CREATE TABLE ECC_MASTER
(
  PARTY_TYPE      CHAR(1 BYTE)                  NOT NULL,
  PARTY_CODE      CHAR(5 BYTE)                  NOT NULL,
  ECC_NO          VARCHAR2(25 BYTE)             NOT NULL,
  RANGE_DIVISION  VARCHAR2(30 BYTE),
  EMP_NO          NUMBER(4)                     NOT NULL,
  LAST_UPD        DATE
)

Insert into ECC_MASTER
   (PARTY_TYPE, PARTY_CODE, ECC_NO, RANGE_DIVISION, EMP_NO, 
    LAST_UPD)
 Values
   ('V', 'VEB03', '020104536D', 'Range IV, Mumbai', 544, 
    TO_DATE('03/22/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into ECC_MASTER
   (PARTY_TYPE, PARTY_CODE, ECC_NO, RANGE_DIVISION, EMP_NO, 
    LAST_UPD)
 Values
   ('V', 'DED01', '0907040913', 'Electronics City/Div.III', 544, 
    TO_DATE('03/22/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into ECC_MASTER
   (PARTY_TYPE, PARTY_CODE, ECC_NO, RANGE_DIVISION, EMP_NO, 
    LAST_UPD)
 Values
   ('V', 'PED01', '2811034184', 'R-III/Div IV Noida', 544, 
    TO_DATE('03/22/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into ECC_MASTER
   (PARTY_TYPE, PARTY_CODE, ECC_NO, RANGE_DIVISION, EMP_NO, 
    LAST_UPD)
 Values
   ('V', 'KEU01', '1406051129', 'R-II/Div.Sec.11,UDR', 544, 
    TO_DATE('03/22/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into ECC_MASTER
   (PARTY_TYPE, PARTY_CODE, ECC_NO, RANGE_DIVISION, EMP_NO, 
    LAST_UPD)
 Values
   ('V', 'EDC01', '1902020749', 'R-III, Chandigarh', 544, 
    TO_DATE('03/22/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));


Please help.
  • Attachment: MODULE5.fmb
    (Size: 56.00KB, Downloaded 1199 times)
Re: enable or disable current item in the block [message #492578 is a reply to message #492575] Tue, 01 February 2011 04:12 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
use set_item_instance_property
Re: enable or disable current item in the block [message #492583 is a reply to message #492578] Tue, 01 February 2011 04:38 Go to previous messageGo to next message
shaz
Messages: 182
Registered: June 2009
Senior Member
I have tried that also but it doesn't have enabled property.
Re: enable or disable current item in the block [message #492584 is a reply to message #492583] Tue, 01 February 2011 04:45 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Then enabled can only be set for all records.
If you want to stop users modifying an item use the insert_allowed and update_allowed properties.
Re: enable or disable current item in the block [message #492682 is a reply to message #492584] Tue, 01 February 2011 15:20 Go to previous messageGo to next message
SAMAHAI
Messages: 7
Registered: December 2010
Location: United States
Junior Member
Try this: When check box is in checked state, allow the user to click in the row. Else move the cursor to previous or the next record except when clicked in the check box.
Re: enable or disable current item in the block [message #492727 is a reply to message #492682] Wed, 02 February 2011 01:10 Go to previous messageGo to next message
shaz
Messages: 182
Registered: June 2009
Senior Member
@Cookiemonster: Yes I am trying to convince the user as this is the limitation of oracle forms.
Re: enable or disable current item in the block [message #492735 is a reply to message #492727] Wed, 02 February 2011 01:55 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
good luck
Re: enable or disable current item in the block [message #499178 is a reply to message #492575] Sun, 13 March 2011 23:20 Go to previous message
deepankar_04
Messages: 29
Registered: August 2009
Location: Udaipur, Rajasthan, INDIA
Junior Member
@Shaz urf Shalab AKA.
You can use an alternative to this property.

Check the form which I have upload with this post.
  • Attachment: MODULE5.fmb
    (Size: 68.00KB, Downloaded 1437 times)
Previous Topic: blob
Next Topic: CALL FORM STORED PROCEDURE
Goto Forum:
  


Current Time: Mon Sep 16 12:56:18 CDT 2024