Home » Developer & Programmer » Forms » Field activation (forms 6i)
Field activation [message #308793] Tue, 25 March 2008 08:23 Go to next message
aryansh04
Messages: 3
Registered: March 2008
Junior Member
I am using oracle deveoper 2000 forms 6i.
i have got 2 question to ask...

1> How to make a field activated baed on the value of the other field?
e.g. I have 1 filed call 'charge'(to be activated) and another field emergency which has 2 values viz 'yes' and 'no'. If 'yes' is been selected the charge field should be activated.
so can u help me out? Plz...

2>How to load a static image into form? I dont want to retrive any image from the stored database. Just an image stored on to hard disk.
Re: Field activation [message #308832 is a reply to message #308793] Tue, 25 March 2008 11:05 Go to previous messageGo to next message
solisdeveloper
Messages: 48
Registered: March 2008
Location: Mexico
Member
Well I'm asumming that your emergency field is actualy a list-item or pop-list. So try this:

In the When-List-Change Trigger you type the following:

IF :emergency = 'y' THEN
  set_item_property ('charge',ENABLED,property_true);
ELSE
  set_item_property ('charge',ENABLED,property_false);
END IF;


Now, concerning to the 2nd question, use the READ_IMAGE_FILE built-in to load an image into an Image-Item at run-time.

Check the form builder help this is all contained there.

Hope this helps.
Regards!
Re: Field activation [message #309243 is a reply to message #308832] Wed, 26 March 2008 20:13 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I suggest using the 'set_item_INSTANCE_property'.

David
Previous Topic: How to prevent user to enter data in multiple fields within a record
Next Topic: form error (frm - 40506)
Goto Forum:
  


Current Time: Sat Nov 09 19:40:59 CST 2024