Zum Hauptinhalt gehen

Suche

Suche

Format For A Retail Label

Kommentare

3 Kommentare

  • Avatar
    Michael Toupin (mtoupin

    In 10.1 this can be achieved by using conditional printing.  Create the text fields, one for the $1.99 and one for the 2/$5.00, then select the object name, and under 'print when' select the box, than hit the radio button next to 'conditionally based on data source'.  Select the database field, then 'is equal' and put 0 or 1 for each object.

    0
  • Avatar
    Legacy Poster
    My version says 10.0 sp4
    0
  • Avatar
    Fernando Ramos Miracle

    Unfortunately the conditional printing support was added on v10.1, so in your case you'll need to produce the same functionality through a VB Script.

     

    Create a new text object, change it's data source type to "Visual Basic Script" and change the VB script type to "Multi-Line" script.

     

    The code would be similar to the one below (you'll need to set properly the reference to your database fields):

     

    If Field("<itemtype>") = "1" Then
     Value = Field("<splitquantity>") & "/" & Field("<splitprice>")
    Else
     Value = Field("<unitprice>")
    End If
    

     

    Regards

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.