Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #2610 > unrolled thread

Script Misbehavior

Started bycsampson@inetworld.net (Charles H. Sampson)
First post2016-04-10 00:22 -0700
Last post2016-04-11 03:10 -0700
Articles 7 — 4 participants

Back to article view | Back to comp.databases.filemaker


Contents

  Script Misbehavior csampson@inetworld.net (Charles H. Sampson) - 2016-04-10 00:22 -0700
    Re: Script Misbehavior Martin Τrautmann <t-usenet@gmx.net> - 2016-04-10 07:44 +0000
      Re: Script Misbehavior csampson@inetworld.net (Charles H. Sampson) - 2016-04-11 02:00 -0700
        Re: Script Misbehavior Martin Τrautmann <t-usenet@gmx.net> - 2016-04-11 09:15 +0000
    Re: Script Misbehavior Helpful Harry <HelpfulHarry@BusyWorking.com> - 2016-04-11 08:51 +1200
      Re: Script Misbehavior csampson@inetworld.net (Charles H. Sampson) - 2016-04-11 02:00 -0700
    Re: Script Misbehavior Los_Indios <losindios.m@gmail.com> - 2016-04-11 03:10 -0700

#2610 — Script Misbehavior

Fromcsampson@inetworld.net (Charles H. Sampson)
Date2016-04-10 00:22 -0700
SubjectScript Misbehavior
Message-ID<1mlgr5v.r8rowhk8y1mN%csampson@inetworld.net>
I have a script that ends as follows:

     Go to Layout ["Account Summary" (Account Summary)]
     Enter Preview Mode []
     Go to Record/Request/Page [Last]
     Scroll Window [To Selection]

When this script is executed, it ends up in Preview mode. However, a
different layout is being displayed, one named Activity and the layout
pull-down says that yet another layout, one named Old Account Summary,
is the one being displayed.

If I go to the layout pull-down and select Account Summary, that layout
is immediately displayed in Preview mode. If I want to get to the end,
which I do, I have to do it manually.

I have a different, similar, database. As well as I can tell, the
corresponding script ends with the same four steps. That script works as
expected.

Any ideas about this weird behavior? Is it me being weird again?

Charlie
-- 
Nobody in this country got rich on his own.  You built a factory--good.
But you moved your goods on roads we all paid for.  You hired workers we
all paid to educate. So keep a big hunk of the money from your factory.
But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)

[toc] | [next] | [standalone]


#2611

FromMartin Τrautmann <t-usenet@gmx.net>
Date2016-04-10 07:44 +0000
Message-ID<slrnngk124.1gah.t-usenet@ID-685.user.individual.de>
In reply to#2610
On Sun, 10 Apr 2016 00:22:08 -0700, Charles H. Sampson wrote:
>  I have a script that ends as follows:
> 
>       Go to Layout ["Account Summary" (Account Summary)]
>       Enter Preview Mode []
>       Go to Record/Request/Page [Last]
>       Scroll Window [To Selection]
> 
>  When this script is executed, it ends up in Preview mode. However, a
>  different layout is being displayed, one named Activity and the layout
>  pull-down says that yet another layout, one named Old Account Summary,
>  is the one being displayed.

Maybe you should clean up layout names, maybe something got corrupted
here.

>  If I go to the layout pull-down and select Account Summary, that layout
>  is immediately displayed in Preview mode. If I want to get to the end,
>  which I do, I have to do it manually.

Does the "go to last page work"? In former times I had to build a loop
here to go to the next page, until the last page is reached and the page
number does not increase any longer.

- Martin

[toc] | [prev] | [next] | [standalone]


#2614

Fromcsampson@inetworld.net (Charles H. Sampson)
Date2016-04-11 02:00 -0700
Message-ID<1mliqlj.17c7m20wcn7dxN%csampson@inetworld.net>
In reply to#2611
Martin ?rautmann <t-usenet@gmx.net> wrote:

