How to copy the "image" of a layout into a container field ?

How to copy the "image" of a layout into a container field ?

am 26.01.2008 09:15:26 von Remi-Noel Menegaux

Hi all,
I am trying to make a script that would copy the contents of a LayoutAA 'AS
AN IMAGE' into a container field of a LayoutBB, and I can't figure how to do
it. It is one record of LayoutAA and it contains one portal divided in 3
parts.
[The purpose of it is to try to avoid flickering (redrawing) when some of
the other fields of LayoutBB change while most of the fields come from
LayoutAA and are static - I am building a binded DB for handicaped people
that I'll deliver for free to the proper organizations for them to
distribute -.]
Here is my present script - that does not work -

Go to Layout ["AA" (Table)]
Enter Preview Mode []
Copy Record/Request
Go to Layout ["BB" (Table)]
Paste [Select; Table::ContainerAA]

I think it is feasible as I seem to recall a message of someone telling how
to make an image of a layout and put it into a container field. But I can't
find it back.
Could you help me ?
Remi-Noel

Re: How to copy the "image" of a layout into a container field ?

am 26.01.2008 09:19:45 von Remi-Noel Menegaux

I forgot to say that I am in Vista Business and FM9Advanced
Thanks.
Remi-Noel

"Remi-Noel Menegaux" a écrit dans le message de
news:479aec1f$0$29182$426a74cc@news.free.fr...
> Hi all,
> I am trying to make a script that would copy the contents of a LayoutAA
> 'AS AN IMAGE' into a container field of a LayoutBB, and I can't figure how
> to do it. It is one record of LayoutAA and it contains one portal divided
> in 3 parts.
> [The purpose of it is to try to avoid flickering (redrawing) when some of
> the other fields of LayoutBB change while most of the fields come from
> LayoutAA and are static - I am building a binded DB for handicaped people
> that I'll deliver for free to the proper organizations for them to
> distribute -.]
> Here is my present script - that does not work -
>
> Go to Layout ["AA" (Table)]
> Enter Preview Mode []
> Copy Record/Request
> Go to Layout ["BB" (Table)]
> Paste [Select; Table::ContainerAA]
>
> I think it is feasible as I seem to recall a message of someone telling
> how to make an image of a layout and put it into a container field. But I
> can't find it back.
> Could you help me ?
> Remi-Noel

Re: How to copy the "image" of a layout into a container field ?

am 26.01.2008 23:04:29 von Helpful Harry

In article <479aec1f$0$29182$426a74cc@news.free.fr>, "Remi-Noel
Menegaux" wrote:

> Hi all,
> I am trying to make a script that would copy the contents of a LayoutAA 'AS
> AN IMAGE' into a container field of a LayoutBB, and I can't figure how to do
> it. It is one record of LayoutAA and it contains one portal divided in 3
> parts.
> [The purpose of it is to try to avoid flickering (redrawing) when some of
> the other fields of LayoutBB change while most of the fields come from
> LayoutAA and are static - I am building a binded DB for handicaped people
> that I'll deliver for free to the proper organizations for them to
> distribute -.]
> Here is my present script - that does not work -
>
> Go to Layout ["AA" (Table)]
> Enter Preview Mode []
> Copy Record/Request
> Go to Layout ["BB" (Table)]
> Paste [Select; Table::ContainerAA]
>
> I think it is feasible as I seem to recall a message of someone telling how
> to make an image of a layout and put it into a container field. But I can't
> find it back.
> Could you help me ?

That script should looks fine, with one correction: you need to go back
into Browse Mode before pasting the image into the Container field.
Commands like Paste that need access to fields to work won't do
anything in Preview Mode.

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

Re: How to copy the "image" of a layout into a container field ?

am 27.01.2008 02:46:05 von Remi-Noel Menegaux

Harry,
You are right and my script does work perfectly now.
I DO thank you most.
I didn't realize that 'Paste' needed the mode to be put back to Browse.
Thank you thousand times.
Remi-Noel

"Helpful Harry" a écrit dans le message de
news:270120081104299365%helpful_harry@nom.de.plume.com...
> In article <479aec1f$0$29182$426a74cc@news.free.fr>, "Remi-Noel
> Menegaux" wrote:
>
>> Hi all,
>> I am trying to make a script that would copy the contents of a LayoutAA
>> 'AS
>> AN IMAGE' into a container field of a LayoutBB, and I can't figure how to
>> do
>> it. It is one record of LayoutAA and it contains one portal divided in 3
>> parts.
>> [The purpose of it is to try to avoid flickering (redrawing) when some of
>> the other fields of LayoutBB change while most of the fields come from
>> LayoutAA and are static - I am building a binded DB for handicaped people
>> that I'll deliver for free to the proper organizations for them to
>> distribute -.]
>> Here is my present script - that does not work -
>>
>> Go to Layout ["AA" (Table)]
>> Enter Preview Mode []
>> Copy Record/Request
>> Go to Layout ["BB" (Table)]
>> Paste [Select; Table::ContainerAA]
>>
>> I think it is feasible as I seem to recall a message of someone telling
>> how
>> to make an image of a layout and put it into a container field. But I
>> can't
>> find it back.
>> Could you help me ?
>
> That script should looks fine, with one correction: you need to go back
> into Browse Mode before pasting the image into the Container field.
> Commands like Paste that need access to fields to work won't do
> anything in Preview Mode.
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)

Re: How to copy the "image" of a layout into a container field ?

am 27.01.2008 06:18:50 von Helpful Harry

In article <479be260$0$3272$426a74cc@news.free.fr>, "Remi-Noel
Menegaux" wrote:

> Harry,
> You are right and my script does work perfectly now.
> I DO thank you most.
> I didn't realize that 'Paste' needed the mode to be put back to Browse.
> Thank you thousand times.

The Paste script command does the same as you do manually: "clicks"
into a field and does a paste. Since you can't click in fields when in
Preview Mode, the paste command can't either.

There are a few other commands that need to access the field in this
way - all the ones that start with Insert are some of them (eg. Insert
Calculated Result).

For these commands to work, FileMaker needs to be in Browse Mode and
the target field must be on the current Layout.

Commands like Set Field (which is no good for your situation) can work
in any mode since they don't need direct "manual" access to the field.

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

Re: How to copy the "image" of a layout into a container field ?

am 27.01.2008 06:35:56 von Remi-Noel Menegaux

Thanks again for these helpful explanations.
Remi-Noel

"Helpful Harry" a écrit dans le message de
news:270120081818506370%helpful_harry@nom.de.plume.com...
> In article <479be260$0$3272$426a74cc@news.free.fr>, "Remi-Noel
> Menegaux" wrote:
>
>> Harry,
>> You are right and my script does work perfectly now.
>> I DO thank you most.
>> I didn't realize that 'Paste' needed the mode to be put back to Browse.
>> Thank you thousand times.
>
> The Paste script command does the same as you do manually: "clicks"
> into a field and does a paste. Since you can't click in fields when in
> Preview Mode, the paste command can't either.
>
> There are a few other commands that need to access the field in this
> way - all the ones that start with Insert are some of them (eg. Insert
> Calculated Result).
>
> For these commands to work, FileMaker needs to be in Browse Mode and
> the target field must be on the current Layout.
>
> Commands like Set Field (which is no good for your situation) can work
> in any mode since they don't need direct "manual" access to the field.
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)