Home » Developer & Programmer » Forms » diff btw built-in and restricted built-in
diff btw built-in and restricted built-in [message #86754] Thu, 28 October 2004 02:53 Go to next message
shish mate
Messages: 49
Registered: February 2004
Member
what is diff btw built-in and restricted built-in
are they same
Re: diff btw built-in and restricted built-in [message #86766 is a reply to message #86754] Thu, 28 October 2004 22:54 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
Restricted buit-in are also the part of built-in provided in the Forms.
The only difference is that restricted built-ins cannot be used in some specific triggers/situations.

The defination of restricted buitl-in is well documented in the FORMS help.For you ease I am pasting the Text below:

Any built-in subprogram that initiates navigation is restricted. This includes subprograms that move the input focus from one item to another, and those that involve database transactions. Restricted built-ins are not allowed in triggers that fire in response to navigation.
For example, the GO_ITEM and NEXT_SET built-ins are both restricted procedures. GO_ITEM moves the input focus from a source item to a target item, which requires navigation. Similarly, the NEXT_SET procedure causes Form Builder to navigate internally to the block level, fetch a set of records, and then navigate to the first item in the first record. (Note that this navigation happens internally as a result of default processing, and may not be apparent to the form operator.)

Because GO_ITEM and NEXT_SET both initiate navigation, they cannot be called from triggers that fire in response to internal navigational events; that is, triggers that fire while navigation is already occurring. Thus, a restricted procedure cannot be called from a Pre-Block trigger, because the Pre-Block trigger fires during internal navigation. In fact, restricted subprograms are not allowed from any PRE- or POST- navigational triggers.

You can, however, call a restricted built-in subprogram from a When-New-Instance trigger. For example, the When-New-Item-Instance trigger fires after navigation to an item has succeeded, when the form is waiting for input. This is an important point to remember as you select trigger types during application development.
The reference topic of each trigger has a "Legal Commands" section that describes which types of built-ins (restricted or unrestricted) can be called from the trigger. Also, each built-in description includes a "Built-in Type" section that indicates whether the built-in is a restricted or unrestricted procedure or function.

HTH
Regards
Himanshu
Previous Topic: can load icon images on the web broswer
Next Topic: urgent help needed please
Goto Forum:
  


Current Time: Sat Sep 07 15:56:13 CDT 2024