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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Thank you in Advance!!!
Power Apps
Unanswered

Thank you in Advance!!!

(0) ShareShare
ReportReport
Posted on by

Here are my issues and if anyone could help, I would greatly appreciate it.

1st Issue: From my Archive Screen, I have submitted records in a gallery that will display the information when selected. When I go to Edit that record, everything defaults to empty. When I want to edit the submitted information.Blank Submitted RecordBlank Submitted RecordArchive Screen (View Mode)Archive Screen (View Mode)

2nd Issue: When I create an entirely new record, it will override an already submitted record. When I want it to create a new row with the new information in my Sharepoint List.

 

Here is the code:

 

IfError(
Patch(
'GSE Tier 2 Sharepoint List',
If(
IsBlank(varGList),
Defaults('GSE Tier 2 Sharepoint List'),
varGList
),
{
ProductionModel: Production_Model.Selected.Value,
Owner: OwnerTxt_1.Text,
CreationDate: DateValue(CreateDatetxt_1.Text),
Title: TitleTxt_1.Text,
Location: Locationtxt_1.Text,
Department: Depttxt_1.Text,
'TotalDowntime(Minutes)': Value(TDownTime.Text),
'TotalAvailableMan-Hours': Value('Man-Hours'.Text),
CostReason: CostReason.Selected.Value,
'Plan(Cost)': CostPlantxt.Text,
'Do(Cost)': CostDotxt.Text,
'Check(Cost)': CostChecktxt.Text,
Event: {Value: CostEvent.Selected.Value},
'Act(Cost)': CostActtxt.Selected.Value,
Building: {Value: BldgChoice.Selected.Value},
DueDate: DueDatetxt.Text,
'CompletionDate(Cost)': DateValue(CostCompDate.Text),
ProductionLine: ProdLinetxt2.Text,
'Downtime%': Value(DTPercent.Text)//Number Column in the Sharepoint List
}
),
Notify(
FirstError.Message,
NotificationType.Error,
2000
)
);
UpdateContext({addNewInputText:""});
Reset(Production_Model);
Reset(OwnerTxt_1);
Reset(CreateDatetxt_1);
Reset(TitleTxt_1);
Reset(Locationtxt_1);
Reset(Depttxt_1);
Reset(TDownTime);
Reset('Man-Hours');
Reset(CostReason);
Reset(CostPlantxt);
Reset(CostDotxt);
Reset(CostChecktxt);
Reset(CostEvent);
Reset(CostActtxt);
Reset(BldgChoice);
Reset(DueDatetxt);
Reset(CostCompDate);
Reset(ProdLinetxt2);
Reset(DTPercent);
Navigate(
SucessSubmittal,
ScreenTransition.Fade
);

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,500 Most Valuable Professional on at

    Hi @dmanigo88 ,

    First item - how and when do you set varGList ? If it is not cleared, it will always update the record specified in it.

    Second - what is the Item of your Form ?

  • DM-14081418-0 Profile Picture
    on at

    Hello,

     

    Thank you for your assistance. Please see the attached images. You are probably on to something about the varGList. My current powerapp doesn't use any form(s), if that's what you mean. Its just a whole lot of text inputs and dropdowns patched to a sharepoint list. varGList I.pngvarGList II.png

  • WarrenBelz Profile Picture
    154,500 Most Valuable Professional on at

    Hi @dmanigo88 ,

    You could set the record to Blank() when a new record is required, but probably the easiest way would be be to set a Mode for New or Edit

    Set(
     varMode,
     "Edit"
    )

    or New if a new record is required, then

    If(
     varMode = "New",
     Defaults('GSE Tier 2 Sharepoint List'),
     varGList
    ),

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard