Printing a card (want invisible)
Posted: Tue Sep 20, 2022 8:14 pm
I have cards that the user will interact with, but then once all the information is collected, I need to print out some of it on a piece of paper, in a format that is nothing like what the screen the user has been interacting with.
So I have a Print button on the card that the person was using.
Then I set up a substack with a card that has the fields organized the way they should show up on the piece of paper.
I wrote a function to copy the fields from the main stack into local variables.
Then I want to call a function (that takes all those local variables) that resides on the card of the substack, or put the function on the substack - don't care which.
This function takes the parameters, copies them onto the card that is being printed, sets the print parameters and prints it.
The customer has no need to see the card that is being printed, in fact, seeing it is more likely to cause confusion (and probably the screen that they are using is not big enough for the "print" card).
So how do I call a function on a card that is not being displayed from a button script on a card on the main stack?
Thanks,
Andrew
So I have a Print button on the card that the person was using.
Then I set up a substack with a card that has the fields organized the way they should show up on the piece of paper.
I wrote a function to copy the fields from the main stack into local variables.
Then I want to call a function (that takes all those local variables) that resides on the card of the substack, or put the function on the substack - don't care which.
This function takes the parameters, copies them onto the card that is being printed, sets the print parameters and prints it.
The customer has no need to see the card that is being printed, in fact, seeing it is more likely to cause confusion (and probably the screen that they are using is not big enough for the "print" card).
So how do I call a function on a card that is not being displayed from a button script on a card on the main stack?
Thanks,
Andrew