[EmData] Alternating Greybar question

Emma Glaisher emma.glaisher at fourninety.com
Sat Jun 21 04:17:10 EDT 2008


Yes. There is a command 
recordnumber(true) which returns the record number being handled. It sounds like you want a greybar every alternate line?

So «if recordnumber(true) mod 2 = 1» will be true for odd lines.

The actual bar should be handled via InDesign - in Quark I would create 2 paragraph styles, one with a rule above starting slightly below the type and wide enough to encompass all the text, the other with no rule.

You then need to put two lines in your Prototype to cover both possibilities:

«if recordnumber(true) mod 2 = 1»
Put in the text with the rule
«else»
Put in the text without the rule
«endif»

This is described on p94 of my XData Users Guide, under the heading 'Doing something every nth record'.

Good luck!


-----Original Message-----
From: data-users-bounces at emsoftware.com on behalf of Radford Parsons
Sent: Fri 6/20/2008 11:21 PM
To: data-users at emsoftware.com
Subject: [EmData] Alternating Greybar question
 
I am producing an employment advertisement, comprised of liners and
columns--a perfect construct for InData. I have set the prototype to
create a six-field, horizontal grid, separated by headlines.

Here is my question: Is is possible to set (within the data, for
instance) a "field-independent" command that will create an alternating
greybar listing (for readibility)? I have not been able to find a
prototype command that will create this effect without duplicating the
listing, other than to add an additional "empty/not empty" field. I've
attempted an «if/else» statement but the effect is the same:
duplication. The database from which I'm drawing is restricted to a
six-field grid.

Has anyone encountered/overcome this InData challenge?

Thank you.
R. Parsons
"The Oregonian"
_______________________________________________
Data-users mailing list
Data-users at emsoftware.com
http://mail.emsoftware.com/mailman/listinfo/data-users

- -
Inbound email: This email has been scanned for viruses by MessageLabs (Fourninety)


- -
Fourninety Limited, a member company of the Media Square plc group. Registered in England No. 3737606. Registered address Clarence Mill, Clarence Road, Bollington, Cheshire. SK10 5JZ

Confidentiality Notice: The information in this document and any attachments are confidential. It is intended only for the use of the named recipient. If you are not the intended recipient please notify us  immediately and delete this document. The contents on this document must not be disclosed to any other person nor may any copies be taken. The views of the author may not represent the views of the Company.

Security Warning: This e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. All liability for any claims arising as a result of using this medium to transmit information by us or to us is excluded to the extent permitted  by law.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://emsoftware.com/pipermail/data-users/attachments/20080621/f3eabdc6/attachment.html


More information about the Data-users mailing list