Home » Developer & Programmer » Forms » What are the Restricted Built-ins in Forms ?
What are the Restricted Built-ins in Forms ? [message #87807] Sun, 13 February 2005 23:25 Go to next message
Nirmal
Messages: 39
Registered: November 2000
Member
What are the Restricted Built-ins in Forms ?
Re: What are the Restricted Built-ins in Forms ? [message #87839 is a reply to message #87807] Wed, 16 February 2005 03:50 Go to previous message
A.Mohammed Rafi
Messages: 15
Registered: September 2004
Junior Member
Hai,

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.
Previous Topic: Connection problem in forms 6i
Next Topic: importing data
Goto Forum:
  


Current Time: Sun Nov 03 09:54:41 CST 2024