See attached. Wondering if itโs possible to pull multiple table data into a google doc template?
What I tried (in the attached) didnโt work. Workflow triggered but I didnโt get the data I wanted.
To give a little more info - when we prepare an Incident Action Plan there are 4 or 5 standard forms and all include some common fields: incident name, operational period, prepared by, etc. - that would all come from one table.
The example above ICS 203 - has that header info, but then the staffing portion would need to come from another table - which is a slice of who we currently have checked in.
Thanks
@tcanelli
Provided you have some common info between the tables, you can easily use an appropriate SELECT expression to fetch data from another table.
Do I need a ref between the tables? They really donโt have common info. one contains all the personnel and the other is incident related info.
@tcanelli
If you donโt require to filter that table, than you can select all data. You donโt specifically need a ref between these tables but it will help for sure.
ok last question for today - i donโt need to filter the incident info table, but for the personnel table do I need a filter if Iโm already using a slice that is filtered? for each position listed on the 203 form (first post above) I just want to show the name of who is filling that role. I donโt think I did it correctly above. I want to display the _ComputedName for the [Activation Position] that equals - whatever that field is on form.
@tcanelli
You can simply do that with a LOOKUP expression actually but you need to filter the table Iโm afraid
this?
<<LOOKUP(โIncident Managerโ, โMACC Display viewโ, โActivation Positionโ,
โ_ComputedNameโ)>>
I think Iโm closer - BUT now - when I filled out the form to trigger the workflow the pdf I received actually pulled every row from the sheet instead of just the current row. How do I fix this?
I also donโt really understand the start and end expressions in this particular workflow since Iโm using more than one table. sighโฆ
Can you first clarify whether this template is:
Knowing this is important because it determines the initial condition when the outermost <<Start>>
expression is evaluated.
In general, it is hard to display nested information from two or more records in a form as you appear to be attempting to do.
As it currently stands, your template is saying:
Repeat the row containing โIncident Nameโ and โOperational Periodโ once for every record returned by the Start expression <<Start: IAP test[AP Number]>>
. That is why your output repeats that row for each row returned by the <<Start>>
expression.
Display the row containing โIncident Command(s) and Command Staff:โ and โOperations Sectionโ exactly once.
Display the row starting with โIC/UCsโ exactly once. Within that single row, the <<Start: SELECT โฆ>> expression is saying to retrieve the set of records specified by the <<Start>>
expression and display values from each record. In the template in your screen shot, I do not see which fields, if any, you are displaying in the cell. I only see the <<Start>>
and <<End>>
within that cell. Maybe the entire contents of the cell are not shown in the screen shot.
Displaying each of the following rows exactly once.
When you are trying to display information from โnestedโ tables, it is a lot easier to display information from the โouter tableโ and โIntermediate tablesโ (if any) in list format. Then you can display the information from the โinner most tableโ in table format. For example, see topic โCustomer Template in Table Formatโ in this article https://help.appsheet.com/en/articles/2697047-sample-email-templates. In this example, we only use table format to display data from the inner most โOrder Detailsโ table.
User | Count |
---|---|
43 | |
26 | |
26 | |
16 | |
11 |