Hoppa till huvudinnehållet

Variable text in Report Designer

Kommentarer

7 kommentarer

  • Permanently deleted user
    Hi Benjamin,

     

    Not sure that I understand your question but I think you could use a “calculated field” in your report that concatenates “data field” values and use “calculated field” in the report instead of “dataField” directly.

     

    For example you could set the “formula” of a “calculated field” = CITY + ", " + CODE + " " + ZIP

     

     
    0
  • Permanently deleted user
    Hi Francesca,

     

    This is exactly what I am trying to do! How do I set this in Report Designer?
    0
  • Permanently deleted user
    Nevermind, I got it!

     

    Thank you
    0
  • Permanently deleted user
    Can you share how you did it in report designer? I'm trying to do something similar.
    0
  • Permanently deleted user

     

    Hi Rebecca,

     

    To achieve this, right-click on 'Calculated' to create the calculated field

     

    RightClickCalculated

     

    Enter a variable name for the calculated field you're creating; ex: 'OwnerAddress'.

     

    In the Formula box, enter a scripted format for the fields you want to include; my example:

     

    =ContactFirstName + " " + ContactLastName + "\r" + MailingAddress1 + "\r" + MailingAddress2 + "\r" + MailingCity + ", " + MailingState + " " + MailingZip

     

    Then, for the desired text box location, input the name of your calculated field (OwnerAddress) in the DataField box instead of a singular field from your data.

     

    It isn't entirely perfect, as it leaves a blank line if no value is in the second address field.

     

    Hope this helps!

     

     
    0
  • Permanently deleted user
    Here's another good post on concatenating fields and dealing with NULL values or blank fields:

     

    https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906600000000AfAAAU

     

    Anybody know how to create ProperCase out of UPPERCASE text in a calculated field?
    0
  • Permanently deleted user
    Has anyone been able to get this to work in Report Designer 4.9? This seems so easy, but I keep getting a "Control Script failed for control..."  I can get 1 + 1 to work but when I keep it super simple to pull a field in like =Description or just Description it bombs out.
    0

Du måste logga in om du vill lämna en kommentar.