cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AVTS
Post Partisan
Post Partisan

Canvas App -Search

I am having inventory scanning application with barcode option .

 

My table follows

AVTS_0-1620330582571.png

 

I am having

Barcode scanner  (Counter 1)

Input Text (Counter2)

DropDown(Counter3)

 

AVTS_1-1620330635837.png

Exisiting Setup,

Input Text (Counter2) and DropDown(Counter3) Changes automatically based on the Barcode Scanning.

 

Example :  Input Text (Counter2) is 5449000066947 is then dropdown change to 10121900.

Requirement :

 

I need to activitied the search in the Input Text (Counter2).

 

Example : If i enter 250 ml then dropdown box should display follows

10153701

10121900

 

Exisiting formulas.

 

Barcode scanner  (Counter 1)

Onscan: Collect(MaterialMasters,{TextInput4:BarcodeScanner1.Value,Dropdown1:BarcodeScanner1.Value})

-------------------------------

Input Text (Counter2)

Default :BarcodeScanner1.Value

------------------------------------

DropDown(Counter3)

Items: If(IsBlank(TextInput4.Text),MaterialMasters,Filter(MaterialMasters,'full cases'=(TextInput4.Text)||'single cases'=(TextInput4.Text) || mm=(TextInput4.Text) || Materialdesc=(TextInput4.Text)))

-------------------------------------------------

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @AVTS :

Please try this formula:

If(
    IsBlank(TextInput4.Text),
    MaterialMasters,
    Search(
        MaterialMasters,
        TextInput4.Text,
        "full cases",
        "single cases",
        "mm",
        "Materialdesc"
    )
)

2.PNG

1.PNG

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @AVTS :

Please try this formula:

If(
    IsBlank(TextInput4.Text),
    MaterialMasters,
    Search(
        MaterialMasters,
        TextInput4.Text,
        "full cases",
        "single cases",
        "mm",
        "Materialdesc"
    )
)

2.PNG

1.PNG

Best Regards,

Bof

AVTS
Post Partisan
Post Partisan

Many Thanks Its worked

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,082)