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

On load of screen populate the texbox value in the gallery.

Hi All, I have a situation where on click of button i have created a record in CDS, so far fine.

 

Again when i Log in to the app i would want to populate the created record values back in the screen textbox which is in the gallery. I am not sure how to loop through and populate the values in the textbox accordingly. Any help is much appreciated. Please find the screenshot.

 

Timesheet.png

 

Thanks,

Bala

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: On load of screen populate the texbox value in the gallery.

1.Create another Gallery2
2. Set the items property to the name of the Cds entity where the records were saved to.
3. You can then filter Gallery2 for current week
4. If the reason for bringing back is just to view record, the this would be ok.
5.If the purpose is to edit, then you will have to connect Gallery2 to the the gallery you have already

Let's see if this can help

View solution in original post

7 REPLIES 7
Highlighted
Super User III
Super User III

Re: On load of screen populate the texbox value in the gallery.

Please be a little more clearer. Do you want to populate what is in the textbox into the gallery or the gallery into the textbox?
Highlighted
Super User III
Super User III

Re: On load of screen populate the texbox value in the gallery.

Please be a little more clearer. Do you want to populate what is in the textbox into the gallery or the gallery into the textbox?
If you want to send what is in the gallery into the textbox,
1.Select one of the textbox1 in the gallery
2. On the Text property of textbox1 put this formula textbox2.text
3. This means textbox2 is on the screen outside the gallery
Highlighted
Frequent Visitor

Re: On load of screen populate the texbox value in the gallery.

@eka24Thanks for the reply. Actually all the textboxes are inside the gallery. I have collections(Screenshot#1 below)

Step1: I am loading the collection in the Items property of the gallery.

Step2: Filling time for each project and click on submit button --> gets saved in CDS entity.

Step3: Here comes the prob, when I am log in back again to the screen. I would want to populate the records(Screenshot#2) back again for the current week.

 

Please let me know if any thing needed?


Screenshot#!Screenshot#!Screenshot#2Screenshot#2

Thanks,

Bala

 

Highlighted
Super User III
Super User III

Re: On load of screen populate the texbox value in the gallery.

1.Create another Gallery2
2. Set the items property to the name of the Cds entity where the records were saved to.
3. You can then filter Gallery2 for current week
4. If the reason for bringing back is just to view record, the this would be ok.
5.If the purpose is to edit, then you will have to connect Gallery2 to the the gallery you have already

Let's see if this can help

View solution in original post

Highlighted
Frequent Visitor

Re: On load of screen populate the texbox value in the gallery.

Thanks,@eka24. for your suggestion. let me try and come back on this.

 

Thanks,

Bala

Highlighted
Frequent Visitor

Re: On load of screen populate the texbox value in the gallery.

@eka24is there a possibility to show the current week record in the same gallery. Just wanted to know. Thanks in advance

 

 

Thanks,

Bala

Highlighted
Super User III
Super User III

Re: On load of screen populate the texbox value in the gallery.

Try This:

Filter(YourTable, YourDateField>=DateAdd(Today(),8,Days))

 

let me know if it worked.

 

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,639)