Skip to main content
8-Gravel
November 30, 2022
Question

Want to name a empty string or a single space as a lable in a grid column

  • November 30, 2022
  • 2 replies
  • 2486 views

Hi all,

I have a requirement that i need to name a column in a infotable as a blank space. I could not able to add a space in it . It throws a error in the grid. Is there any possible way to do that ?

2 replies

16-Pearl
December 1, 2022

I have found two possibilities:

1. Use a Localization token as title. You can create one with a " " (space) as a value and choose this one as Title

nmutter_1-1669916027177.png

2. Export the Mashup to .xml and set the title to " " and import the .xml again. If you edit the configuration again via mashup builder it will remove the space again 

nmutter_0-1669915898107.png

 

I assume the 1st one would be the "best" one.

8-Gravel
December 2, 2022

Yes 1st way works fine but if we export the localization table and import the table in other servers  the token value is changed to undefined instead of blank space ' '. It spoils the grid functionalities.

16-Pearl
December 2, 2022

ah **bleep** 😕 Would need to create the token in the instance than manualy? or via a service maybe? But yeah.. all workarounds. I do not like it. I did not find a other way. Maybe just use a "." or so as title. 

Other idea: Not sure if via customCSS you could change visibility of a specific column?

17-Peridot
December 2, 2022

You might be able to do this using the grid configuration JSON, but it is a lot of work.

 

 

{
 "targets": target,
 "fieldName": fieldName,
 "title": '',
 "width": width,
 "autoWidth": false,
 "overflow": "ellipsis",
 "headerTextAlignment": "center",
 "textAlignment": "center",
 }

 

Something like this for your column definitions.

 

Best regards,

 

8-Gravel
December 2, 2022

Plenty of work🥺🤧. We are having many columns in the grid and lots of state formating in the grid columns