Automatic ENTER-QUERY Mode on Forms Using Designer/2000

From: Norma L. Camp <norma.camp_at_srs.gov>
Date: 5 Aug 98 10:38:14 -0500
Message-ID: <1998Aug5.103814.10632_at_srs.gov>



I am using Designer/2000 v1.3.2 and Developer/2000 v1.6 its appropriate patch for Designer.

I want all of my forms to start in Enter-Query mode. Is there a preference which does this? I couldn't find (or overlooked) one, so I modified my template by adding WHEN-NEW-FORM-INSTANCE trigger which has a procedure call of QUERY_FORM. This procedure, which performs ENTER_QUERY, is defined in a library that is attached to every form.

This works fine. All of my forms automatically starts in ENTER-QUERY mode. However, there is one problem. In master-detail forms, the detailed information is not queried on initial execution of query. But if I re-execute the query the detailed information is queried.

While investigating this problem, I found in the generated master-detail form that my procedure QUERY_FORM is executed prior to the generated code for block synchronization in the
WHEN-NEW-FORM-INSTANCE trigger.

I really need to place the form in ENTER-QUERY mode after block synchronization is defined.

Any sugguestions? Received on Wed Aug 05 1998 - 17:38:14 CEST

Original text of this message