@Jivko_Ralchev
I am thinking that you will need to start by making a Collection. Put this code in the OnVisible property of your screen. Notice how we are adding a new column to track which rows should be changed in the datasource.
ClearCollect(
yourCollection;
AddColumns(
your_datasource_name;
"changeDate";
false
)
)
Then make the collection the source for the gallery by placing it in the Items property.
yourCollection
Insert your checkbox into the gallery and put this code in the OnCheck property
Patch(myCollection; ThisItem; {changeDate: true})
Similar code must go in the OnUncheck property
Patch(myCollection; ThisItem; {changeDate: false})
Now create a new label to hold the date and put this code in the onChange property. Make sure the column name Real_x0020_Date exists in your collection and change the name if needed.
Patch(myCollection; ThisItem; {Real_x0020_Date: NowLabel.Text})
At this point you will have a collection with all of the information needed to update the datasource. Put this code in the OnSelect property of your button.
ForAll(
Filter(myCollection, changeDate=true);
Patch(
MainVega;
ID=myCollection[@ID];
{Real_x0020_Date: myCollection[@Real_x0020_Date]}
)
)
Hopefully this idea will work!
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."