Aller au contenu principal

Recherche

Recherche

How To Display <empty> Text When The Value Is Empty Or Null In Db

Commentaires

9 commentaires

  • Avatar
    Ian Cummings
    Modérateur
    So when the field is empty you want the data of the object set to "<Empty>"?

    For this you will need to use an OnProcessData VB Script via the "More Options" dialog.

    [code]
    If value = "" Then
    value = "<Empty>"
    End If
    [/code]
    0
  • Avatar
    Legacy Poster
    [quote name='Ian C - Seagull Support' timestamp='1323782199' post='1312']
    So when the field is empty you want the data of the object set to "<Empty>"?

    For this you will need to use an OnProcessData VB Script via the "More Options" dialog.

    [code]
    If value = "" Then
    value = "<Empty>"
    End If
    [/code]
    [/quote]

    Yes Ian i am doing the same thing now through vb script, i would like to know weather there is any way to handle it without writing script for each and every field placed on the label. I mean is there any option that will display <empty> tag by default with out writing any script.

    Thanks,
    Phaneendra
    0
  • Avatar
    Ian Cummings
    Modérateur
    No there isn't. You need to use VB script.
    0
  • Avatar
    Legacy Poster
    [quote name='Ian C - Seagull Support' timestamp='1323782712' post='1315']
    No there isn't. You need to use VB script.
    [/quote]

    Its ok, thanks for clarification.
    0
  • Avatar
    Legacy Poster
    When the value is empty or null in the Db how I can just not print this field with his preffix in the label ?
    0
  • Avatar
    Legacy Poster
    my problem is that in some times this field has value in other times has not
    0
  • Avatar
    Ian Cummings
    Modérateur
    I suggest you use a separate sub-string for the prefix instead, and perform the conditional VBS statement on each.
    0
  • Avatar
    Ian Cummings
    Modérateur
    Alternatively, if you have v9.40 you can dynamically change the object properties to set the whole object not to print. See the white paper below and the BarTender Help System for more information.

    http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_DynamicallyChangingObjectsAtPrint-TimeUsingVBScript.pdf
    0
  • Avatar
    Legacy Poster
    I have the v.9.2SR2 so I will try your first proposal
    0

Vous devez vous connecter pour laisser un commentaire.