I have three data models, Partner, Client and SOW, where Client is a one-to-many relation to SOW, and Partner is a one-to-many relation to Client. I would like to include Partner Name as a column in a table displaying SOWs. Is there a way to do this with a datasource query script? Or a different approach altogether? I was able to add a label to the SOW table row that is data bound to the Partner name via relation, but I have yet to tackle sorting and filtering by Partner, and this method appears to fetch Partner real-time after the table loads. I am currently using Drive Tables as my datasource, but am open to switching to Cloud SQL.
标签:
google-app-maker
相关问题
- AppMaker: environment variables per deployment ? G
- Why does my deployment have no data but my preview
- Is it possible to add values to table widget progr
- Appmaker Input Form, change options based on earli
- App Maker Document approval template : Add Default
相关文章
- Google App Maker - Creating a contract. Methods to
- Google App Maker - Add a button for timestamp coll
- Correct Usage Of Groups For Permissions
- Exporting data to google sheet
- How to make friendly custom URL for deployed app
- Example or template on how to do file upload in Go
- Document Merge with Google App Maker
- Connection from App Maker to Cloud SQL is locked
You can manually add header and 'cell'(one more label in list row).
Binding for the label in the header:
@models.Partner.fields.Name.displayName
Binding for the label in the list row:
@datasource.item.Client.Partner.Name
And don't forget to add both
Client
andClient.Partner
relations to Prefetch, it should make your page load/render faster.Useful tip:
You can copy/paste existing table labels to duplicate all original margins/paddings/styles and make them look/behave in the same way as all other labels within the table. In this case you'll need just to adjust your bindings and maybe rename some things.
Note:
Most likely you'll not be able to sort your table by relation of relation, but feel free to try(checkout
onClick
event handlers of labels in the table header).