Re: DEVELOPER 2000 QUERY-mode???

From: <pberetta_at_my-deja.com>
Date: Mon, 11 Oct 1999 12:50:44 GMT
Message-ID: <7tsmf1$ohd$1_at_nnrp1.deja.com>


If this item is just a display item, set the ITEM TYPE property to DISPLAY ITEM and the DATABASE ITEM property to NO. Then, create a block level WHEN-NEW-RECORD-INSTANCE trigger on your primary data block (m1 in your example) and populate the display item as per below:

:m2.one_text_item := 'This is a test.';

This value will survive ENTER QUERY, EXECUTE QUERY, and CLEAR ALL! If you need to, you can change the value elsewhere in the form with a similar line in the appropriate trigger.

In article <38014EC2.30239380_at_ccis.adisys.com.au>,   Geoff White <whiteg_at_ccis.adisys.com.au> wrote:
> The initial value is placed in the text item only when you visit the
block. So
> you need to do something like:
> go_block('m2');
> go_block('m1');
> enter_query;
>
> HTH
> Geoff
>
> peter yeh wrote:
>
> > Connor McDonald ¼g¹D¡G
> >
> > <snip>
>
> >
> > hi...
> > I try it........ but in my form ('when new form instance
trigger',I
> > wrote 'enter-query')
> > so when in query-mode all text-item will be
cleared.........
> > even I put a text-item in the different data block...
> > for example:
> > I have two blocks: m1 and m2
> > m1 contains many text-items
> > m2 only contains one text-item... which initial value
is "this is a
> > test"
> > m1 and m2 are in the same form..
> > when new-form-instance...
> > I wrote 'enter-query'
> > all text-items including in m1 and m2 are cleared...
> > BUT I want text-item of m2 is holding it's initial value...
> > how to do ?????
>
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Oct 11 1999 - 14:50:44 CEST

Original text of this message