Hi All
Great to be learning here with you all. I have a scenario I am trying to figure out. I have followed all of Shane Young and some of Darogael , all great content.
A Single Goal, will have multiple Strategies and a Strategy will have multiple Tactics. I would like to create progress updates for each Tactic in the records Table, with a timestamp so we can report on changes over a month, a quarter, a year, etc.
I have 3 main tables viz, Goals, Strategies, Tactics and then we have a Records Table.
Goals
Goal_Id (PrimaryKey)
Goal_Name
Goal_Description
Strategies
Strat_Id (PrimaryKey)
Strategy_Name
Strategy_Description
Goal_Id <--related to Goals.Goal_Id-->
Tactic_Id
Tactics
Tactic_Id
Tactic_Name
Tactic_Description
Workstream_Id (PrimaryKey)
Records
Record_Id (PrimaryKey)
Goal_ID
Strategy_ID <--related to Strategy.Strat_Id-->
Tactic_ID <--related to Tactics.Tactic_Id-->
WorkStream_ID
Comments
Strart_date
Update_date
Completed_date
Status_ID
I have 2 Comboboxes (and have tried with DropDownBoxes) named ComboBoxGoalFilter and ComboBoxStrategyFilter. ComboBoxGoalFilter Items is 'Goals' and ComboBoxStrategyFilter Items is Filter('Strategies', Goal_Id=ComboBoxGoalFilter.Selected.Goal_Id). The Strategies are filtered correctly according to the selected Goal_Id. so Cascading ComboBoxes are Working.
I then have a Gallery (GalleryTactics) that I would like to display the related Tactics to the Selected ComboBoxStrategyFilter (which is filtered by the related goals).
This works fine for the First Goal_Id, but as soon as I select the second Goal_Id, the results will appear for a second and then disappear.
The various code I have tried offers various results, but none are the desired result.
ShowColumns(Filter('[dbo].[Tactics]', Strategy_Id=ComboBoxStrategyFilter.Selected.Strategy_Id && Goal_Id=ComboBoxGoalFilter.Selected.Goal_Id), "Tactic_Name","Goal_Id","Strategy_Id", "Tactic_Id") - not Working - or
(Filter('[dbo].[Tactics]', Strategy_Id=ComboBoxStrategyFilter.Selected.Strategy_Id && Goal_Id=ComboBoxGoalFilter.Selected.Goal_Id) only works for Goal_Id=1 and Strat_Id=1-7. Goal_Id=2,3,4,5 does not work.
Please, can someone point me in the right direction?
Bonus Question - Do I use Patch Formulae or just a Form?
thanks
David