Menu

AttributeText - default value - multi line

2020-10-29
2020-11-13
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2020-10-29

    Just wondering how we can define a multi line default value? Does it have to be done with "CDATA"?
    Also, if no prior space/tabs (to the left) are wanted, should the CDATA be completely outlined to the left? (kind of ignoring the XML indentation)

     
  • Pierre Goiffon

    Pierre Goiffon - 2020-11-13

    Hi Jeffrey,
    Not an easy one :D
    In \AttributeText::GetAsHTML seems like any \n would be handled on display (so Cr, Lf, CrLf).

    I've just saw that the line feed added in the XML seems to be kept in the iTop form.
    I attached what I get in iTop form (seems simply pasting an image isn't working anymore.............)

    My XML :

            <field id="mytext" xsi:type="AttributeText">
              <sql>mytext</sql>
              <default_value>Ligne1
                Ligne2
              </default_value>
              <is_null_allowed>true</is_null_allowed>
            </field>
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.