cancel
Showing results for 
Search instead for 
Did you mean: 
22 Replies
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

Correct - we only set variables for the main stock.

0 Kudos

Re: Cannot evaluate expression on Banner page

Jump to solution
I've been using a PDF document we were provided. I didn't realize the updated info was in there. Thank you

I have already joined and been using FFCore SDK since but it seems attempting to get the full stock list and corresponding media attributes (for multiple media elements) is out of scope.
0 Kudos
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

The variable names are listed in Help (link atop of the FFC UI) in the Appendix.

 

The JDF details are documented in the FFCore SDK. You can sign up here: The FreeFlow Core SDK

0 Kudos
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

One last thing - it seems this varaible was changed to $FFwfJob.mainStockName$

I missed that when I updated the documentation... (taking a note for the SP3 documentation)

0 Kudos

Re: Cannot evaluate expression on Banner page

Jump to solution
Thank you. Is there somewhere where the media variables are listed?

I'm able to get colour and media info now, I also found that I can't retrieve the variable values if the media elements are referenced in a nested LPP or DPP element like uStore does

E.G.
<LayoutPreparationParams ID="LPP1" PartIDKeys="RunIndex" Status="Available" Class="Parameter" Sides="TwoSidedFlipY">
<LayoutPreparationParams ID="LPP4942" RunIndex="0~6 " Sides="OneSideFront">
<MediaRef rRef="M4942" />
</LayoutPreparationParams>
</LayoutPreparationParams>

It has to be added as a direct child of the main LPP element I.E.
<LayoutPreparationParams ID="LPP1" PartIDKeys="RunIndex" Status="Available" Class="Parameter" Sides="TwoSidedFlipY">
...
...
<MediaRef rRef="M4942" />
</LayoutPreparationParams>

Also via uStore multiple stocks could be provided per job, is there a way to list all of these? Currently only the last one referenced would be displayed.
0 Kudos
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

That explains it, $FFwfDoc.color$ is for the printing color mode (aka CMYK vs K Only printing). It is not related to the media.

0 Kudos

Re: Cannot evaluate expression on Banner page

Jump to solution
That would be why... Colour is shown as $FFwfDoc.color$ in the Xerox_Freeflow_Core_4_0_Help.pdf and not $FFwfJob.mediaColor$ as you have it. Thanks I'd try this instead
0 Kudos
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

Color is working ok for me using the following text:

Name: $FFwfJob.mediaDescription$
Width: $FFwfJob.mediaWidth$
Height: $FFwfJob.mediaHeight$
Weight: $FFwfJob.mediaWeightMetric$
Thickness: $FFwfJob.mediaThickness$
Color: $FFwfJob.mediaColor$

 

 

Screen Shot 2015-07-30 at 12.18.48 PM.png

0 Kudos

Re: Cannot evaluate expression on Banner page

Jump to solution

Alright I'd try this. Does a similar workaround exist for $FFwfDoc.color$? You can test with  JDF 3 or JDF 5 and should see the same issue.

 

JDF 3 for reference:

 

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 Xerox Corporation.  All rights reserved. -->
<JDF JobID="JobID-7955" JobPartID="JobPartID-7957" Type="Combined" Types="DigitalPrinting" Version="1.4" xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ResourcePool>
    <RunList ID="R1">
      <RunList Run="1">
        <LayoutElement>
          <FileSpec MimeType="application/pdf" URL="file:///C:/FreeFlow%20Core%20v4%20SDK/JMF%20Samples/Brochure%20-%20Low%20Res.pdf" />
        </LayoutElement>
      </RunList>
    </RunList>
    <LayoutPreparationParams ID="LPP1">
      <!--
      Media Reference
      -->
      <MediaRef rRef="M1" />
    </LayoutPreparationParams>
    <!--
    Media Attributes map to Stock Attributes:
       @DescriptiveName - Stock Description
               Unlike ProductID, DescriptiveName is not a unique identifier. Instead, it is another stock attribute
       @Dimension - Stock Width and Height defined in points
       @MediaColorName - Stock Color
       @MediaType, @MediaTypeDetails, @MediaSetCount - Stock Type and Sequence
               @MediaType: Paper; @MediaTypeDetails: Cardstock, ContinuousLong, ContinuousShort, Labels, MultiPartForm, Stationery, Postcard, <custom values>
               Full Cut Tab Stock: @MediaType: Paper; @MediaTypeDetails: FullCutTabs
               Pre Cut Tab Stock: @MediaType: Paper; @MediaTypeDetails: PreCutTabs, TabStock; @MediaSetCount: Sequence Number
               Ordered Stock: @MediaType: Paper; @MediaTypeDetails: <custom value>; @MediaSetCount: Sequence Number
               Transparencies: @MediaType: Transparency; remove @MediaTypeDetails
       @Weight - Stock Weight
       @Thickness - Stock Thickness defined in microns. 1 micron = .001mm
       @FrontCoatings, @BackCoatings - Coating and Coating Type
               One Side: @FrontCoatings; no @BackCoatings
               Two Sides: @FrontCoatings; @BackCoatings
               Values: None, Glossy, HighGloss, Semigloss, Satin, Matte
       @Texture - Stock Finish
               Valid Coating options: Uncoated, One Side
               Value: Calendared, Smooth, Vellum, Uncalendared
               Note: Values to map to printer-specific values based on the smoothness of the paper (e.g. Calendared will always be the smoothest value)
       @GrainDirection - Stock Grain Direction
               Value: XDirection (maps to Short), YDirection (maps to Long)
       @HoleType: - Drilled Stock
               Value: R3-generic
       @PrePrinted: - Preprinted Stock
               Value: true, false
            Note: @PrePrinted and @MediaType are mutually exclusive. The JDF should contain one or the other element but not both       
       @RecycledPercentage: - Recycled Stock
               Value: 0 or attribute missing maps to not recycled, any other value maps to recycled
            Note: @RecycledPercentage and @MediaType are mutually exclusive. The JDF should contain one or the other element but not both            -->
    <Media DescriptiveName="XeroxCXPlanet20_65C ! 17x11" Dimension="648.0 792.0" MediaColorName="Goldenrod" MediaType="Paper" MediaTypeDetails="PreCutTabs" MediaSetCount="5" Weight="90" Thickness="1000" FrontCoatings="Glossy" Texture="Calendared" GrainDirection="XDirection" HoleType="R3-generic" PrePrinted="true" RecycledPercentage="10" ID="M1" />
    <CustomerInfo CustomerJobName="03 - Stock Attributes" ID="CI1" />
    <Component Class="Quantity" ComponentType="FinalProduct" ID="C1" />
  </ResourcePool>
  <ResourceLinkPool>
    <RunListLink Usage="Input" rRef="R1" />
    <LayoutPreparationParamsLink Usage="Input" rRef="LPP1" />
    <CustomerInfoLink Usage="Input" rRef="CI1" />
    <ComponentLink Usage="Output" rRef="C1" />
  </ResourceLinkPool>
</JDF>

0 Kudos
JavierM-Xerox
Account Deactivated

Re: Cannot evaluate expression on Banner page

Jump to solution

Thanks - I just tried it and sure enough it seems there's a bug with that variable (although other variables seems to be working ok).

 

Two things: Please submit to the hotline.

 

Also - as a workaround, Create the JDF with the stock name in both the ProductID and the DescriptiveName attributes.

Use the $FFwfJob.mediaDescription$ variable to add the stock name to the banner page.

0 Kudos