web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / It is possible to show...
Power Apps
Unanswered

It is possible to show items in a combo box based on a datacard value?

(0) ShareShare
ReportReport
Posted on by 118

Hello All,

 

I have a combo box that pulls in items from a SQL table which includes a lot number and an mo number column.

An MO number could have multiple lot numbers. The combo box only needs to show the lot Numbers which I have been able to achieve using ShowColumns.

 

Is it possible to have the combo box show the list of lot numbers based on an MO number that will be autofilled into a datacardvalue?

 

ex: show column (lotnumbr) when datacardvalue 1 = monumbr

Categories:
I have the same question (0)
  • Moreshwar Profile Picture
    135 on at

    You can set Items property of combo box using Filter function. Filter(SQLTABLE, monumber = DataCardValue.Text, lotnumber). This will fetch all rows from your table which have monumber = DataCardValue and bind it to Combo Box.

  • ebraga Profile Picture
    118 on at

    Thanks Ill try this!

  • ebraga Profile Picture
    118 on at

    it's working but its throwing an error 

    ebraga_0-1624366673001.png

    how can I get around this or change the data type?

  • Dipak_Shaw Profile Picture
    108 on at

    @ebraga The above text contains non integer letters eg. 'SA'.

    That is why it is throwing error. Try only numerical value.

  • ebraga Profile Picture
    118 on at

    Do you mean I should omit the first two letters in the table so I'm only bringing in a numerical value? Filter(SQLTABLE, monumber = DataCardValue.Text, lotnumber) doesnt work if I change .Text to .Value 

  • Dipak_Shaw Profile Picture
    108 on at

    What is the datatype of monumnber Column in SQL table??

  • ebraga Profile Picture
    118 on at

    char.. sorry I don't know much about SQL my DBA builds the tables/views for me

  • Moreshwar Profile Picture
    135 on at

    Can you share screenshot of your SQL table & MONumber that you are passing for filtering the data?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 774 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 335 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 248

Last 30 days Overall leaderboard