IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

FlowParser: Allow referencing extra data sheets for template instantiation #56

Closed geoo89 closed 1 year ago

geoo89 commented 1 year ago

Allows passing entire sheets as additional data to template instances. The list of sheets should go in the column extra_data_sheets. The content of the sheet sheet_name can then be accessed within templates via _data.sheet_name. A row of the sheet sheet_name with id "my_row" can then be accessed via _data.sheet_name["my_row"], and the fields of the row can be accessed as usual.

Use cases:

geoo89 commented 1 year ago

Merging, but functionality might still change a bit.