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

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

 

Ninox Profile

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

S

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.

Ninox Profile

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.

Reply