cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Listbox showing blank items

Hello All

 

Wonder if anyone is having this issue or can help me get over it...

 

I'm using a conditioned Listbox, which values are extracted from Sharepoint Lists, depending on other Listbox selection.

The thing is, that this dependant Listbox is showing just blank values, as seen in the attached picture (I've selected some just to show you guys they are there) and it is curious because when I change the selection on the other Listbox, the one that this one is dependant of, it seems to change accordingly, but values still show as blank.

 

I'm using nested IFs to tell the Listbox which Sharepoint List to get the values from, as following:

 

If(Left(ListBox5.SelectedText.Value,4)="Heli",Search(Sub_Sistemas_HC,ListBox5_1.SelectedText.Value,"Title"),If(Left(ListBox5.SelectedText.Value,4)="Drea",Search(Sub_Sistemas_DC26,ListBox5_1.SelectedText.Value,"Title"),If(Left(ListBox5.SelectedText.Value,4)="ReCa",Search(Sub_Sistemas_RC3,ListBox5_1.SelectedText.Value,"Title"))))

 

Thanks for your time in reading and hope you could help me get this figured out

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Listbox showing blank items

@Dahel 

The biggest issue I see there is that you are using different data sources for each of your If statement.  This is going to return records that are different types from each list...definitely going to confuse the ListBox.

Is there any particular commonality between the lists that you are trying to display?  I assume Title...If so then you can consider a formula such as this:

 

Switch(Left(ListBox5.SelectedText.Value,4), 

  "Heli", ShowColumns(Search(Sub_Sistemas_HC,ListBox5_1.SelectedText.Value,"Title"), "Title"),
  "Drea", ShowColumns(Search(Sub_Sistemas_DC26,ListBox5_1.SelectedText.Value,"Title"), "Title"),
  "ReCa", ShowColumns(Search(Sub_Sistemas_RC3,ListBox5_1.SelectedText.Value,"Title"), "Title")
  )

This will give your listbox a common set of table columns (in this case Title) to work with and should produce better results for you.

 

I hope this is helpful for you.

_____________________________________________________________________________________
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.

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Listbox showing blank items

@Dahel 

The biggest issue I see there is that you are using different data sources for each of your If statement.  This is going to return records that are different types from each list...definitely going to confuse the ListBox.

Is there any particular commonality between the lists that you are trying to display?  I assume Title...If so then you can consider a formula such as this:

 

Switch(Left(ListBox5.SelectedText.Value,4), 

  "Heli", ShowColumns(Search(Sub_Sistemas_HC,ListBox5_1.SelectedText.Value,"Title"), "Title"),
  "Drea", ShowColumns(Search(Sub_Sistemas_DC26,ListBox5_1.SelectedText.Value,"Title"), "Title"),
  "ReCa", ShowColumns(Search(Sub_Sistemas_RC3,ListBox5_1.SelectedText.Value,"Title"), "Title")
  )

This will give your listbox a common set of table columns (in this case Title) to work with and should produce better results for you.

 

I hope this is helpful for you.

_____________________________________________________________________________________
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.

View solution in original post

Highlighted
Community Support
Community Support

Re: Listbox showing blank items

Hi @Dahel 

 

Could you please test with @RandyHayes 's suggestion?

If it fix your issue, please accept it as solution.

 

Best Regards.

Yumia

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (8,402)