<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [EmData] Alternating Greybar question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><TT><FONT SIZE=2>Yes. There is a command<BR>
recordnumber(true) which returns the record number being handled. It sounds like you want a greybar every alternate line?<BR>
<BR>
So «if recordnumber(true) mod 2 = 1» will be true for odd lines.<BR>
<BR>
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.<BR>
<BR>
You then need to put two lines in your Prototype to cover both possibilities:<BR>
<BR>
«if recordnumber(true) mod 2 = 1»<BR>
Put in the text with the rule<BR>
«else»<BR>
Put in the text without the rule<BR>
«endif»<BR>
<BR>
This is described on p94 of my XData Users Guide, under the heading 'Doing something every nth record'.<BR>
<BR>
Good luck!<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: data-users-bounces@emsoftware.com on behalf of Radford Parsons<BR>
Sent: Fri 6/20/2008 11:21 PM<BR>
To: data-users@emsoftware.com<BR>
Subject: [EmData] Alternating Greybar question<BR>
<BR>
I am producing an employment advertisement, comprised of liners and<BR>
columns--a perfect construct for InData. I have set the prototype to<BR>
create a six-field, horizontal grid, separated by headlines.<BR>
<BR>
Here is my question: Is is possible to set (within the data, for<BR>
instance) a "field-independent" command that will create an alternating<BR>
greybar listing (for readibility)? I have not been able to find a<BR>
prototype command that will create this effect without duplicating the<BR>
listing, other than to add an additional "empty/not empty" field. I've<BR>
attempted an «if/else» statement but the effect is the same:<BR>
duplication. The database from which I'm drawing is restricted to a<BR>
six-field grid.<BR>
<BR>
Has anyone encountered/overcome this InData challenge?<BR>
<BR>
Thank you.<BR>
R. Parsons<BR>
"The Oregonian"<BR>
_______________________________________________<BR>
Data-users mailing list<BR>
Data-users@emsoftware.com<BR>
<A HREF="http://mail.emsoftware.com/mailman/listinfo/data-users">http://mail.emsoftware.com/mailman/listinfo/data-users</A><BR>
<BR>
- -<BR>
Inbound email: This email has been scanned for viruses by MessageLabs (Fourninety)<BR>
<BR>
</FONT></TT>
</P>
<BR>
- -<BR>
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<BR>
<BR>
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.<BR>
<BR>
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.<BR>
</BODY>
</HTML>