#30345 - 09/11/09 05:00 PM
How do I use a "member number" field to in a PDF?
|
OL Newbie
Registered: 11/15/07
Posts: 14
Loc: Minneapolis, Minnesota USA
|
I am having trouble getting a page to trigger when the member no. chages in a PDF. What is the best way? The press talk seems to be different from ver.6, I need to have the page be forced to front when the member no changes. Thanks. LD
_________________________
Lou D
|
Top
|
|
|
|
#30346 - 09/14/09 09:36 AM
Re: How do I use a "member number" field to in a PDF?
|
Anonymous
Unregistered
|
Louduren, Here is how I would do it. First, create a Global Variable named "&CurrentMemberNo", type: string, default: blank. Then, create a Global Function, BoolForceFront, with the following code: function @BoolForceFront(): boolean
define(&temp, boolean, True)
if(ne(regionline(0.15,0.66,1.13,0.84),&CurrentMemberNo))
&temp := True
&CurrentMemberNo := regionline(0.15,0.66,1.13,0.84)
elseif
&temp := False
endif
&result := &temp
endfunction() Finally, add the condition =@BoolForceFront to your Force first side parameter in the page properties. Of course, the regionline has to be modified to your own MemberNo location. Hope this helps, Eric.
|
Top
|
|
|
|
#30347 - 09/14/09 11:17 AM
Re: How do I use a "member number" field to in a PDF?
|
OL Newbie
Registered: 11/15/07
Posts: 14
Loc: Minneapolis, Minnesota USA
|
Thank You for your help. One of the things I need to learn is how to "Think like a Programer". What is the best way to learn press talk and get a good foundation in programming techniques? I can looka at press talk and disect it but to create it I easliy get lost. Any good books on learning a language from the start that is most like Press Talk?
Thanks, LD
_________________________
Lou D
|
Top
|
|
|
|
#30348 - 09/14/09 11:27 AM
Re: How do I use a "member number" field to in a PDF?
|
Anonymous
Unregistered
|
Louduren,
PressTalk was originally based on the Postscript language and we added to it and changed in since its introduction, but this means it is now too different from other programming languages in terms of syntax and use to be learned from any book on programming, even if it does use some pretty standard functions and logic (if/then, loops, variable conversions, functions and variables). Books on general programming (something like "Teach yourself programming" or "Programming for dummies") might help you understand the logic and structure in general but wouldn't help with actually coding with PressTalk.
We do however offer training on PlanetPress and PressTalk, I would suggest you contact your reseller to set this up.
Hope this helps, Eric.
|
Top
|
|
|
|
#30349 - 09/21/09 12:45 PM
Re: How do I use a "member number" field to in a PDF?
|
OL Newbie
Registered: 11/15/07
Posts: 14
Loc: Minneapolis, Minnesota USA
|
Eric, When I add this script to the global function creator I get an error code; "P0030- No other function declaration is allowed in the Global Function Definition" What am I doing wrong?
Thanks
_________________________
Lou D
|
Top
|
|
|
|
#30350 - 09/21/09 12:52 PM
Re: How do I use a "member number" field to in a PDF?
|
Anonymous
Unregistered
|
Hi,
Try removing all carriage return/Line feed after the endfunction() command.
Hope this helps!
Benoit
|
Top
|
|
|
|
#30351 - 09/21/09 02:00 PM
Re: How do I use a "member number" field to in a PDF?
|
Anonymous
Unregistered
|
Also, make sure you do not try to put in 2 global functions in the same box. Each definition needs to be in it's own global function object.
Hope this helps, Eric.
|
Top
|
|
|
|
#30352 - 09/21/09 02:59 PM
Re: How do I use a "member number" field to in a PDF?
|
OL Newbie
Registered: 11/15/07
Posts: 14
Loc: Minneapolis, Minnesota USA
|
Thanks, What I did was create a new "NoName" form, made the changes and copied and pasted the global function,global variable and conditions into my current form and it accepted it. There were no crlf's in the script but I back spaced the "enter" key space.
Thanks
_________________________
Lou D
|
Top
|
|
|
|
#30353 - 09/22/09 12:00 PM
Re: How do I use a "member number" field to in a PDF?
|
OL Newbie
Registered: 11/15/07
Posts: 14
Loc: Minneapolis, Minnesota USA
|
I have another request. I am in need of a way in ver. 7 to have OMR sequence marks turn on for each printed page (not image such as the back side) that counts to enable a binary 3 mark code. The code is to insure that the pages are in order. Regardless of the document page number, but maybe trigger off the data page when it executes. The marks can count up to 7 then start over. I can get the marks to show up but need a way to increment for each front side regardless of the customer number. A simple script to count each new "odd numbered" data page or PDF.
Thank you, this is a big help for me to learn the press talk as I can disect it and see how it works.
LD
_________________________
Lou D
|
Top
|
|
|
|
#30354 - 09/23/09 07:07 AM
Re: How do I use a "member number" field to in a PDF?
|
Member
Registered: 07/24/08
Posts: 74
Loc: Italia - France
|
Hi, Here a solution (not the best I think) : You can use a global variable "nbCustomerpage" - When you have a newfront with the function BoolForceFront, set to 0 the variable. - Increment the global variable in the page properties "PressTalk after " - Take the rest of nbCustomerpage/2. If the rest equal 0 your in back, else your in front. - When you are on the front, do (nbCustomerpage/2)+1. You must obtain an integer part which is your number page of your customer. - Pass the value to a global variable or play directly with presstalk to design your OMR code . Personally I don't like very much the OMR i prefer barcode for the integrity but if you don't have choice ... good luck
|
Top
|
|
|
|
|
|