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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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

Community Champion
Community Champion

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,496)