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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,270)