Prefix white-space in calculated column - InfoPath Dev
in

InfoPath Dev

Prefix white-space in calculated column

Last post 01-18-2012 06:55 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-18-2012 02:20 AM

    Prefix white-space in calculated column

     

    Hi,

    I have a calculated field added in section in my InfoPath 2010 form.

    In this column, i am showing the school names and the various courses available, and this data is retrieved from the database.

    Currently the data shown in InfoPath is like the below:

    School1

    Physics

    Chemistry

    School2

    English

    Maths

    However, I would like to show the data as below:

    School1

       Physics

       Chemistry

    School2

       English

       Maths

    The problem I am facing is that the White-space(s) are not getting Prefixed  by 2 spaces in front of the column.

    The calculated field has the properties as -

    General Tab - Result - Format as Text

    Display tab - Options -  wrap text is unchecked, Scrolling -Expand to show all text. Alignment - Left

    How to add white-space in a column?

    Thank you

  • 01-18-2012 03:55 AM In reply to

    Re: Prefix white-space in calculated column

    How about modifying the left margin or left padding in the control's display properties?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 01-18-2012 06:00 AM In reply to

    Re: Prefix white-space in calculated column

     Hi,

    Could you please let me know property to change. Is it in size tab - padding left to 2 px.

     I am trying to show the result as below:

    School1

       Physics

       Chemistry

    School2

       English

       Maths

     

  • 01-18-2012 06:55 AM In reply to

    Re: Prefix white-space in calculated column

    I'd suggest using margin instead of padding.  Just add as much left margin to the Calculated Value control as you need until it's spaced the way you want.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.