cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kenny_i
Frequent Visitor

How to select value from 1000 rows in Azure SQL?

1) I have 1000 rows in project table in Azure SQL. It contains project names and status.

2) I would like to create feature in PowerApps where end-user can input project name like "Toyota project" and PowerApps list project name from Azure SQL matching criteria.

3) I would like to then select the project and "Activate" the project, which update SQL table status value. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Community Champion
Community Champion


@kenny_i wrote:

What components are needed?

 

Text input named "TextInputProjectSearch"?

YES, anywhere in the screen

 

Gallery vertical?

YES, blank vertical gallery

 

It should have item value "Search([PoaFormProjectAccess], TextInputProjectSearch.Text, ProjectId)"?

NO, it should have Items (with an s) property with value something like:

Search(Azure table name, TextInputProjectSearch.Text, ProjectId)

If ProjectId is a text field that contains the project name

 

Where to insert IconActivate.OnSelect = Patch([dbo.MyProjects], {ProjectId: ThisItem.ProjectId}, {ProjectStatus: "Active"}) ?

In the template of the gallery

 

Again, just call as it may be quicker/easier


 

View solution in original post

4 REPLIES 4
Meneghino
Community Champion
Community Champion

2) GalleryProjects.Items = Search([dbo.MyProjects], TextInputProjectSearch.Text, ProjectName)

3) IconActivate.OnSelect = Patch([dbo.MyProjects], {ProjectId: ThisItem.ProjectId}, {ProjectStatus: "Active"})

 

if the above is not clear, please give me a Skype call on giacomo@baizini.com

What components are needed?

Text input named "TextInputProjectSearch"?

Gallery vertical? It should have item value "Search([PoaFormProjectAccess], TextInputProjectSearch.Text, ProjectId)"?

 

Where to insert IconActivate.OnSelect = Patch([dbo.MyProjects], {ProjectId: ThisItem.ProjectId}, {ProjectStatus: "Active"}) ?

Meneghino
Community Champion
Community Champion


@kenny_i wrote:

What components are needed?

 

Text input named "TextInputProjectSearch"?

YES, anywhere in the screen

 

Gallery vertical?

YES, blank vertical gallery

 

It should have item value "Search([PoaFormProjectAccess], TextInputProjectSearch.Text, ProjectId)"?

NO, it should have Items (with an s) property with value something like:

Search(Azure table name, TextInputProjectSearch.Text, ProjectId)

If ProjectId is a text field that contains the project name

 

Where to insert IconActivate.OnSelect = Patch([dbo.MyProjects], {ProjectId: ThisItem.ProjectId}, {ProjectStatus: "Active"}) ?

In the template of the gallery

 

Again, just call as it may be quicker/easier


 

View solution in original post

 

Thanks! it works 

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

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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (65,640)