[comp.databases] need help with ORACLE SQL*FORMS

beverly@ai.cs.wisc.edu (Beverly Seavey (-Kung)) (08/01/90)

   Why is it that whenever I have temporary fields on a form, whose
   purpose is to gather information that will be used in later
   queriesthat and  I can't subsequently call another form? I get the
   message:

	  Can't call form with changes to commit.

   Inserting a commit into a trigger for these informational
   fields doesn't help.

   Because the fields are strictly information gathering, they are
   not directly associated with any tables, and were not created
   using a table default.

steve@edm.isac.CA (Steve Hole) (08/07/90)

In article <10933@spool.cs.wisc.edu> beverly@ai.cs.wisc.edu (Beverly Seavey (-Kung)) writes:
>
>
>   Why is it that whenever I have temporary fields on a form, whose
>   purpose is to gather information that will be used in later
>   queriesthat and  I can't subsequently call another form? I get the
>   message:
>
>	  Can't call form with changes to commit.
>


>   Inserting a commit into a trigger for these informational
>   fields doesn't help.

And really isn't something that you want to do.

>
>   Because the fields are strictly information gathering, they are
>   not directly associated with any tables, and were not created
>   using a table default.

But I suspect that they are database fields?  If so, you want to make
them non-database fields and the problem.  Somewhere in the block in
question, you are doing a #COPY into a database field, resulting in the
record being marked as 'updated'.   There are two ways to keep the
record from being marked.  Don't use #COPY (use field validation to copy
the value from another field), or make the field non-database.  The
trick to forms is organizing the form to still do what you want within
these restrictions.

-- 
Steve Hole  		         mail: steve@edm.isac.ca
ISA Corp.			 uucp: !{uunet, alberta}!ncc!isagate!steve
Edmonton, Alberta, Canada       phone: (403) 441-4121