Field activation [message #308793] |
Tue, 25 March 2008 08:23 |
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 |
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!
|
|
|
|