Note that there are some explanatory texts on larger screens.

plurals
  1. POChanging Fusion Table Card Layouts Programmatically
    primarykey
    data
    text
    <p>While creating a staff database using Fusion Tables and Google Apps Script, I am trying to leverage the existing Fusion Tables UI as much as possible. Cards have been very useful but I am looking for a way that I can programmatically change their layout.</p> <p>For each entry in the database, a user can upload relevant documents and attach them to an entry. The files are stored in google drive and a link to that document is stored (as an html string) in one of the database fields. Here is a <a href="https://www.diigo.com/item/image/3toye/g87b?size=o" rel="nofollow">simple image</a> of what that may look like and the <a href="https://www.diigo.com/item/image/3toye/dtok?size=o" rel="nofollow">layout code</a> to make it.</p> <p>The problem is that the uploadable files (and fields) are dynamic. The user can add or redefine those fields through my ui and I need the full list of available files on each card to adapt accordingly so I don't have to manually configure the layout each time. How can I create a list of links on the card?</p> <p>Other background info:</p> <ul> <li>The fusion table will be view only. I haven't figured out a way to validate data entry in the fusion table ui so data entry will be done programmatically and in a custom ui.</li> <li>I understand that my current method is not very robust and I am very open to other ways of providing access to these files through the card. I've even toyed with the idea of having a general html field for each entry which is programmatically created to display what I want. I'm just hoping there's a better way.</li> </ul> <p>P.S. I've been struggling with reputation limitations for posting links and images. If you think I'm reputable, please help me out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload