Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Table fields alignment using Row Component in SAP Build

nishantbansal91
Active Contributor
0 Kudos
1,131

Hello team,

I have designed the table via Rows component in SAP Build. I am not able to achieve the alignment. 

 

nishantbansal91_0-1719522541567.png

Below is the screen shot  of Component in Build. 

Header is outer container and H1 is row component having 6 cells.

Scroll view is for scrolling 

Row1 is for Item data. 

nishantbansal91_1-1719522602607.png

 

 

5 REPLIES 5

Jakub_Roguski
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,016

Simply select your row, then on the right hand "Layout", and then you will see cell structure. Click each cell symbol in the row structure picture and define it's width as fixed value. Do the same with your header row.

Please note - the header row will not be aligned with the list rows anyway when the scroll view shows the scroll bar. But at least all the list rows will be aligned with each other.

Screenshot 2024-06-28 at 09.10.00.png

nishantbansal91
Active Contributor
0 Kudos
999

Hello @Jakub_Roguski 

I tried this option, but the items are not aligned correctly. Is there a way to ensure that any new items added in the future will stay aligned without needing to adjust the percentage values?

994

If the fields in rows are not aligned, first turn on borders around cells. To do this click a cell, go to style, edit the style adding border: solid, 1px, any dark color. This will let you check if cells in rows are aligned or not.

Screenshot 2024-06-28 at 10.10.06.pngScreenshot 2024-06-28 at 10.10.50.png

If cells are not aligned, you definitely skipped definition of the width of one or more cells.

But if cells are aligned, this would mean that the cell content is not aligned. In this case click on each text in each cell and set alignment property to either "Left", "Center" or "Right". In the improbable case it still does not work it would mean that your data has white spaces in the displayed text.

If you add a new cell to your row, the new cell has undefined width, so you always have to edit cell widths after adding a new cell in the row. Otherwise the width of the cell will be dynamically set to fit the content.

0 Kudos
888

Hello Jakub,

Thank you for your inputs. It's really help me. I didn't find the button to accept as solution. 

0 Kudos
877

If my answer helped, just press the "thumb up" next to it 🙂

I'm happy I could help 🙂