Home » Developer & Programmer » Forms » Need Urgent Help with Display Item on Form
Need Urgent Help with Display Item on Form [message #84561] Tue, 30 March 2004 11:13 Go to next message
Prince
Messages: 32
Registered: December 2001
Member
The following code was created in a WHEN-NEW-FORM-INSTANCE trigger on the field level of a form (6.0) running on a windows platform for checking the value of a display item (A) to determine the properties of another text item (B). This seems to be working fine, however it is necessary for B to display '0000' and not NULL when A = 'Natural'. Can anyone please help? This is urgent.

This is what the code looks like:

Begin
 IF
:Data_block.nbt_display_item = 'Natural' AND :Data_block.text_item IS NULL THEN
:Data_block.text_item := '0';
SET_ITEM_PROPERTY(':Data_block.text_item', ENABLED, PROPERTY_TRUE);
SET_ITEM_PROPERTY(':Data_block.text_item', VISUAL_ATTRIBUTE, 'VA_DISPLAYDATA');
END IF;
End;

Thanks.
Re: Need Urgent Help with Display Item on Form [message #84568 is a reply to message #84561] Wed, 31 March 2004 03:05 Go to previous message
magnetic
Messages: 324
Registered: January 2003
Senior Member
you should enable the item and then assign the value '0000'

you better put the code in a post-query trigger on blocklevel
Previous Topic: Calling Store Procedures from form 6i
Next Topic: developer2000 connectivity with oracle 8
Goto Forum:
  


Current Time: Mon May 06 12:21:06 CDT 2024