Re: Forms 4.5 PRE-TEXT-ITEM trigger

From: QuadTwin <quadtwin_at_aol.com>
Date: 1997/05/14
Message-ID: <19970514120800.IAA27901_at_ladder02.news.aol.com>#1/1


manders_at_acceee.mbnet.mb.ca wrote:

> I have a problem. I have a form with a master and a detail block on
> it. The problem is when the detail block is being populated after a
> query on the master block the PRE-TEXT-ITEM trigger of an item in the
> detail block fires and the form ends up in insert mode on the detail
> block. The master block is in context when this happens.
>
> The trigger is assigning a default value to the item in question and
> should only fire when the user enters the item. Any ideas?
>
> Michael Anderson MIS, Manitoba Education & training

Yes,

First, remove the assignment from the PRE-TEXT-ITEM trigger. The best way to provide a default value is with the DEFAULT_VALUE property of the item. If this is not sufficient then 1) if the item is visible to the user, assign the value in a WHEN-CREATE-RECORD trigger OR 2) if the item is invisible to the user, do the assignment in a PRE-INSERT trigger.

Al Lawson
Interactive Group, Inc.
www.interactive-group.com
lawsona_at_interactive-group.com Received on Wed May 14 1997 - 00:00:00 CEST

Original text of this message