 |
|
 |
|
Next: !!!! Boobie Battle Armor Protect Womans Breasts V..
|
| Author |
Message |
External

Since: Nov 01, 2008 Posts: 3
|
(Msg. 1) Posted: Sat Nov 01, 2008 9:25 am
Post subject: print script Archived from groups: comp>databases>filemaker (more info?)
|
|
|
I created invoie solution with print script.
- print icon created
- by pressing icon, it calls print script
Show custom dialog: If you want to print current invoice press OK. If
invoice was canceled, press UNDO, othewise press CANCEL.
If(Get (LastMessageChoice ) = 1)
Go to Layut ("invoice print" (Invoices))
Enter preview mode()
Print (Restore)
Go to Layout ("Ivoice" (Invoice))
Enter Browse mode ()
End If
If(Get (LastMessageChoice ) = 2)
Go to Layut ("invoice undo" (Invoices))
Enter preview mode()
Print (Restore)
Go to Layout ("Ivoice" (Invoice))
Enter Browse mode ()
End If
If(Get (LastMessageChoice ) = 3)
Go to Layut (original layout)
End If
This script works OK. However, they want now addittional print step
called "invoice paid". I created "Invoice paid" layout, and changed
script as follows:
Show custom dialog: If you want to print current invoice press OK. If
invoice was canceled, press UNDO, othewise press CANCEL.
If(Get (LastMessageChoice ) = 1)
Perform script ("Invoice paid)
End If
If(Get (LastMessageChoice ) = 2)
Go to Layut ("invoice undo" (Invoices))
Enter preview mode()
Print (Restore)
Go to Layout ("Ivoice" (Invoice))
Enter Browse mode ()
End If
If(Get (LastMessageChoice ) = 3)
Go to Layut (original layout)
End If
Invoice paid script step:
Show custom dialog: If you want to print current invoice press OK. For
paid invoices press PAID, othewise press CANCEL.
If(Get (LastMessageChoice ) = 1)
Go to Layut ("invoice print" (Invoices))
Enter preview mode()
Print (Restore)
Go to Layout ("Ivoice" (Invoice))
Enter Browse mode ()
End If
If(Get (LastMessageChoice ) = 2)
Go to Layut ("invoice paid" (Invoices))
Enter preview mode()
Print (Restore)
Go to Layout ("Ivoice" (Invoice))
Enter Browse mode ()
End If
If(Get (LastMessageChoice ) = 3)
Go to Layut (original layout)
End If
Problem is as follows:
When I press print icon and select OK it goes to "Invoice paid" script
step. If I press OK again, it prints invoice and goes bacj to Invoice
layout. However, if I select PAID, he prints paid invoice and than he
try to print INVOICE UNDO. If cancel is pressed in both scripts,
database returns to original layout.
I could solve to issue by adding additional icon for UNDO invoice.
However, I would like to deal with this with one icon and several
script steps. Question: why my PAID option calls UNDO script step,
instead of going to INVOICE layout.
--
Filemaker 9.03 Advanced - Mac OSX 10.5.5 >> Stay informed about: print script |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2008 Posts: 9
|
(Msg. 2) Posted: Sat Nov 01, 2008 5:25 pm
Post subject: Re: print script [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Tomislav Tomasic" wrote in message
> I created invoie solution with print script.
> - print icon created
> - by pressing icon, it calls print script
>
> Show custom dialog: If you want to print current invoice press OK. If
> invoice was canceled, press UNDO, othewise press CANCEL.
>
> If(Get (LastMessageChoice ) = 1)
> Go to Layut ("invoice print" (Invoices))
> Enter preview mode()
> Print (Restore)
> Go to Layout ("Ivoice" (Invoice))
> Enter Browse mode ()
> End If
>
> If(Get (LastMessageChoice ) = 2)
> Go to Layut ("invoice undo" (Invoices))
> Enter preview mode()
> Print (Restore)
> Go to Layout ("Ivoice" (Invoice))
> Enter Browse mode ()
> End If
>
> If(Get (LastMessageChoice ) = 3)
> Go to Layut (original layout)
> End If
>
>
> This script works OK. However, they want now addittional print step
> called "invoice paid". I created "Invoice paid" layout, and changed
> script as follows:
>
> Show custom dialog: If you want to print current invoice press OK. If
> invoice was canceled, press UNDO, othewise press CANCEL.
>
> If(Get (LastMessageChoice ) = 1)
> Perform script ("Invoice paid)
> End If
>
> If(Get (LastMessageChoice ) = 2)
> Go to Layut ("invoice undo" (Invoices))
> Enter preview mode()
> Print (Restore)
> Go to Layout ("Ivoice" (Invoice))
> Enter Browse mode ()
> End If
>
> If(Get (LastMessageChoice ) = 3)
> Go to Layut (original layout)
> End If
>
> Invoice paid script step:
>
> Show custom dialog: If you want to print current invoice press OK. For
> paid invoices press PAID, othewise press CANCEL.
>
> If(Get (LastMessageChoice ) = 1)
> Go to Layut ("invoice print" (Invoices))
> Enter preview mode()
> Print (Restore)
> Go to Layout ("Ivoice" (Invoice))
> Enter Browse mode ()
> End If
>
> If(Get (LastMessageChoice ) = 2)
> Go to Layut ("invoice paid" (Invoices))
> Enter preview mode()
> Print (Restore)
> Go to Layout ("Ivoice" (Invoice))
> Enter Browse mode ()
> End If
>
> If(Get (LastMessageChoice ) = 3)
> Go to Layut (original layout)
> End If
>
> Problem is as follows:
>
> When I press print icon and select OK it goes to "Invoice paid" script
> step. If I press OK again, it prints invoice and goes bacj to Invoice
> layout. However, if I select PAID, he prints paid invoice and than he
> try to print INVOICE UNDO. If cancel is pressed in both scripts,
> database returns to original layout.
>
> I could solve to issue by adding additional icon for UNDO invoice.
> However, I would like to deal with this with one icon and several
> script steps. Question: why my PAID option calls UNDO script step,
> instead of going to INVOICE layout.
After it has finished performing a sub-Script, FileMaker will return to the
original Script and continue running that from the next command after the
Perform Script command. Added to this is the fact that the message choices
are not reset or local to each Script. This means when you press choice 2 on
the second message Window, the "2" is still there in the MessageChoice
function when FileMaker returns to the first Script, so ti then performs the
Undo Invoice part as well.
What you need to do is put some Exit Script commands into your first Script
so that FileMaker will stop after performing the appropriate section.
eg.
If [Get (LastMessageChoice) = 1]
Perform script ["Invoice paid"]
Exit Script <----------- New command
End If
If [Get (LastMessageChoice) = 2]
Go to Layout ("invoice undo" (Invoices))
Enter preview Mode[]
Print [Restore]
Go to Layout ["Ivoice" (Invoice)]
Enter Browse Mode []
Exit Script <----------- New command
End If
If [Get (LastMessageChoice) = 3]
Go to Layout [original layout]
End If
This way, when FileMaker has finished performing the Invoice Paid sub-Script
it will return to this Script and perform the Exit Script command.
You don't need the Exit Script command for choice 3 since it is the very
last part of the Script anyway.
Helpful Harry
Horrendously stuck on a s-l-o-w Windows box due to a hopeless and hapless
ISP screwing up his Mac's Internet connection ... AGAIN!!! >> Stay informed about: print script |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2008 Posts: 3
|
(Msg. 3) Posted: Sat Nov 01, 2008 6:25 pm
Post subject: Re: print script [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2008-11-01 21:56:58 +0100, "Your Name" said:
>
> "Tomislav Tomasic" wrote in message
>
>> I created invoie solution with print script.
>> - print icon created
>> - by pressing icon, it calls print script
>>
>> Show custom dialog: If you want to print current invoice press OK. If
>> invoice was canceled, press UNDO, othewise press CANCEL.
>>
>> If(Get (LastMessageChoice ) = 1)
>> Go to Layut ("invoice print" (Invoices))
>> Enter preview mode()
>> Print (Restore)
>> Go to Layout ("Ivoice" (Invoice))
>> Enter Browse mode ()
>> End If
>>
>> If(Get (LastMessageChoice ) = 2)
>> Go to Layut ("invoice undo" (Invoices))
>> Enter preview mode()
>> Print (Restore)
>> Go to Layout ("Ivoice" (Invoice))
>> Enter Browse mode ()
>> End If
>>
>> If(Get (LastMessageChoice ) = 3)
>> Go to Layut (original layout)
>> End If
>>
>>
>> This script works OK. However, they want now addittional print step
>> called "invoice paid". I created "Invoice paid" layout, and changed
>> script as follows:
>>
>> Show custom dialog: If you want to print current invoice press OK. If
>> invoice was canceled, press UNDO, othewise press CANCEL.
>>
>> If(Get (LastMessageChoice ) = 1)
>> Perform script ("Invoice paid)
>> End If
>>
>> If(Get (LastMessageChoice ) = 2)
>> Go to Layut ("invoice undo" (Invoices))
>> Enter preview mode()
>> Print (Restore)
>> Go to Layout ("Ivoice" (Invoice))
>> Enter Browse mode ()
>> End If
>>
>> If(Get (LastMessageChoice ) = 3)
>> Go to Layut (original layout)
>> End If
>>
>> Invoice paid script step:
>>
>> Show custom dialog: If you want to print current invoice press OK. For
>> paid invoices press PAID, othewise press CANCEL.
>>
>> If(Get (LastMessageChoice ) = 1)
>> Go to Layut ("invoice print" (Invoices))
>> Enter preview mode()
>> Print (Restore)
>> Go to Layout ("Ivoice" (Invoice))
>> Enter Browse mode ()
>> End If
>>
>> If(Get (LastMessageChoice ) = 2)
>> Go to Layut ("invoice paid" (Invoices))
>> Enter preview mode()
>> Print (Restore)
>> Go to Layout ("Ivoice" (Invoice))
>> Enter Browse mode ()
>> End If
>>
>> If(Get (LastMessageChoice ) = 3)
>> Go to Layut (original layout)
>> End If
>>
>> Problem is as follows:
>>
>> When I press print icon and select OK it goes to "Invoice paid" script
>> step. If I press OK again, it prints invoice and goes bacj to Invoice
>> layout. However, if I select PAID, he prints paid invoice and than he
>> try to print INVOICE UNDO. If cancel is pressed in both scripts,
>> database returns to original layout.
>>
>> I could solve to issue by adding additional icon for UNDO invoice.
>> However, I would like to deal with this with one icon and several
>> script steps. Question: why my PAID option calls UNDO script step,
>> instead of going to INVOICE layout.
>
> After it has finished performing a sub-Script, FileMaker will return to the
> original Script and continue running that from the next command after the
> Perform Script command. Added to this is the fact that the message choices
> are not reset or local to each Script. This means when you press choice 2 on
> the second message Window, the "2" is still there in the MessageChoice
> function when FileMaker returns to the first Script, so ti then performs the
> Undo Invoice part as well.
>
> What you need to do is put some Exit Script commands into your first Script
> so that FileMaker will stop after performing the appropriate section.
> eg.
> If [Get (LastMessageChoice) = 1]
> Perform script ["Invoice paid"]
> Exit Script <----------- New command
> End If
>
> If [Get (LastMessageChoice) = 2]
> Go to Layout ("invoice undo" (Invoices))
> Enter preview Mode[]
> Print [Restore]
> Go to Layout ["Ivoice" (Invoice)]
> Enter Browse Mode []
> Exit Script <----------- New command
> End If
>
> If [Get (LastMessageChoice) = 3]
> Go to Layout [original layout]
> End If
>
> This way, when FileMaker has finished performing the Invoice Paid sub-Script
> it will return to this Script and perform the Exit Script command.
>
> You don't need the Exit Script command for choice 3 since it is the very
> last part of the Script anyway.
>
>
> Helpful Harry
> Horrendously stuck on a s-l-o-w Windows box due to a hopeless and hapless
> ISP screwing up his Mac's Internet connection ... AGAIN!!!
Thank you, for explanation and solution.
--
Filemaker 9.03 Advanced - Mac OSX 10.5.5 >> Stay informed about: print script |
|
| Back to top |
|
 |  |
| Related Topics: | Cancel Print - hello all, using fm 8 pro advanced, i have several scripts that do some major printing. the users sometimes want to cancel this printing before they actually start the printing (hit the cancel button the print dialog box). Is there any way for me to...
massive oversize print files.... - FMP 8.5 on OSX. FMP Server. Our developer built layouts [I don't know a better term...] for 4-up/5-up output, for labels, etc. This appear on screen as single column but print as 4 {or 5}. But on one machine; the resulting print file is enormous and..
Script to run a script - I can capture the script that is running [get(scriptname)] into feld old script how can i re-run this script again from this information... like can I run script [calculated result [field(old script)] -- ..
Find Script - Hi I'm getting rather confused over a 'find' script, I wish to write for FM 8.5 Advanced. I have a table which includes three fields, these three fields contain a client's name or client's contact names. What I want to do is perform a find where..
Using same script with different tables - 8.5 Advanced WinXP I have several tables with a common field (name) I need to create a script that will find a name The scripts steps are specific to the table (contact::name ; schedule::name). In a list view of all names, I make the name field a.. |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|