Home » Developer & Programmer » Forms » make the form cannot be updated or insert in it
make the form cannot be updated or insert in it [message #175709] Mon, 05 June 2006 01:45 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

is there any way to make my form (including all blocks in that form) cannot insert in it or cannot update in it or cannot delete in it

something like
set_block_property(block_name,update_allowed,property_false);


i want something like that
but on the level of the form



Thanks for everyone helped and helping me



Re: make the form cannot be updated or insert in it [message #175714 is a reply to message #175709] Mon, 05 June 2006 02:00 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Select all database blocks (at once, not separately) and change their INSERT ALLOWED / DELETE ALLOWED / UPDATE ALLOWED properties to "NO".
Re: make the form cannot be updated or insert in it [message #175719 is a reply to message #175709] Mon, 05 June 2006 02:34 Go to previous messageGo to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

I don't want the treatment to be on the level of the BLOCK

i want it on the level of the FORM
Re: make the form cannot be updated or insert in it [message #175736 is a reply to message #175719] Mon, 05 June 2006 03:27 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I see ... I'm not sure can it be done on a form level without programming it. Why do you refuse to use Forms built-in functionality (which can be achieved in 5-6 mouse clicks)?
Re: make the form cannot be updated or insert in it [message #175909 is a reply to message #175709] Tue, 06 June 2006 01:13 Go to previous messageGo to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Have anyone other ideas on this issue
Re: make the form cannot be updated or insert in it [message #175949 is a reply to message #175909] Tue, 06 June 2006 03:23 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
You can use the switch query_only=YES. This is a command line option when starting the forms runtime component. If you are using the CALL_FORM built-in to open the form you can also specify the query_only parameter. Perhaps that's an idea.

MHE
Re: make the form cannot be updated or insert in it [message #175989 is a reply to message #175709] Tue, 06 June 2006 05:28 Go to previous message
Rehan Mirza
Messages: 67
Registered: July 2004
Location: Pakistan
Member

Just write trigger on form lavel

On-Insert --
On-Update --
On-Delete --

code for these trigger is
NULL;


or
on Pre-Insert --
Pre-Update --
Pre-Delete --
Code for these trigger is

Raise Form_Trigger_Failure;

Best regards
R E H A N M I R Z A
Previous Topic: COMPILING FORMS FROM THE COMMAND LINE
Next Topic: TNS-03505:Failed to resolve name
Goto Forum:
  


Current Time: Fri Sep 20 10:18:20 CDT 2024