Apply HTML table to detail view

Hi all.

I have used Appsheet for 8 months. I see AppSheet has only a few styles to show the content in view detail so I use the feather Longtext in Appsheet to change the view in view detail. Because my data have a lot of information related to each other, if the user sees it from row to row is easy to make confused if you have 120 columns in a database like me. So this is the way I do it.

-First, I create a new column on google Sheets, the header is any name you want, for me, I use “Thong tin chung” for the name of this column and then I use Arrayfomular to concatenate all the columns by format table in HTML

JOHNN_1-1649218628794.gif

-Second,I go to Appsheet and config the type of the column is LongText with format HTML.

JOHNN_2-1649218933986.gif

-Then in view detail, I use Column order and show only the “Thong tin chung” column.

JOHNN_0-1649220242984.gif

And now we have the result.

JOHNN_4-1649219328127.gif

Attention:

- Beacause we use the Spreadsheet formula so when we edit the app must 5-10 seconds to sync and appear table to the app. The reason why I don’t use the App formula is that AppSheet didn’t support the long formula, in this case, the formula contains 5000 characters.

  • It works for the view detail, but no way to change the view of the form view by HTML format, and it can’t be used Enable QuickEdit (beta) or Quick edit columns.

I hope it’s useful for someone who needs a new way to show many columns in the detail view.

9 Likes

This is the Arrayfomular on google sheet for someone who needs them.

=ARRAYFORMULA(IF(ROW(B1:B)=1;“Thông tin chung”;IF(B1:B=“”;“”; “
Thông tin kích thước

Dài Tấm (mm) Rộng Tấm (mm) Dài (mm) Rộng (mm) Cao (mm)
”&P1:P&“ ”&Q1:Q&“ ”&R1:R&“ ”&S1:S&“ ”&T1:T&“
” & "
Thông tin kích thước chi tiết
Nắp 1 Nắp 2 Quy Cách Lằn Đặc Biệt Trọng lượng (g/dm2) Cắt Khe (mm) Lưỡi Gà (mm) In Tề (mm)
“&V1:V&” “&W1:W&” “&X1:X&” “&Y1:Y&” “&Z1:Z&” “&AA1:AA&” “&AB1:AB&”
" & “
Thông tin giấy tấm
- Top Liner ĐL Medium 1 ĐL Midle Liner ĐL Medium 2 ĐL Bottom Liner ĐL
Max ”&AD1:AD&“ ”&AF1:AF&“ ”&AG1:AG&“ ”&AI1:AI&“ ”&AJ1:AJ&“ ”&AL1:AL&“ ”&AM1:AM&“ ”&AO1:AO&“ ”&AP1:AP&“ ”&AR1:AR&“
Min ”&AE1:AE&“ ”&AF1:AF&“ ”&AH1:AH&“ ”&AI1:AI&“ ”&AK1:AK&“ ”&AL1:AL&“ ”&AN1:AN&“ ”&AO1:AO&“ ”&AQ1:AQ&“ ”&AR1:AR&“
” & "
Thông tin tiêu chuẩn
Độ Nén Cạnh LT Độ Nén Phẳng LT Độ Nén Thùng LT (Kgf)
"&AW1:AW& " "&AX1:AX& " "&AY1:AY& "

Độ Bục TCKH (Kgf/Cm2) Độ Nén Thùng TCKH (Kgf) Độ Bục LT (Kgf/Cm2)
"&AT1:AT& " "&AU1:AU& " "&AV1:AV& "

CT Mặt (giây) Loại CT Mặt Công thức CT Mặt CT Đáy (giây) Loại CT Đáy Công thức CT Đáy
"&AZ1:AZ& " "&BA1:BA& " "&BB1:BB& " "&BC1:BC& " "&BD1:BD& " "&BE1:BE& "
" & "
Thông tin tạo tấm
Tề Biên (mm) Khổ Cuộn ĐM Quality Code Kết Cấu Giấy Sóng Loại Lằn Xẻ
"&BG1:BG& " "&BH1:BH& " "&BI1:BI& " "&BJ1:BJ& " "&BK1:BK& " "&BL1:BL& " "&BM1:BM& "
" & "
Thông tin in ấn
Thiết Kế Theo Kiểu in Số Màu In Theo Máy in Mã bản in Tốc độ máy in
"&H1:H& " "&I1:I& " "&J1:J& " "&K1:K& " "&L1:L& " "&M1:M& " "&N1:N& "
" & "
Thông tin bế
Kiểu Bế Tốc độ máy bế phẳng Mã Khuôn Bế Loại Dao Cắt (mm) Loại Dao Cấn (mm)
"&BQ1:BQ& " "&BR1:BR& " "&BS1:BS& " "&BT1:BT& " "&BU1:BU& "

Loại Dao Răng Cưa (mm) Cán Bẹp Vị Trí Dán - Ghim
"&BV1:BV& " "&BW1:BW& “
” & "
Thông tin dán
Loại Keo Tốc độ dán Loại Máy Dán
"&BY1:BY& " "&BZ1:BZ& " "&CA1:CA& "
" & "
Thông tin ghim
Kiểu Ghim Số Ghim Tốc Độ Ghim Loại Máy Ghim
"&CC1:CC& " "&CD1:CD& " "&CE1:CE& " "&CF1:CF& "
" & "
Thông tin cột
Kiểu Cột Màu Dây Số Lượng/ Bó Tốc độ Máy Cột Loại Máy Cột
"&CH1:CH& " "&CI1:CI& " "&CJ1:CJ& " "&CK1:CK& " "&CL1:CL& "
" & "
Thông tin giao hàng
Quấn Màng PE Cột Đai Pallet Yêu Cầu Mẫu Ngày Giao Mẫu Số Lượng Mẫu
"&CQ1:CQ& " "&CR1:CR& " "&CS1:CS& " "&text(CT1:CT;“dd/mm/yyyy”)& " "&CU1:CU& "
" )))

4 Likes

Thank you @JOHNN for sharing another nice tip of showing multiple columns in detail view in table format etc. so that the user does not have to scroll down a lot.

I think your idea is similar to the below tip shared by @GreenFlux but solution is different. You are using HTML in a long text column.

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Detail-Views-Space-Saving-Trick-to-Display-Columns-Horizontally/td-p/322357

4 Likes

Hello, thanks for your recommendations. I just don’t understand how to make the long text column. have the option to give it html format. it doesn’t work out for me

1 Like

yeah I wonder if it something specific because it is referencing a google sheet that has a spreadsheet formula? It doesn’t appear for me either.