Home » Developer & Programmer » Forms » Problem in set_block_property
Problem in set_block_property [message #168165] Wed, 19 April 2006 02:54 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

hii all

i have a trigger of when_new_form_instance

i made in it

MESSAGE(GET_BLOCK_PROPERTY (:SYSTEM.CURRENT_BLOCK,UPDATE_ALLOWED));
MESSAGE(GET_BLOCK_PROPERTY (:SYSTEM.CURRENT_BLOCK,UPDATE_ALLOWED));

SET_BLOCK_PROPERTY (:SYSTEM.CURRENT_BLOCK,UPDATE_ALLOWED,'FALSE');


when i run the form it results on the screen

true
true
invalid parameter used for set_block_property
ora-01403: no data found


the "true" is for the message
the error for the set_block_property(:SYSTEM.CURRENT_BLOCK,UPDATE_ALLOWED,'FALSE');


how is that although i can see the property of the block thrugh the message




thanks for everyone helped and helping me

[Updated on: Wed, 19 April 2006 02:55]

Report message to a moderator

Re: Problem in set_block_property [message #168167 is a reply to message #168165] Wed, 19 April 2006 02:58 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please check the documentation when you come across problems like this. I have the pdf open ALL day.
Quote:

UPDATE_ALLOWED Specifies whether the operator or the application
is allowed to update records in the given block. Valid values are
PROPERTY_TRUE or PROPERTY_FALSE.
That is, PROPERTY_FALSE not 'FALSE'.

David
Re: Problem in set_block_property [message #168175 is a reply to message #168165] Wed, 19 April 2006 03:28 Go to previous message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Thanks for help
Previous Topic: capturing ORA-02396 in forms
Next Topic: ENTER PROCEDURE
Goto Forum:
  


Current Time: Fri Sep 20 09:39:40 CDT 2024