Multiple update forms

Hello,
I am using Clarion 11 and is making a small browse/update solution.
In addition to the main update form, is it possible to make a few additional update forms for some fields that is being updated on a more frequent basis?

yes it is possible. Create a button that Call a form procedure with Requested File Action set as Change

1 Like

If you want to create independent update forms that are called by your own code, here are the steps:

  1. Make sure your record is fetched.
  2. Set GlobalRequest to ChangeRecord.
  3. Call your update form.
  4. Check the value of GlobalResponse.

e.g.

  CODE
 
   DO CodeToEnsureThatTheRecordIsFetched
   GlobalRequest = ChangeRecord
   MySpecialUpdateForm
   IF GlobalResponse = RequestCompleted
      !Successfully saved record
   ELSE
      !Something else happened
   END

On the other hand, if you want to call a special form depending on what type of record it is, you can set your browse’s update procedure to that of a SOURCE procedure.
You could put something like the following in that source procedure:

  CODE

  CASE YourRecord:SpecialIdentifier
  OF Type1
      YourType1Form
  OF Type2
     YourType2Form
  ELSE
    YourDefaultForm
  END

Worked right away. Thanks.