|
|
|
Re: setting text value .... [message #82831 is a reply to message #82830] |
Tue, 08 July 2003 06:28 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
Search for the appropriate trigger to set the item. Let's say your text item (txt_message) is dependent on a checkbox (chk_ok) in the same block. Then you would create a when-validate-item trigger on the checkbox with some code like:Begin
-- If the checkbox is checked, put a text in the text item
If CheckBox_Checked('my_block.chk_ok') Then
:myblock.txt_message := 'checkbox is checked';
Else -- put another text in the text item
:myblock.txt_message := 'The checkbox is not checked now.';
End if;
End; You see,
all depends on WHEN you want your text item to be filled. If you can give that information (i.e. when it should change, dependent on what items, after a query...), I'm sure a suitable solution will come up....
MHE
|
|
|