0

How can I get all the field centered (table into other table and table into print view)

Hello Ninox users,

How can I get all the field centered (table into other table and table into print view)?

Thanks in advance for your help.

David W.

centered 1

centered2

3 replies

null
    • Birger_H
    • 5 yrs ago
    • Reported - view

    In all table views alignment is set automatic:

    left for text, links, emails,...
    centered for dates, times, appointments
    right for numbers

    This can not be changed.

    In print you can set alignment for every field. In printed subtables you don't have this option.

    Two things you can do:
    - create a formula field:
    –––
    'Nom' + ", " + 'Prenom'
    –––

    We are working on improving this. Upcoming versions of Ninox will give the user more options and choices.

    Birger

    • Senso
    • 5 yrs ago
    • Reported - view

    Hello Birger, thanks for your feedback!

    You write "Two things you can do".

    But I read only one "Create a formula field".

    Is there another tip?

    Thanks for your help!

    David W.

    • Sean
    • 5 yrs ago
    • Reported - view

    You can approximate centering with a formula field using lpad(string, length, padding):

    let numPadLength := 30;
    let numTextLen := length(TextField);
    let numCenter := ceil((numPadLength - numTextLen) / 2 + numTextLen);
    lpad(TextField, numCenter, " ")

    The " " must be typed using Option+Space and you'll have to experiment with pad length.

Content aside

  • 5 yrs agoLast active
  • 3Replies
  • 3166Views