cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Advocate V
Advocate V

ComboBox Lookup - Expected Table value.

Happy Wednesday! Eastern Standard Time. 😁

l' m getting the following message: [ Expected Table value. ] What l' m trying to accomplish, is when the users click on View it will show the default value either "true" or "false" and also set the combox to blank. If true or false haven't been selected.

 

Working a lot with SQL lately. 🙄

 

Items property 

["","Yes","No"]

DefaultSelectedItems property : 

If(LookUp('[dbo].[FluTrackerDetail]',ThisRecord.Id=Gallery1.Selected.EmployeeId,Accepted),"Yes","No")

 

Screenshot 2021-01-13 193153.png

 

Please let me know I explain myself clearly. Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @oappdev ,

I was tackling the wrong issue I think -try this

If(
   LookUp(
      '[dbo].[FluTrackerDetail]',
      Id=Gallery1.Selected.EmployeeId
   ).Accepted=1,
   {Value:"Yes"},
   {Value:"No"}
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

9 REPLIES 9
WarrenBelz
Super User III
Super User III

Hi @oappdev ,

Happy Thursday lunchtime in Oz !

Assuming Accepted is a Boolean field, are you trying to do this?

If(
   LookUp(
      '[dbo].[FluTrackerDetail]',
      Id=Gallery1.Selected.EmployeeId
   ).Accepted,
   "Yes",
   "No"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Strange. I'm still get the message - Except Table value.

Accepted column is bit column in SQL. Hope that helps.

HI @oappdev ,

I am not an SQL user, but will this work

If(
   LookUp(
      '[dbo].[FluTrackerDetail]',
      Id=Gallery1.Selected.EmployeeId
   ).Accepted=1,
   "Yes",
   "No"
)

I assume the Id is a simple numeric field.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @oappdev ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz , Thank you so much for checking in. My apologies for the delay. Long week, 🙄 still getting a warning message. Expected Table value. 

 

DefaultSelectedItems Property: 

If(
   LookUp(
      '[dbo].[FluTrackerDetail]',
      Id=Gallery1.Selected.EmployeeId
   ).Accepted=1,
   "Yes",
   "No"
)

 Items: ["","Yes","No"]

Is just strange why is defaulting to No instead of NULL. 

Hi @oappdev ,

I was tackling the wrong issue I think -try this

If(
   LookUp(
      '[dbo].[FluTrackerDetail]',
      Id=Gallery1.Selected.EmployeeId
   ).Accepted=1,
   {Value:"Yes"},
   {Value:"No"}
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi @oappdev ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you again for your help. @WarrenBelz 

Добрый день! Что такое accepted здесь? у меня аналогичная проблема

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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

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.

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