Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Printing with Button Bar

Featured Replies

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....

How about you show the script?

  • Author
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:      ]

 

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. 

  • Author
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

  • Author
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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.