` Printed Icetips Article

Icetips Article



ABC: Restoring several history fields when inserting a new record
2002-12-31 -- John E Singer
 
Newsgroups: comp.lang.clarion,softvelocity.products.c55ee


I have used a Copy Button on the form to bring back certain fields with good
success. To do it automatically, I would guess this type of code would need to
be one of the form Prime methods. For this to work, History must be enabled on
the form.

      if Self.Request = InsertRecord
         Self.RestoreField(?MAS:DOF)
         Self.RestoreField(?MAS:DOI)
         Self.RestoreField(?MAS:SurveyCode)
         Self.RestoreField(?MAS:FRequestor)
         Self.RestoreField(?MAS:SRequestor)
      end

HTH

John E Singer
CIS, Inc.


Paul Choate wrote:

> I know that this has been posted before, but I cannot find it. During a
> recursive add, how do you copy (automatically insert) the value from a field
> that was previously filled in (not the whole record, just a field.) into the
> new record being entered (also allowing for the user to change the value if
> needed)?
>
> Thanks In Advance,
>
> Paul Choate



Printed November 21, 2024, 7:04 am
This article has been viewed/printed 35416 times.
Google search has resulted in 6 hits on this article since January 25, 2004.