Hi,
I have a gallery where the user currently is inserting new rows, where project comes automatically and then the user will have to fill out value and period (date format as a datepicker input).
I would like this datepicker to be automatically filled out with the first in the next month after the previous max row date.
Any suggestions in how to solve this? I have tried with dateAdd and similiar things but can't seem to get it to work.
The button I have for new row has the following code:
Patch(
'[dbo].[Table]',
Defaults('[dbo].[Table]'),
{
Project: SelProj,
Client: Gallery_overview.Selected.dropclient.Selected.client,
}
)
Example of a row looks like this:
| Project | Value | Date |
| 9999 | 342 | 8/1/2021 |
Then I would like the next row to become like this after hitting the "add new row" button:
| Project | Value | Date |
| 9999 | null | 9/1/2021 |
Any help solving this would be really appreciated!
Thanks!