Adding NewLine to a textbox

2 posts, 0 answers
  1. David
    David avatar
    15 posts
    Member since:
    Nov 2016

    Posted 08 Jan Link to this post

    Could someone please help.  I am trying to understand how to code a conditional IIF() clause with a new line. 

    My goal is the following:

    mfgTitle

    Bob

    Smith

     

    Here is what I have tried

    First:  I have tried using an htmlTextBox and using the conditional expression within it.  This caused the htmlTextBox to throw an error over the </br>

    IIF(value <> 1, {Fields.mfgTitle} <br/> {Fields.FirstName}<br/>{Fields.LastName}, {Fields.FirstName}<br/>{Fields.LastName})

    Also I tried  the following

    IIF(value<> 1, {Fields.mfgTitle} + "\r\n" + {Fields.FirstName} + "\r\n" + {Fields.LastName}, {Fields.FirstName} + "\r\n" + {Fields.LastName})

     

    Any Help would be greatly appreciated.

     

    Thank You

  2. David
    David avatar
    15 posts
    Member since:
    Nov 2016

    Posted 08 Jan in reply to David Link to this post

    Note:  I would like to add that this report is bound via a Enumerable that is used to load an ObjectDatasource of a table type.  That being said, I am trying to populate the textbox via the 'Expression Editor'.

Back to Top