cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JayashreeKrish
Resolver II
Resolver II

Add multiple values for multiple date in Canvas App

I have a canvas app

For a date (Say 24 September) I should be able to enter values in General and Report Writing Field

For another date (say 18 July) I should be able to enter values in some fields

JayashreeKrish_0-1632495366826.png

 

And when I click on 24 September the entered values should populate

Similarly when I click on  18 June , the netered value should populate,

 

Please let me know how to achieve the same

i tried using Patch function but I was not able to populate values

 

1 ACCEPTED SOLUTION

Accepted Solutions
JayashreeKrish
Resolver II
Resolver II

Save function:

Patch(
TimeEntryCases,
Defaults(TimeEntryCases),
{
//ddi_date: DatePicker1.SelectedDate,
ddi_caseidentification: [@ModelDrivenFormIntegration].Item.CaseID,
ddi_date: datevalue.Text,
ddi_administrative: Value(A1.Text),
ddi_general : Value(A2.Text),
ddi_reportreview: Value(A3.Text),
ddi_reportwriting: Value(A4.Text),
ddi_databasesearches: Value(A5.Text)
}
);
Notify("Time Entry added successfully");
Reset(datevalue);
Reset(A1);
Reset(A2);
Reset(A3);
Reset(A4);
Reset(A5);

 

Lookup function in each field :

LookUp(TimeEntryCases, ddi_caseidentification = [@ModelDrivenFormIntegration].Item.CaseID && Date = datevalue.Text, ddi_administrative)

 

 

This solved my issue

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @JayashreeKrish ,

You need to Patch conditionally - only enter the details if they are not Blank.

 

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.

JayashreeKrish
Resolver II
Resolver II

Save function:

Patch(
TimeEntryCases,
Defaults(TimeEntryCases),
{
//ddi_date: DatePicker1.SelectedDate,
ddi_caseidentification: [@ModelDrivenFormIntegration].Item.CaseID,
ddi_date: datevalue.Text,
ddi_administrative: Value(A1.Text),
ddi_general : Value(A2.Text),
ddi_reportreview: Value(A3.Text),
ddi_reportwriting: Value(A4.Text),
ddi_databasesearches: Value(A5.Text)
}
);
Notify("Time Entry added successfully");
Reset(datevalue);
Reset(A1);
Reset(A2);
Reset(A3);
Reset(A4);
Reset(A5);

 

Lookup function in each field :

LookUp(TimeEntryCases, ddi_caseidentification = [@ModelDrivenFormIntegration].Item.CaseID && Date = datevalue.Text, ddi_administrative)

 

 

This solved my issue

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,466)