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

Repeating Table and Dropdown

Hi All. I have seen a similar question here which has not been adequately answered. 

I have a repeating table in a gallery (using Shane Young's brilliant Youtube videos). In the row I have several fields; some text boxes and others drop downs. After filling the first row and creating the next row, I noticed that the selected drop down values go back to the first value of the Items. When looking at the collection the values are correct. Some users might think that their entry hasn't been saved. I have other repeating tables without drop downs and they work perfectly. Anybody have any suggestions?

First row entry.......

Capture1.PNG

Second Row entry.......

Capture2.PNG

 

46 REPLIES 46

Yes, the onsuccess of the Main form is where my ForAll statement is located.  The dropdowns no longer retain the data when I select the save icon (Patch) formula after each entry in the gallery.  

I think it may be in part to using the SelectedText.Value property vs the Selected.Value as I've not used the former before. I can get a closer look later today. 

IT'S WORKING!!!!! I exited out of PowerApps and back into the APP.  Thank you so much for your patience and assistance.  You are awesome and deserve top Kudos for your patience.

One glitch is the ID from the Form is not feeding to the secondary SP List.  My secondary list is ECPLID.  Which is correctly entered in my ForAll Statement.  ECPLID: ECPLDetailsForm.LastSubmit.ID

My sharepoint column for ECPLID is a number column.  Is it possible I need to change this column settings in my list for this to be updated?  My ID in the primary SP list is the system ID field in the "View".  That is working and creating and incrementing with entry.  

Your MasterID column in the secondary list should be a number column. Trying to piece everything together it appears you have everything correct. My only curiosity is in your SP list names as I have called my secondary list the "details" list from when I went through Shane's videos awhile back. While the naming doesn't matter it has caused me some confusion since your form to the primary SP list has "details" in the name. I'm not sure what to suggest outside of asking you to upload your exported app so I could import it and have a look or putting out plainly all the details (SharePoint list names and columns, form name, gallery with fields and collection with column names).

The ID Column in secondary list is a number.  So I don't understand why it is not creating the ID number from the ECPLDetailsForm.  I did simplify my naming convention.  ECPLDetails is the SharePoint list and ECPLDetailsForm is the Form in PowerApps. I am attaching an exported copy of the APP, but I cannot attach the Plan data or employee data.  I am also attaching a copy of my SharePoint blank lists in a workbook so you can see column names.  The ECPLDetails form (ECPLDetails - SP List) and GalleryCodeRight (CodeRightCollection - SP List) will collect the data exported.  I deleted all data collected during my testing.  Greatly appreciate the assistance.  Can I remove these attachments when problem is resolved?

@Kat27 - Found a few things and have attached the updated app that works. I created some temporary SP lists for it but kept with the same naming you had outside of some Excel lookups I think you had via OneDrive (according to the broken data connections). I'll send you a PM with more info but here are a few bullet points that may help others that come across this thread:

 

  • When you are using hard-coded drop-down choices that are to be treated as numbers, don't use quotes as that sets your formatting to text not number. IE - [0.25,0.50,.075,1.00] 
  • Getting the ID of the last submitted form item needs to be done before resetting your form otherwise there's no ID stored - it's been reset. If you really want to reset it before ending up at another screen, add it to the OnSucess of the form after you first patch the value of that ID to the secondary list.
  • Getting a sum of a column for all items in your collection only needs info related to the collection not the gallery. IE - Sum(CollectionName, CollectionColumnName). In your specific case: Sum(ECPLCollection, Hours) 
  • Defaults for drop-down controls in a gallery aren't any different than text box controls. All you need is the collection column set. IE - Your two gallery drop-down default values only need to be PlanName and Hours respectively
  • When patching to a collection or SharePoint list or other data-source the statement inside the squiggly brackets is where you're saying "for the destination column x, write this value" in the format of {ProjectName: PlanName, ProjectHours: Hours}. ProjectHours is the destination SharePoint column name and Hours is the source column name with the value you want to write to the SharePoint column.
  • When working with different formats (text, numbers, tables) be sure to be aware that formulas related to each need to be consistent with the format. This was what I explained last fall with specifics in page 1 of this thread😀

I apologize for the delayed response. I was finally able to upload the revised app and the ID is now appearing on both SP Lists!  I failed to let you know I previously converted the Excel worksheets to SP Lists, for the employee names and the hours vs. manually entering.  But thanks for the heads up on the "" marks!  The data is now flowing correctly to both lists!  Thank you again for your assistance.  Can you remove the attachment you sent me from your posting.  I would prefer not to include.  

Apparently there's a limit on private messages as I got this error when trying to send one to you, @Kat27 :

2020-07-14_10h44_30.png

Who knows how long "for now" is. Here's my most recent response that's still relevant to this discussion thread:

 

I'm understanding that you want a date field for each line item (of the repeating table collection) just like the main (ECPLDetailsForm) form's ECPLDate field. If so, you'll need to make a small number of additions so that your collection has the column when created initially, your gallery has a mapped date picker to that column, your save button for the collection includes the date in that date picker and your main form OnSuccess includes the date when writing to the child SharePoint list. The more you work with this stuff and get a better grasp of the data sources and virtual tables (collections in Power Apps) the easier it gets to figure things out in the future. 

 

Additions to formulas are in red:

1. Add it to the formula that first creates the collection.

- ClearCollect(ECPLCollection,{PlanName: "", Hours:0.00, ECPLDate: Today()})

 

2. Add your Date label and Date Picker control (from input menu) to the gallery for this collection column - set the DefaultDate property of the Date Picker to ThisItem.ECPLDate

2020-07-14_10h19_50.png

 

 

 

 

 

 

 

3. Update your statement for save button patch and collect to include the date from the date picker:

Patch(ECPLCollection, ThisItem, {PlanName: ddPlanName.Selected.PlanName, Hours: Value(ddHours.Selected.Value), ECPLDate: Value(dpECPLDate.SelectedDate)}); Collect(ECPLCollection, {PlanName: "", Hours: 0.00, ECPLDate: Today()})

 

4. Add the ECPLDate column as a Date Column type to your line items SharePoint list (CodeRightCollection) if it's not there already. In my test site it is there from what you had sent me awhile ago:

2020-07-14_10h29_34.png

 

5. Add the ECPLDate to your OnSuccess formula where you're patching the line items to the CodeRightCollection SharePoint list:
ForAll(ECPLCollection,If(!IsBlank(PlanName),Patch(CodeRightCollection,Defaults(CodeRightCollection),{ECPLID:ECPLDetailsForm.LastSubmit.ID,EmployeeName:PlanName,ProjectName:PlanName,ProjectHours:Hours, ECPLDate: ECPLDate})))

 

All is well after saving from Power Apps:

2020-07-14_10h37_19.png

Is there any way to get the date in the gallery (collection) to read the date in the Form?  Same as with EmpID?  Because it is not uncommon for a user to forget their entry today and create their entry the next day.  So Today() would not work as it would date stamp current date.  But they should be selecting the correct date on the form when selecting their name to complete the form.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,615)