I have custom page I open from the subgrid view in model driven app. Upon opening the custom page the parameter is passed correctly which i verified via labels. There are three combo boxes where the default selected items have code to match the parameter. Based on those combo box selections a gallery displays information. The issue is two of the records from the subgrid open correctly. The remaining four open with the combo box populated correctly and the gallery loads the correct information it flickers then disappears. I've checked the visibility on the gallery and even just made it true for testing purposes, the data still flickers and disappears but it is there. I have no clue why it works for two records and none of the others.
Param("recordId") which is tied to this variable VarRecordTeamID
Javascript entity is Progress
Three Combo boxes use the following:
Combo1 Items: Choices('Goal Plans'.Year)
Default Selected Items:
If(!IsBlank(Param("recordId")),LookUp(Choices('Goal Plans'.Year),Value = varRecordTeamID.'Original Goal Plan'.Year),CurrentYear)
Combo 2 Items:Filter ( SortByColumns('Goal Plans',"cli_name"), Year = cmbYear.Selected.Value)
Default Selected Items:
If(!IsBlank(Param("recordId")),LookUp('Goal Plans',Name = varRecordTeamID.'Original Goal Plan'.Name),LookUp(
'Goal Plans',
Year = CurrentYear.Value && Employee = ThisUser))
Combo 3 Items:
SortByColumns(AddColumns(
Filter(
Progress,
'Original Goal Plan'.Goal = cmbGoalPlans.Selected.Goal && 'Original Goal Plan'.Year = cmbYear.Selected.Value && Status = 'Status (Progress)'.Active),
"StartDate", Cycle.Start, "CycleName", Cycle.Name
), "StartDate")
Default selected items:
If(!IsBlank(Param("recordId")),LookUp(Progress,Cycle.Cycle = varRecordTeamID.Cycle.Cycle),
LookUp(SortByColumns(AddColumns(
Filter(
Progress,
'Original Goal Plan'.Goal = cmbGoalPlans.Selected.Goal && 'Original Goal Plan'.Year = cmbYear.Selected.Value && Status = 'Status (Progress)'.Active),
"StartDate", Cycle.Start, "CycleName", Cycle.Name
), "StartDate"),StartDate <= Now() && Cycle.End >= Now()))
Gallery Items:
Filter(
SortByColumns(
ProgressToCompetencies,
"cli_progresstocompetencynr"
),
PTCPRogressLookup.ProgressToGoal = cmbProgressToGoals.Selected.ProgressToGoal && OriginalGoalPlanID.Goal = cmbGoalPlans.Selected.Goal)
Visibile =If(IsBlank(Combox3.Selected), false, true)