Home » Developer & Programmer » Forms » Field activation (forms 6i)
Field activation [message #308793] Tue, 25 March 2008 08:23 Go to next message
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
Messages: 48
Registered: March 2008
Location: Mexico
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);
  set_item_property ('charge',ENABLED,property_false);

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.
Re: Field activation [message #309243 is a reply to message #308832] Wed, 26 March 2008 20:13 Go to previous message
Messages: 10180
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I suggest using the 'set_item_INSTANCE_property'.

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: Sun Jul 23 14:14:59 CDT 2017

Total time taken to generate the page: 0.07094 seconds