Select to view content in your preferred language

Consolidating Multiple Repeats into a Single Table Layer

347
5
Jump to solution
4 weeks ago
BelindaPurser
Emerging Contributor

I have an Inspection Form we are using in the Field that includes multiple Repeats when reporting issues and the actions taken to remedy them.

Is it possible to consolidate all the Repeats into one Table Layer instead of Individual Table Layers?

At the moment I have a total of 48 Repeats all within different Groups and Questions

The Layout is:

Group 1

Question 1, Repeat Action 1

Question 2, Repeat Action 2

Group 2 

Question 1, Repeat Action 1

Question 2, Repeat Action 2

etc.

 

 

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
MVP Regular Contributor

@BelindaPurser Attached is an idea for you.  You have a lot of redundancy in your groups, It appears you have the same amount of questions with just the slight wording differences and of course group name.  You could approach this as a nested repeat, with each group item being the parent repeat.   Using count-selected() and selected-at(), You could automatically set the number of parent repeats and set each of those items to each of your groups.   You could then make master lists for Issues, action_tkn, and actions and use a choice filter to filter them to the group selection.  Make at least one of the questions required in the parent repeat so users can't skip them.

Survey123 Tricks of the Trade: Choice Filters - Esri Community

 This would drop your backend down to 3 tables.

That said, user would have to get use to a "page" type format instead of a scroll.

View solution in original post

5 Replies
Neal_t_k
MVP Regular Contributor

Can you show an example of what you want the end data to look like?  For instance in your layout example is Question 1 from Group 1 the same question as Question1 from Group2 or is it just the first question from each group. Some clarification on what you are trying to achieve would help with some ideas for consolidation.

0 Kudos
ZenMasterZeke
Frequent Contributor

Could you try 1 repeat with multiple groups? I haven't really thought this through, so not sure how that would play out.

