cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Details screen showing wrong list

In my app there is a browsescreen with data and when you hit an item it will take you into the details. I have an identical version of this with a different data source on the other side. The data soources are CCB and CPQ. The problem is when you click on an item for the other side(CPQ) it still shows the details for the CCB data. The data source says CPQ but it is still showing CCB details how can I fix this? Capture.PNGIf I were to click into this it would show details for the other list even though the data source says otherwise.

8 REPLIES 8
leyburn19
Memorable Member
Memorable Member

What are the items properties for both lists?

 

How is teh second list filtered based on the first list?

If(Toggle2.Value,
Sort(
Filter(
collCCBMasterData,
If(
IsBlank(ComboBox1.Selected.Result) || ComboBox1.Selected.Result = "All",
true,
'Functional Area' in ComboBox1.SelectedItems
) && If(
IsBlank(ComboBox1_1.Selected.Result) || ComboBox1_1.Selected.Result = "All",
true,
'Backlog Status' in ComboBox1_1.SelectedItems
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in 'Requirement Source'
) && If(
IsBlank(Search_.Text),
true,
Search_.Text in Name
)
)
,CheckBoxColumn,Descending),
Filter(
collCCBMasterData,
If(
IsBlank(ComboBox1.Selected.Result) || ComboBox1.Selected.Result = "All",
true,
'Functional Area' in ComboBox1.SelectedItems
) && If(
IsBlank(ComboBox1_1.Selected.Result) || ComboBox1_1.Selected.Result = "All",
true,
'Backlog Status' in ComboBox1_1.SelectedItems
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in 'Requirement Source'
) && If(
IsBlank(Search_.Text),
true,
Search_.Text in Name
)
)) - This is the CCB Items

 

If(Toggle2.Value,
Sort(
Filter(
collCPQMasterData,
If(
IsBlank(ComboBox1.Selected.Result) || ComboBox1.Selected.Result = "All",
true,
'Functional Area' in ComboBox1.SelectedItems
) && If(
IsBlank(ComboBox1_1.Selected.Result) || ComboBox1_1.Selected.Result = "All",
true,
'Backlog Status' in ComboBox1_1.SelectedItems
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in 'Requirement Source'
) && If(
IsBlank(Search_.Text),
true,
Search_.Text in Name
)
)
,CheckBoxColumn,Descending),
Filter(
collCPQMasterData,
If(
IsBlank(ComboBox1.Selected.Result) || ComboBox1.Selected.Result = "All",
true,
'Functional Area' in ComboBox1.SelectedItems
) && If(
IsBlank(ComboBox1_1.Selected.Result) || ComboBox1_1.Selected.Result = "All",
true,
'Backlog Status' in ComboBox1_1.SelectedItems
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in 'Requirement Source'
) && If(
IsBlank(Search_.Text),
true,
Search_.Text in Name
)
)) - This is the CPQ items

 

The lists are not related to each other there is a button to get into each of their browsescreens, the data should be completely separate, but the layout and code is identical @leyburn19 

Are these Collections or directly based on the source?

directly based on source i use a collection for the items, but the details screen just uses the direct source @leyburn19 

Not sure I understand that.  You are filtering based on the source but teh items ae based on a collection?

No, i am filtering based on the collection, I create a collection for each. The details screen is based on a source @leyburn19 

I am a bit confused,  sorry.  When you say details,  is this the items in the  Gallery/Table using the source and the filter is using a a Collection based on the sources?

When you click on an item in the gallery, it takes you to a details screen. The details screen is a form that takes a data source CCB/CPQ the form automatically gives the names of the columns in the data sources and changes the value based on which item you select. Capture.PNG@leyburn19 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (2,529)