cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kevin_KIrby
Regular Visitor

Get data from selected row

Hi,

 

I have a gallery, based on a Sharepoint list, where I want the user to select a single row, in order to do different calculations. It is basically a calculator I am creating.

 

I need to get specific data from different columns within the selected row, in order to do my calculations. 

 

I have created an example below;

 

PiecesPrice
Here the user should be able to enter no. of piecesHere it should calculate the price

 

ProductPrice per pieceValid fromValid toSelect
Bananas101-01-202131-01-2021I have a button here for selecting the row
Apples0,501-01-202131-01-2021I have a button here for selecting the row
Bananas1,2501-02-202128-02-2021I have a button here for selecting the row

 

(I then have different text inputs to narrow down the table, as I have hundreds of different options, but ultimately the user has to select a row in order for it to work)

 

So if the user selects any given row, by using the "Select" button, it should be able to get the "Price per piece" column and then multiply it by the Number of pieces the user has inserted.

 

So my question is, how do I get a specific column, based on a selected row, so that I can use it to calculate the price. 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

If the button executes select(Parent) then the value of Galleryname.Selected will be the row that was selected.  Each field in the row can then be retireved using Galleryname.Selected.columnname.  For example, the product would be Galleryname.selected.Product.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

If the button executes select(Parent) then the value of Galleryname.Selected will be the row that was selected.  Each field in the row can then be retireved using Galleryname.Selected.columnname.  For example, the product would be Galleryname.selected.Product.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

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 (1,954)