Koonce Posted April 25, 2018 Posted April 25, 2018 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....
Koonce Posted April 25, 2018 Author Posted April 25, 2018 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: ]
Steve Martino Posted April 26, 2018 Posted April 26, 2018 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.
Koonce Posted April 28, 2018 Author Posted April 28, 2018 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
Lee Smith Posted April 28, 2018 Posted April 28, 2018 This is the FileMaker Help New Window script step
Koonce Posted April 28, 2018 Author Posted April 28, 2018 18 hours ago, Lee Smith said: This is the FileMaker Help New Window script step well i as of yet i can't get the layout to go without the go to layout
Koonce Posted May 2, 2018 Author Posted May 2, 2018 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: This is the FileMaker Help New Window script step i have Filemaker 15 and it looks like the new window script does not have the layout spot
Lee Smith Posted May 2, 2018 Posted May 2, 2018 http://www.filemaker.com/help/15/fmp/en/#page/FMP_Help%2Fnew-window.html 23 minutes ago, Koonce said: i have Filemaker 15 and it looks like the new window script does not have the layout spot
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now