> On Sun, 10 Apr 2016 00:22:08 -0700, Charles H. Sampson wrote:
> >  I have a script that ends as follows:
> > 
> >       Go to Layout ["Account Summary" (Account Summary)]
> >       Enter Preview Mode []
> >       Go to Record/Request/Page [Last]
> >       Scroll Window [To Selection]
> > 
> >  When this script is executed, it ends up in Preview mode. However, a
> >  different layout is being displayed, one named Activity and the layout
> >  pull-down says that yet another layout, one named Old Account Summary,
> >  is the one being displayed.
> 
> Maybe you should clean up layout names, maybe something got corrupted
> here.

How do you clean up layout names? There are only three layouts. There
has been some renaming going on, which Helpful Harry thinks could be the
cause of the problem. I'll be happy to try cleaning up, when I find out
how to do it.

> >  If I go to the layout pull-down and select Account Summary, that layout
> >  is immediately displayed in Preview mode. If I want to get to the end,
> >  which I do, I have to do it manually.
> 
> Does the "go to last page work"? In former times I had to build a loop
> here to go to the next page, until the last page is reached and the page
> number does not increase any longer.

"Go to last page" has always worked for me. I recently added the "Scroll
Window" command to the script. In the similiar database that I mentioned
in my original post, that step works correctly too.

Thanks for your suggestions, Martin.

Charlie
-- 
Nobody in this country got rich on his own.  You built a factory--good.
But you moved your goods on roads we all paid for.  You hired workers we
all paid to educate. So keep a big hunk of the money from your factory.
But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)

[toc] | [prev] | [next] | [standalone]


#2615

FromMartin Τrautmann <t-usenet@gmx.net>
Date2016-04-11 09:15 +0000
Message-ID<slrnngmqp7.1gah.t-usenet@ID-685.user.individual.de>
In reply to#2614
On Mon, 11 Apr 2016 02:00:20 -0700, Charles H. Sampson wrote:
>  How do you clean up layout names? There are only three layouts. There
>  has been some renaming going on, which Helpful Harry thinks could be the
>  cause of the problem. I'll be happy to try cleaning up, when I find out
>  how to do it.

Name them lay1, lay2, lay3 - nothing with spaces or similar names, very
plain, very simple ones.

- Martin

[toc] | [prev] | [next] | [standalone]


#2612

FromHelpful Harry <HelpfulHarry@BusyWorking.com>
Date2016-04-11 08:51 +1200
Message-ID<110420160851439391%HelpfulHarry@BusyWorking.com>
In reply to#2610
In article <1mlgr5v.r8rowhk8y1mN%csampson@inetworld.net>, Charles H.
Sampson <csampson@inetworld.net> wrote:
> 
> I have a script that ends as follows:
> 
>      Go to Layout ["Account Summary" (Account Summary)]
>      Enter Preview Mode []
>      Go to Record/Request/Page [Last]
>      Scroll Window [To Selection]
> 
> When this script is executed, it ends up in Preview mode. However, a
> different layout is being displayed, one named Activity and the layout
> pull-down says that yet another layout, one named Old Account Summary,
> is the one being displayed.
> 
> If I go to the layout pull-down and select Account Summary, that layout
> is immediately displayed in Preview mode. If I want to get to the end,
> which I do, I have to do it manually.
> 
> I have a different, similar, database. As well as I can tell, the
> corresponding script ends with the same four steps. That script works as
> expected.
> 
> Any ideas about this weird behavior? Is it me being weird again?

Is it being run by another script?? Possibly when this script finishes
it returns to the parent script and performs some other commands
resulting in what you're seeing.

I have noticed a bug in the old versions of FileMaker I use whereby
sometimes the name of the layout in the Status Bar's pop-up menu is
different to the one you're actually viewing. It usually seems to
happen when you rename the Layout - the pop-up menu doesn't seem to get
updated properly with the new name. I've never bothered to look too far
into it and it eventually fixes itself, possibly simply when quitting
and reopening the file.

Helpful Harry  :o)

[toc] | [prev] | [next] | [standalone]


#2613

