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.

12 4 2,943
4 REPLIES 4

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="";""; "<br> <sup> Thรดng tin kรญch thฦฐแป›c</sup> <table> <tr> <th><b>Dร i Tแบฅm (mm)</b></th> <th><b>Rแป™ng Tแบฅm (mm)</b></th> <th><b>Dร i (mm)</b></th> <th><b>Rแป™ng (mm)</b></th> <th><b>Cao (mm)</b></th> <tr> <td>"&P1:P&"</td> <td>"&Q1:Q&"</td> <td>"&R1:R&"</td> <td>"&S1:S&"</td> <td>"&T1:T&"</td> </tr></table>" & " <br> <sup>Thรดng tin kรญch thฦฐแป›c chi tiแบฟt</sup> <table> <tr> <th><b>Nแบฏp 1</b></th> <th><b>Nแบฏp 2</b></th> <th><b>Quy Cรกch Lแบฑn ฤแบทc Biแป‡t</b></th> <th><b>Trแปng lฦฐแปฃng (g/dm2)</b></th> <th><b>Cแบฏt Khe (mm)</b></th> <th><b>Lฦฐแปกi Gร  (mm)</b></th> <th><b>In Tแป (mm)</b></th> </tr> <tr> <td>"&V1:V&"</td> <td>"&W1:W&"</td> <td>"&X1:X&"</td> <td>"&Y1:Y&"</td> <td>"&Z1:Z&"</td> <td>"&AA1:AA&"</td> <td>"&AB1:AB&"</td> </tr> </table>" & "<br> <sup> Thรดng tin giแบฅy tแบฅm</sup> <table> <tr> <th><b>-</b></th> <th><b>Top Liner</b></th> <th><b>ฤL</b></th> <th><b>Medium 1</b></th> <th><b>ฤL</b></th> <th><b>Midle Liner</b></th> <th><b>ฤL</b></th> <th><b>Medium 2</b></th> <th><b>ฤL</b></th> <th><b>Bottom Liner</b></th> <th><b>ฤL</b></th> </tr> <tr> <td><b>Max</b></td> <td>"&AD1:AD&"</td> <td>"&AF1:AF&"</td> <td>"&AG1:AG&"</td> <td>"&AI1:AI&"</td> <td>"&AJ1:AJ&"</td> <td>"&AL1:AL&"</td> <td>"&AM1:AM&"</td> <td>"&AO1:AO&"</td> <td>"&AP1:AP&"</td> <td>"&AR1:AR&"</td> </tr> <tr> <td><b>Min</b></td> <td>"&AE1:AE&"</td> <td>"&AF1:AF&"</td> <td>"&AH1:AH&"</td> <td>"&AI1:AI&"</td> <td>"&AK1:AK&"</td> <td>"&AL1:AL&"</td> <td>"&AN1:AN&"</td> <td>"&AO1:AO&"</td> <td>"&AQ1:AQ&"</td> <td>"&AR1:AR&"</td> </tr> </table>" & "<br> <sup> Thรดng tin tiรชu chuแบฉn</sup> <table> <tr> <th><b>ฤแป™ Nรฉn Cแบกnh LT</b></th> <th><b>ฤแป™ Nรฉn Phแบณng LT </b></th> <th><b>ฤแป™ Nรฉn Thรนng LT (Kgf)</b></th> </tr> <tr> <td> "&AW1:AW& "</td> <td> "&AX1:AX& "</td> <td> "&AY1:AY& "</td> </tr> </table> <br> <table> <tr> <th><b>ฤแป™ Bแปฅc TCKH (Kgf/Cm2) </b></th> <th><b>ฤแป™ Nรฉn Thรนng TCKH (Kgf)</b></th> <th><b>ฤแป™ Bแปฅc LT (Kgf/Cm2)</b></th> </tr> <tr> <td> "&AT1:AT& "</td> <td> "&AU1:AU& "</td> <td> "&AV1:AV& "</td> </tr> </table> <br> <table> <tr> <th><b>CT Mแบทt (giรขy)</b></th> <th><b>Loแบกi CT Mแบทt</b></th> <th><b>Cรดng thแปฉc CT Mแบทt</b></th> <th><b>CT ฤรกy (giรขy)</b></th> <th><b>Loแบกi CT ฤรกy</b></th> <th><b>Cรดng thแปฉc CT ฤรกy</b></th> </tr> <tr> <td> "&AZ1:AZ& "</td> <td> "&BA1:BA& "</td> <td> "&BB1:BB& "</td> <td> "&BC1:BC& "</td> <td> "&BD1:BD& "</td> <td> "&BE1:BE& "</td> </tr> </table> " & "<br> <sup> Thรดng tin tแบกo tแบฅm</sup> <table> <tr> <th><b>Tแป Biรชn (mm)</b></th> <th><b>Khแป• Cuแป™n ฤM</b></th> <th><b>Quality Code</b></th> <th><b>Kแบฟt Cแบฅu Giแบฅy</b></th> <th><b>Sรณng</b></th> <th><b>Loแบกi Lแบฑn</b></th> <th><b>Xแบป </b></th> </tr> <tr> <td> "&BG1:BG& "</td> <td> "&BH1:BH& "</td> <td> "&BI1:BI& "</td> <td> "&BJ1:BJ& "</td> <td> "&BK1:BK& "</td> <td> "&BL1:BL& "</td> <td> "&BM1:BM& "</td> </tr> </table> " & "<br> <sup>Thรดng tin in แบฅn</sup> <table> <tr> <th><b>Thiแบฟt Kแบฟ Theo</b></th> <th><b>Kiแปƒu in</b></th> <th><b>Sแป‘ Mร u</b></th> <th><b>In Theo</b></th> <th><b>Mรกy in</b></th> <th><b>Mรฃ bแบฃn in</b></th> <th><b>Tแป‘c ฤ‘แป™ mรกy in</b></th> </tr> <tr> <td> "&H1:H& "</td> <td> "&I1:I& "</td> <td> "&J1:J& "</td> <td> "&K1:K& "</td> <td> "&L1:L& "</td> <td> "&M1:M& "</td> <td> "&N1:N& "</td> </tr> </table> " & " <br> <sup>Thรดng tin bแบฟ</sup> <table> <tr> <th><b>Kiแปƒu Bแบฟ</b></th> <th><b>Tแป‘c ฤ‘แป™ mรกy bแบฟ phแบณng</b></th> <th><b>Mรฃ Khuรดn Bแบฟ</b></th> <th><b>Loแบกi Dao Cแบฏt (mm)</b></th> <th><b>Loแบกi Dao Cแบฅn (mm)</b></th> </tr> <tr> <td> "&BQ1:BQ& "</td> <td> "&BR1:BR& "</td> <td> "&BS1:BS& "</td> <td> "&BT1:BT& "</td> <td> "&BU1:BU& "</td> </tr> </table> <br> <table> <tr> <th><b>Loแบกi Dao Rฤƒng Cฦฐa (mm)</b></th> <th><b>Cรกn Bแบนp Vแป‹ Trรญ Dรกn - Ghim</b></th> </tr> <tr> <td> "&BV1:BV& "</td> <td> "&BW1:BW& "</td> </tr> </table>" & "<br> <sup>Thรดng tin dรกn</sup> <table> <tr> <th><b>Loแบกi Keo</b></th> <th><b>Tแป‘c ฤ‘แป™ dรกn</b></th> <th><b>Loแบกi Mรกy Dรกn</b></th> </tr> <tr> <td> "&BY1:BY& "</td> <td> "&BZ1:BZ& "</td> <td> "&CA1:CA& "</td> </tr> </table> " & " <br> <sup>Thรดng tin ghim</sup> <table> <tr> <th><b>Kiแปƒu Ghim </b></th> <th><b>Sแป‘ Ghim</b></th> <th><b>Tแป‘c ฤแป™ Ghim</b></th> <th><b>Loแบกi Mรกy Ghim</b></th> </tr> <tr> <td> "&CC1:CC& "</td> <td> "&CD1:CD& "</td> <td> "&CE1:CE& "</td> <td> "&CF1:CF& "</td> </tr> </table> " & "<br> <sup>Thรดng tin cแป™t</sup> <table> <tr> <th><b>Kiแปƒu Cแป™t</b></th> <th><b>Mร u Dรขy</b></th> <th><b>Sแป‘ Lฦฐแปฃng/ Bรณ</b></th> <th><b>Tแป‘c ฤ‘แป™ Mรกy Cแป™t</b></th> <th><b>Loแบกi Mรกy Cแป™t</b></th> </tr> <tr> <td> "&CH1:CH& "</td> <td> "&CI1:CI& "</td> <td> "&CJ1:CJ& "</td> <td> "&CK1:CK& "</td> <td> "&CL1:CL& "</td> </tr> </table> " & "<br> <sup>Thรดng tin giao hร ng</sup> <table> <tr> <th><b>Quแบฅn Mร ng PE</b></th> <th><b>Cแป™t ฤai Pallet</b></th> <th><b>Yรชu Cแบงu Mแบซu</b></th> <th><b>Ngร y Giao Mแบซu</b></th> <th><b>Sแป‘ Lฦฐแปฃng Mแบซu</b></th> </tr> <tr> <td> "&CQ1:CQ& "</td> <td> "&CR1:CR& "</td> <td> "&CS1:CS& "</td> <td> "&text(CT1:CT;"dd/mm/yyyy")& "</td> <td> "&CU1:CU& "</td> </tr> </table> " )))

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-Colum...

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

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.

Top Labels in this Space