0 Kudos
BelindaPurser
Emerging Contributor
begin groupsafety<b><font color='blue'>SAFETY</b>
notehzrd_mgmt<b>HAZARD MANAGEMENT</b>
select_one list_yes_no_nahzrds_mngdAre Hazards Identified & Managed Adequately
select_multiple list_hzrds_issueshzrds_issuesWhat are the Hazard Issues? (Select all that apply)</b>
texthzrds_issues_otherOther
select_one list_yes_no_nahzrds_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_hzrds_action_tknhzrds_action_tknHazard Action Taken (Select all that apply)</b>
texthzrds_action_tkn_otherOther
texthzrds_uhfUHF Channel Changed to:
select_one list_yes_no_nahzrds_fup_reqdIs Hazard Follow-Up Action Required?
imagehzrds_photosHazard Photo/s (if required)
begin repeatrpt_hzrdsHazard Action Details
geopointhzrds_locationHazard Location
select_multiple list_hzrds_fup_actionshzrds_fup_actionsHazard Follow-Up Actions (Select all that apply)</b>
texthzrds_fup_actions_otherOther
datehzrds_fup_duedateHazard Action Due Date:
texthzrds_action_compHazard Action Completed By:
datehzrds_comp_dateHazard Completion Date:
texthzrds_doc_refHazard Document (CM) Reference:
end repeat  
notefirst_aid<b>FIRST AID</b>
select_one list_yes_no_nafirst_aid_adeqAre First Aid Personnel & Equipment Adequate
select_multiple list_first_aid_issuesfirst_aid_issuesWhat are the First Aid Issues? (Select all that apply)</b>
textfirst_aid_issues_otherOther
select_one list_yes_no_nafirst_aid_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_first_aid_action_tknfirst_aid_action_tknFirst Aid Action Taken (Select all that apply)</b>
textfirst_aid_action_tkn_otherOther
select_one list_yes_no_nafirst_aid_fup_reqdIs First Aid Follow-Up Action Required?
imagefirst_aid_photosFirst Aid Photo/s (if required)
begin repeatrpt_first_aidFirst Aid Action Details
geopointfirst_aid_locationFirst Aid Equipment Location
select_multiple list_first_aid_fup_actionsfirst_aid_fup_actionsFirst Aid Follow-Up Actions (Select all that apply)</b>
textfirst_aid_fup_actions_otherOther
datefirst_aid_fup_duedateFirst Aid Action Due Date:
textfirst_aid_action_compFirst Aid Action Completed By:
datefirst_aid_comp_dateFirst Aid Completion Date:
textfirst_aid_doc_refFirst Aid Document (CM) Reference:
end repeat  
notecomms<b>COMMUNICATIONS SYSTEMS & PROTOCOLS</b>
select_one list_yes_no_nacomms_adeqAre Effective Communication Systems & Protocols Being Utilised?
select_multiple list_comms_issuescomms_issuesWhat are the Communications Issues? (Select all that apply)</b>
textcomms_issues_otherOther
select_one list_yes_no_nacomms_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_comms_action_tkncomms_action_tknCommunications Action Taken (Select all that apply)</b>
textcomms_action_tkn_otherOther
select_one list_yes_no_nacomms_fup_reqdIs Communications Follow-Up Action Required?
imagecomms_photosCommunications Photo/s (if required)
begin repeatrpt_commsCommunications Action Details
geopointcomms_locationCommunications Location
select_multiple list_comms_fup_actionscomms_fup_actionsCommunications Follow-Up Actions (Select all that apply)</b>
textcomms_fup_actions_otherOther
datecomms_fup_duedateCommunications Action Due Date:
textcomms_action_compCommunications Action Completed By:
datecomms_comp_dateCommunications Completion Date:
textcomms_doc_refCommunications Document (CM) Reference:
end repeat  
noteppe<b>PERSONAL PROTECTIVE EQUIPMENT (PPE)</b>
select_one list_yes_no_nappe_adeqIs the Personal Protective Equipment (PPE) Adequate?
select_multiple list_ppe_issuesppe_issuesWhat are the PPE Issues? (Select all that apply)</b>
textppe_issues_otherOther
select_one list_yes_no_nappe_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_ppe_action_tknppe_action_tknPPE Action Taken (Select all that apply)</b>
textppe_action_tkn_otherOther
select_one list_yes_no_nappe_fup_reqdIs PPE Follow-Up Action Required?
imageppe_photosPPE Photo/s (if required)
begin repeatrpt_ppePPE Action Details
geopointppe_locationPPE Location
select_multiple list_ppe_fup_actionsppe_fup_actionsPPE Follow-Up Actions (Select all that apply)</b>
textppe_fup_actions_otherOther
dateppe_fup_duedatePPE Action Due Date:
textppe_action_compPPE Action Completed By:
dateppe_comp_datePPE Completion Date:
textppe_doc_refPPE Document (CM) Reference:
end repeat  
notefire_equip<b>FIRE EQUIPMENT</b>
select_one list_yes_no_nafire_equip_adeqIs the Fire Equipment On-Site & Operational with Adherence to FPC Fire Guidelines?
select_multiple list_fire_equip_issuesfire_equip_issuesWhat are the Fire Equipment Issues? (Select all that apply)</b>
textfire_equip_issues_otherOther
select_one list_yes_no_nafire_equip_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_fire_equip_action_tknfire_equip_action_tknFire Equipment Action Taken (Select all that apply)</b>
textfire_equip_action_tkn_otherOther
select_one list_yes_no_nafire_equip_fup_reqdIs Fire Equipment Follow-Up Action Required?
imagefire_equip_photosFire Equipment Photo/s (if required)
begin repeatrpt_fire_equipFire Equipment Action Details
geopointfire_equip_locationFire Equipment Location
select_multiple list_fire_equip_fup_actionsfire_equip_fup_actionsFire Equipment Follow-Up Actions (Select all that apply)</b>
textfire_equip_fup_actions_otherOther
datefire_equip_fup_duedateFire Equipment Action Due Date:
textfire_equip_action_compFire Equipment Action Completed By:
datefire_equip_comp_dateFire Equipment Completion Date:
textfire_equip_doc_refFire Equipment Document (CM) Reference:
end repeat  
notefire_regs<b>FIRE REGULATIONS & WARNINGS</b>
select_one list_yes_no_nafire_regs_adhdAre the Fire Regulations & Warnings Being Adhered to?
select_multiple list_fire_regs_issuesfire_regs_issuesWhat are the Fire Regulations Issues? (Select all that apply)</b>
textfire_regs_issues_otherOther
select_one list_yes_no_nafire_regs_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_fire_regs_action_tknfire_regs_action_tknFire Regulations Action Taken (Select all that apply)</b>
textfire_regs_action_tkn_otherOther
select_one list_yes_no_nafire_regs_fup_reqdIs Fire Regulations Follow-Up Action Required?
imagefire_regs_photosFire Regulations Photo/s (if required)
begin repeatrpt_fire_regsFire Regulations Action Details
geopointfire_regs_locationFire Regulations Location
select_multiple list_fire_regs_fup_actionsfire_regs_fup_actionsFire Regulations Follow-Up Actions (Select all that apply)</b>
textfire_regs_fup_actions_otherOther
datefire_regs_fup_duedateFire Regulations Action Due Date:
textfire_regs_action_compFire Regulations Action Completed By:
datefire_regs_comp_dateFire Regulations Completion Date:
textfire_regs_doc_refFire Regulations Document (CM) Reference:
end repeat  
notefbs<b>FIREBREAKS</b>
select_one list_yes_no_nafbs_clr_trfcblAre the Firebreaks Clear & Trafficable?
select_multiple list_fbs_issuesfbs_issuesWhat are the Firebreak Issues? (Select all that apply)</b>
textfbs_issues_otherOther
select_one list_yes_no_nafbs_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_fbs_action_tknfbs_action_tknFirebreak Action Taken (Select all that apply)</b>
textfbs_action_tkn_otherOther
select_one list_yes_no_nafbs_fup_reqdIs Firebreak Follow-Up Action Required?
imagefbs_photosFirebreak Photo/s (if required)
begin repeatrpt_fbsFirebreak Action Details
geoshapefbs_locationFirebreak Location
select_multiple list_fbs_fup_actionsfbs_fup_actionsFirebreak Follow-Up Actions (Select all that apply)</b>
textfbs_fup_actions_otherOther
datefbs_fup_duedateFirebreak Action Due Date:
textfbs_action_compFirebreak Action Completed By:
datefbs_comp_dateFirebreak Completion Date:
textfbs_doc_refFirebreak Document (CM) Reference:
end repeat  
noteequipment_machinery_clean<b>MACHINERY & EQUIPMENT CLEAN</b>
select_one list_yes_no_namchnry_equip_clnIs the Machinery & Equipment Suitably Clean & Maintained (Including Guards)?
select_multiple list_mchnry_equip_cln_issuesmchnry_equip_cln_issuesWhat are the Machinery & Equipment Cleanliness / Maintenance Issues? (Select all that apply)</b>
textmchnry_equip_cln_issues_otherOther
select_one list_yes_no_namchnry_equip_cln_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_mchnry_equip_cln_action_tknmchnry_equip_cln_action_tknMachinery & Equipment Cleanliness / Maintenance Action Taken (Select all that apply)</b>
textmchnry_equip_cln_action_tkn_otherOther
select_one list_yes_no_namchnry_equip_cln_fup_reqdIs Machinery & Equipment Cleanliness / Maintenance Follow-Up Action Required?
imagemchnry_equip_cln_photosMachinery & Equipment Cleanliness / Maintenance Photo/s (if required)
begin repeatrpt_mchnry_equip_clnMachinery & Equipment Cleanliness / Maintenance Action Details
geopointmchnry_equip_cln_locationMachinery & Equipment Cleanliness / Maintenance Location
select_multiple list_mchnry_equip_cln_fup_actionsmchnry_equip_cln_fup_actionsMachinery & Equipment Cleanliness / Maintenance Follow-Up Actions (Select all that apply)</b>
textmchnry_equip_cln_fup_actions_otherOther
datemchnry_equip_cln_fup_duedateMachinery & Equipment Cleanliness / Maintenance Action Due Date:
textmchnry_equip_cln_action_compMachinery & Equipment Cleanliness / Maintenance Action Completed By:
datemchnry_equip_cln_comp_dateMachinery & Equipment Cleanliness / Maintenance Completion Date:
textmchnry_equip_cln_doc_refMachinery & Equipment Cleanliness / Maintenance Document (CM) Reference:
end repeat  
notemachinery_fitness<b>MACHINERY FITNESS</b>
select_one list_yes_no_namchnry_fitOn Visual Inspection, is 'Machinery Fit for Work'? (e.g. Tyres, Hoses, Guards, Oil Leaks, Windscreen Damage etc.)
select_multiple list_mchnry_fit_issuesmchnry_fit_issuesWhat are the Machinery Fitness Issues? (Select all that apply)</b>
textmchnry_fit_issues_otherOther
select_one list_yes_no_namchnry_fit_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_mchnry_fit_action_tknmchnry_fit_action_tknMachinery Fitness Action Taken (Select all that apply)</b>
textmchnry_fit_action_tkn_otherOther
select_one list_yes_no_namchnry_fit_fup_reqdIs Machinery Fitness Follow-Up Action Required?
imagemchnry_fit_photosMachinery Fitness Photo/s (if required)
begin repeatrpt_mchnry_fitMachinery Fitness Action Details
geopointmchnry_fit_locationMachinery Fitness Location
select_multiple list_mchnry_fit_fup_actionsmchnry_fit_fup_actionsMachinery Fitness Follow-Up Actions (Select all that apply)</b>
textmchnry_fit_fup_actions_otherOther
datemchnry_fit_fup_duedateMachinery Fitness Action Due Date:
textmchnry_fit_action_compMachinery Fitness Action Completed By:
datemchnry_fit_comp_dateMachinery Fitness Completion Date:
textmchnry_fit_doc_refMachinery Fitness Document (CM) Reference:
end repeat  
noteequipment_fitness<b>EQUIPMENT FITNESS</b>
select_one list_yes_no_naequip_fitIs the Equipment Available 'Fit for Purpose'?
select_multiple list_equip_fit_issuesequip_fit_issuesWhat are the Equipment Fitness Issues? (Select all that apply)</b>
textequip_fit_issues_otherOther
select_one list_yes_no_naequip_fit_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_equip_fit_action_tknequip_fit_action_tknEquipment Fitness Action Taken (Select all that apply)</b>
textequip_fit_action_tkn_otherOther
select_one list_yes_no_naequip_fit_fup_reqdIs Equipment Fitness Follow-Up Action Required?
imageequip_fit_photosEquipment Fitness Photo/s (if required)
begin repeatrpt_equip_fitEquipment Fitness Action Details
geopointequip_fit_locationEquipment Fitness Location
select_multiple list_equip_fit_fup_actionsequip_fit_fup_actionsEquipment Fitness Follow-Up Actions (Select all that apply)</b>
textequip_fit_fup_actions_otherOther
dateequip_fit_fup_duedateEquipment Fitness Action Due Date:
textequip_fit_action_compEquipment Fitness Action Completed By:
dateequip_fit_comp_dateEquipment Fitness Completion Date:
textequip_fit_doc_refEquipment Fitness Document (CM) Reference:
end repeat  
noteaccess_roads<b>ACCESS</b>
select_one list_yes_no_naaccessAre Existing Access and Internal Roads / Tracks / Firebreaks, Clear & Trafficable at the End of the Day?
select_multiple list_access_issuesaccess_issuesWhat are the Access Issues? (Select all that apply)</b>
textaccess_issues_otherOther
select_one list_yes_no_naaccess_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_access_action_tknaccess_action_tknAccess Action Taken (Select all that apply)</b>
textaccess_action_tkn_otherOther
select_one list_yes_no_naaccess_fup_reqdIs Access Follow-Up Action Required?
imageaccess_photosAccess Photo/s (if required)
begin repeatrpt_accessAccess Action Details
geoshapeaccess_locationAccess Location
select_multiple list_access_fup_actionsaccess_fup_actionsAccess Follow-Up Actions (Select all that apply)</b>
textaccess_fup_actions_otherOther
dateaccess_fup_duedateAccess Action Due Date:
textaccess_action_compAccess Action Completed By:
dateaccess_comp_dateAccess Completion Date:
textaccess_doc_refAccess Document (CM) Reference:
end repeat  
notefences_structures<b>FENCES & STRUCTURES</b>
select_one list_yes_no_nafencesAre the Fences & Structures Protected Adequately?
select_multiple list_fences_issuesfences_issuesWhat are the Fences & Structures Issues? (Select all that apply)</b>
textfences_issues_otherOther
select_one list_yes_no_nafences_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_fences_action_tknfences_action_tknFences & Structures Action Taken (Select all that apply)</b>
textfences_action_tkn_otherOther
select_one list_yes_no_nafences_fup_reqdIs Fences & Structures Follow-Up Action Required?
imagefences_photosFences & Structures Photo/s (if required)
begin repeatrpt_fencesFences & Structures Action Details
geotracefences_locationFences & Structures Location
select_multiple list_fences_fup_actionsfences_fup_actionsFences & Structures Follow-Up Actions (Select all that apply)</b>
textfences_fup_actions_otherOther
datefences_fup_duedateFences & Structures Action Due Date:
textfences_action_compFences & Structures Action Completed By:
datefences_comp_dateFences & Structures Completion Date:
textfences_doc_refFences & Structures Document (CM) Reference:
end repeat  
notefelling_techniques<b>FELLING TECHNIQUES</b>
select_one list_yes_no_nafellingAre the Felling Techniques Adequate?
select_multiple list_felling_issuesfelling_issuesWhat are the Felling Techniques Issues? (Select all that apply)</b>
textfelling_issues_otherOther
select_one list_yes_no_nafelling_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_felling_action_tknfelling_action_tknFelling Techniques Action Taken (Select all that apply)</b>
textfelling_action_tkn_otherOther
select_one list_yes_no_nafelling_fup_reqdIs Felling Techniques Follow-Up Action Required?
imagefelling_photosFelling Techniques Photo/s (if required)
begin repeatrpt_fellingFelling Techniques Action Details
geoshapefelling_locationFelling Techniques Location
select_multiple list_felling_fup_actionsfelling_fup_actionsFelling Techniques Follow-Up Actions (Select all that apply)</b>
textfelling_fup_actions_otherOther
datefelling_fup_duedateFelling Techniques Action Due Date:
textfelling_action_compFelling Techniques Action Completed By:
datefelling_comp_dateFelling Techniques Completion Date:
textfelling_doc_refFelling Techniques Document (CM) Reference:
end repeat  
notelanding_management<b>LANDING MANAGEMENT</b>
select_one list_yes_no_nalanding_mgmtIs the Landing Management Adequate?
select_multiple list_landing_mgmt_issueslanding_mgmt_issuesWhat are the Landing Management Issues? (Select all that apply)</b>
textlanding_mgmt_issues_otherOther
select_one list_yes_no_nalanding_mgmt_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_landing_mgmt_action_tknlanding_mgmt_action_tknLanding Management Action Taken (Select all that apply)</b>
textlanding_mgmt_action_tkn_otherOther
select_one list_yes_no_nalanding_mgmt_fup_reqdIs Landing Management Follow-Up Action Required?
imagelanding_mgmt_photosLanding Management Photo/s (if required)
begin repeatrpt_landing_mgmtLanding Management Action Details
geoshapelanding_mgmt_locationLanding Management Location
select_multiple list_landing_mgmt_fup_actionslanding_mgmt_fup_actionsLanding Management Follow-Up Actions (Select all that apply)</b>
textlanding_mgmt_fup_actions_otherOther
datelanding_mgmt_fup_duedateLanding Management Action Due Date:
textlanding_mgmt_action_compLanding Management Action Completed By:
datelanding_mgmt_comp_dateLanding Management Completion Date:
textlanding_mgmt_doc_refLanding Management Document (CM) Reference:
end repeat  
noterd_warning_signs<b>ROAD WARNING SIGNS</b>
select_one list_yes_no_nard_signsAre the Road Warning Signs Adequate?
select_multiple list_rd_signs_issuesrd_signs_issuesWhat are the Road Warning Signs Issues? (Select all that apply)</b>
textrd_signs_issues_otherOther
select_one list_yes_no_nard_signs_complianceDoes this Matter Constitute a Non-Compliance?
select_multiple list_rd_signs_action_tknrd_signs_action_tknRoad Warning Signs Action Taken (Select all that apply)</b>
textrd_signs_action_tkn_otherOther
select_one list_yes_no_nard_signs_fup_reqdIs Road Warning Signs Follow-Up Action Required?
imagerd_signs_photosRoad Warning Signs Photo/s (if required)
begin repeatrpt_rd_signsRoad Warning Signs Action Details
geotracerd_signs_locationRoad Warning Signs Location
select_multiple list_rd_signs_fup_actionsrd_signs_fup_actionsRoad Warning Signs Follow-Up Actions (Select all that apply)</b>
textrd_signs_fup_actions_otherOther
daterd_signs_fup_duedateRoad Warning Signs Action Due Date:
textrd_signs_action_compRoad Warning Signs Action Completed By:
daterd_signs_comp_dateRoad Warning Signs Completion Date:
textrd_signs_doc_refRoad Warning Signs Document (CM) Reference:
end repeat  
0 Kudos
Neal_t_k
MVP Regular Contributor

@BelindaPurser Attached is an idea for you.  You have a lot of redundancy in your groups, It appears you have the same amount of questions with just the slight wording differences and of course group name.  You could approach this as a nested repeat, with each group item being the parent repeat.   Using count-selected() and selected-at(), You could automatically set the number of parent repeats and set each of those items to each of your groups.   You could then make master lists for Issues, action_tkn, and actions and use a choice filter to filter them to the group selection.  Make at least one of the questions required in the parent repeat so users can't skip them.

Survey123 Tricks of the Trade: Choice Filters - Esri Community

 This would drop your backend down to 3 tables.

That said, user would have to get use to a "page" type format instead of a scroll.

BelindaPurser
Emerging Contributor

Thank you, 

This looks like a much better solution. 👍

0 Kudos