Fromcsampson@inetworld.net (Charles H. Sampson)
Date2016-04-11 02:00 -0700
Message-ID<1mliq30.p825nj1120xsrN%csampson@inetworld.net>
In reply to#2612
Helpful Harry <HelpfulHarry@BusyWorking.com> wrote:

> In article <1mlgr5v.r8rowhk8y1mN%csampson@inetworld.net>, Charles H.
> Sampson <csampson@inetworld.net> wrote:
> > 
> > I have a script that ends as follows:
> > 
> >      Go to Layout ["Account Summary" (Account Summary)]
> >      Enter Preview Mode []
> >      Go to Record/Request/Page [Last]
> >      Scroll Window [To Selection]
> > 
> > When this script is executed, it ends up in Preview mode. However, a
> > different layout is being displayed, one named Activity and the layout
> > pull-down says that yet another layout, one named Old Account Summary,
> > is the one being displayed.
> > 
> > If I go to the layout pull-down and select Account Summary, that layout
> > is immediately displayed in Preview mode. If I want to get to the end,
> > which I do, I have to do it manually.
> > 
> > I have a different, similar, database. As well as I can tell, the
> > corresponding script ends with the same four steps. That script works as
> > expected.
> > 
> > Any ideas about this weird behavior? Is it me being weird again?
> 
> Is it being run by another script?? Possibly when this script finishes
> it returns to the parent script and performs some other commands
> resulting in what you're seeing.

No, it's not run by another script. It is run by clicking on a button.

> I have noticed a bug in the old versions of FileMaker I use whereby
> sometimes the name of the layout in the Status Bar's pop-up menu is
> different to the one you're actually viewing. It usually seems to
> happen when you rename the Layout - the pop-up menu doesn't seem to get
> updated properly with the new name. I've never bothered to look too far
> into it and it eventually fixes itself, possibly simply when quitting
> and reopening the file.

Ah, this might be the clue. I am using an old version of FileMaker
(8.0v3) and there has been some renaming going on. However, it hasn't
fixed itself so far, and this has been going on for some time.

I'm pretty sure I can get rid of this problem by duplicating that
similar database where the script works, deleting all of its records,
then moving the data from this database to the new one. I'm just curious
about why these four simple steps aren't working here and I'll remain
curious even if the "fix" outlined above works.

Thanks, Harry.

Charlie
-- 
Nobody in this country got rich on his own.  You built a factory--good.
But you moved your goods on roads we all paid for.  You hired workers we
all paid to educate. So keep a big hunk of the money from your factory.
But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)

[toc] | [prev] | [next] | [standalone]


#2616

FromLos_Indios <losindios.m@gmail.com>
Date2016-04-11 03:10 -0700
Message-ID<ffdb4491-5e1c-43a1-877a-87c421a6a2c7@googlegroups.com>
In reply to#2610
Τη Κυριακή, 10 Απριλίου 2016 - 10:22:10 π.μ. UTC+3, ο χρήστης Charles H. Sampson έγραψε:
> I have a script that ends as follows:
> 
>      Go to Layout ["Account Summary" (Account Summary)]
>      Enter Preview Mode []
>      Go to Record/Request/Page [Last]
>      Scroll Window [To Selection]
> 
> When this script is executed, it ends up in Preview mode. However, a
> different layout is being displayed, one named Activity and the layout
> pull-down says that yet another layout, one named Old Account Summary,
> is the one being displayed.
> 
> If I go to the layout pull-down and select Account Summary, that layout
> is immediately displayed in Preview mode. If I want to get to the end,
> which I do, I have to do it manually.
> 
> I have a different, similar, database. As well as I can tell, the
> corresponding script ends with the same four steps. That script works as
> expected.
> 
> Any ideas about this weird behavior? Is it me being weird again?
> 
> Charlie
> -- 
> Nobody in this country got rich on his own.  You built a factory--good.
> But you moved your goods on roads we all paid for.  You hired workers we
> all paid to educate. So keep a big hunk of the money from your factory.
> But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)

For my opinion:
first: you find what you want and afterwards go to preview mode.
Second: none can help informed for the last four script steps only.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.databases.filemaker


csiph-web