Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2395 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a Button Bar and I have different buttons.... in One Button I need to Print but it is a choice of 3 different things... So I started a script with a custom dialog and I can get the first one to print or the last but I cannot get the script so that I can click on the selection and just that one print it trys to print all three of just the one....

Posted
3 hours ago, Steve Martino said:

How about you show the script?

Allow User Abort off

Show Custom Dialog [“Lions Print Letters; “Select which letter to print?”]

If[Get(LastMessageChoice )=1

New Window[Style: Document; Name: “Pre Application Letter”; Top:100;Left:200]

Go to Layout [“Preapplication” (Contracts)]

Print Setup[restore; With dialog: off]

Print [Restore: Hp Color Laserjet 4700:with dialog: Off]

End if

If[Get(LastMessageChoice )=2

New Window[Style: Document; Name: “Pre Application Letter”; Top:100;Left:200]

Go to Layout [“Preapplication” (Contracts)]

Print Setup[restore; With dialog: off]

Print [Restore: Hp Color Laserjet 4700:with dialog: Off]

End if

If[Get(LastMessageChoice )=3

New Window[Style: Document; Name: “Pre Application Letter”; Top:100;Left:200]

Go to Layout [“Preapplication” (Contracts)]

Print Setup[restore; With dialog: off]

Print [Restore: Hp Color Laserjet 4700:with dialog: Off]

End if

Exit Script [Text Result:      ]

 

Posted

For starters, instead of 3 If/End If's, you should use If and 2 Else If's, 1 End If.

But that doesn't matter as all 3 message choices point to the same layout.

You can also use the New Window script step and select a layout, eliminating Go to Layout.

I also don't know what the 3 message choices represent. 

Posted
On 4/25/2018 at 10:03 PM, Steve Martino said:

For starters, instead of 3 If/End If's, you should use If and 2 Else If's, 1 End If.

But that doesn't matter as all 3 message choices point to the same layout.

You can also use the New Window script step and select a layout, eliminating Go to Layout.

I also don't know what the 3 message choices represent.  

ok I am not new to filemaker I am not a great person writing this so If I use 1 if how do I put the 2 and 3rd selection... I am just going to a layout and printing a layout....how do i put in the script to pick the 2nd and 3rd pick.

2 minutes ago, Koonce said:

You can also use the New Window script step and select a layout, eliminating Go to Layout.

I do not know where this is located

Posted
On 4/27/2018 at 9:52 PM, Koonce said:

ok I am not new to filemaker I am not a great person writing this so If I use 1 if how do I put the 2 and 3rd selection... I am just going to a layout and printing a layout....how do i put in the script to pick the 2nd and 3rd pick.

I do not know where this is located

 

On 4/27/2018 at 11:04 PM, Lee Smith said:

i have Filemaker 15 and it looks like the new window script does not have the layout spot

This topic is 2395 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.