cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DawidK
Helper I
Helper I

IF and FOR ALL

Hello,

I have a combobox with DefaultSelectedItems :

If(
Service_Selected.Selected.Field1 <> "UNSUPPORTED_CALLS",
{Value:Service_Selected.Selected.Field1}, Defaults('Service List'.Field1)
)

i would like to incorporate that in my edit screen:

ForAll(SecondLineTracker_1,LookUp(SecondLineTracker_1, TicketNumber = Ticket_Number_1.Text,ServiceSelectedBy2ndLine))

 

I want to have the lookUp on the editscreen but if i must do a change  i want to make the DefaultSelected IF statement work. 

I see that ForAll is not a Selected.Field so that doesnt trigger the If statement.

 @RandyHayes u helped me today so i guess u can solve it also. I tried hard but sth is wrong.

1 REPLY 1
RandyHayes
Super User III
Super User III

@DawidK 

I'm not sure I am entirely following what you are trying to do.

Are you saying that you would like to have multiple items selected in your ComboBox based on the ForAll results?

 

First I'd say you need not use a ForAll for this, a simple Filter should do the trick.

    Filter(SecondLineTracker_1, TicketNumber = Ticket_Number_1.Text)

 

However, as I pointed out in the other thread - the Signature of the DefaultSelectedItems and the Items MUST match in order for selecting items to work properly.  So, your Items property for this ComboBox must be based on SecondLineTracker_1 in order to get it to select properly.

 

I hope that helps you out.

 

 

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (36,129)