Counter Example

Counter Example

am 16.04.2008 05:05:12 von cdhuskey

Looking for a FM Pro Counter example that allows the end user to enter
a number, and then increment that number by one if new records are
added. I am using FM 8.5. Thank you in advance!!

Re: Counter Example

am 16.04.2008 06:23:24 von Helpful Harry

In article
,
cdhuskey@gmail.com wrote:

> Looking for a FM Pro Counter example that allows the end user to enter
> a number, and then increment that number by one if new records are
> added. I am using FM 8.5. Thank you in advance!!

It depends on what you're trying to achieve, but the easiest way is to
use FileMaker's in-built Auto-Enter Serial Number option.

Create a new field to be the counter:
ie.
Counter Number Field
Auto-enter Serial Number: Next Value 1
Increment by 1

If you really want the user to be able to change that number's next
value, then you can create another new field (a Global field this time)
for the user to enter their new value into.
ie.
g_NextCounterValue Global Field of type Number

Put this field onto a Layout and next to it put a small button that
runs this one-step Script:

Set Next Serial Value [Counter, g_NextCounterValue]

There is of course no checking here to make sure the value isn't
already used by an existing record, which may or may not be important.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Re: Counter Example

am 17.04.2008 03:47:41 von cdhuskey

On Apr 15, 11:23=A0pm, Helpful Harry
wrote:
> In article
> ,
>
> cdhus...@gmail.com wrote:
> > Looking for a FM Pro Counter example that allows the end user to enter
> > a number, and then increment that number by one if new records are
> > added. =A0I am using FM 8.5. =A0Thank you in advance!!
>
> It depends on what you're trying to achieve, but the easiest way is to
> use FileMaker's in-built Auto-Enter Serial Number option.
>
> Create a new field to be the counter:
> ie.
> =A0 =A0 Counter =A0 =A0 Number Field
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Auto-enter Serial Number: Next Value 1
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 Increment by 1
>
> If you really want the user to be able to change that number's next
> value, then you can create another new field (a Global field this time)
> for the user to enter their new value into.
> ie.
> =A0 =A0 =A0g_NextCounterValue =A0 =A0Global Field of type Number
>
> Put this field onto a Layout and next to it put a small button that
> runs this one-step Script:
>
> =A0 =A0 Set Next Serial Value [Counter, g_NextCounterValue]
>
> There is of course no checking here to make sure the value isn't
> already used by an existing record, which may or may not be important.
>
> Helpful Harry =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> Hopefully helping harassed humans happily handle handiwork hardships =A0;o=
)

Harry,

That is exactly what I needed. Thank you!!!!