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

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

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

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

@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

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

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

 

Thanks,

Bala

Highlighted

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

 

 

Thanks,

Bala

Try This:

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

 

let me know if it worked.

 

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,549)