2024 Jun 11 2:10 PM
Hello,
To display today's date, I have used this formula:
The result will be: 11 Jun.
What formula should I use to display tomorrow's date (12 Jun) or yesterday's date (10 Jun)?
2024 Jun 20 10:45 AM
2024 Jun 21 5:01 PM
Hi Marihirvi,
Thanks, it worked perfectly.
I have two more questions please:
1. Now when I use formula in my Soft tabs to display (yesterday, today and tomorrow) dates, (20 Jun, 21 Jun and 22 Jun) is displayed.
What should I add to the formula NOW("D MMM") to display today's date with label: Today?
2. When I launch the app, I want the Today tab to appear in the middle of the screen by default. Right now I have to swipe left to see it.
Thanks in advance for your help
2024 Jun 24 7:04 AM
2024 Jun 24 7:35 PM
2024 Jun 25 7:24 AM
2024 Jun 24 7:10 AM
2024 Jun 24 7:47 PM - edited 2024 Jun 25 7:57 AM
Thanks for your reply
No, it's not about spacing!
Right now the first tab is visible on the left and after it comes the second tab and third and so on.
What I want is that "Today" should always be visible in the middle of the screen and when you want to see other days, then you can swipe to the right or to the left.
Like this:
2024 Jun 25 8:24 AM
Hmm, well you can put the softtabs in a scroll view and the user can then see all the tabs by scrolling, but I don't see a way of putting Today in the middle. You can use the Layout > Position property to reposition Today to the middle of the visible area, but then you'd have to create your own scrolling capability (not really scrolling more like moving).
You could simply start with yesterday, today and tomorrow and add a previous button and a later button to, for example, remove the last item and add a new item to the end of the list. This would be pretty easy to do.
As far as I know the position of the scrollview is not retrievable and there is no property to set the position of the scroolview.
2024 Jun 28 1:59 PM
Thanks Dan for your reply.
Ok, but what formula should I use on the left button and the right button?
2024 Jun 28 2:41 PM
I'm not clear what you would like to do or how you want the softtab to work or what to display. Perhaps it would be helpful to show a little more of what you want.
In the meantime here is one behavior you could create:
I created a page variable that initially has today's date and the soft tabs use formulas (as Mari showed above) to display yesterday, today and tomorrow. The previous button then simply updates the page variable to yesterday with a "set page variable" flow function and the following formula:
ADD_DURATION(pageVars.CenterDate, -1,"days")The next button is the same except it is +1.
We could play with the spacing so it does not resize with every new date, or we could show more dates, or we could keep the selected tab more logical, so if the today tab is selected and we click "Next" the first tab would now be selected. You could also have a date picker to move more than 1 day at a time.
I think you can get almost anything you want. Just let me know what precisely you want it to look like, and how the content of tabs should respond, and I'd be happy to help further.
😺
2024 Jun 28 8:17 PM
Thank you so much Dan for wanting to help me.
What I want to do is connect a Google sheet via rest API to Soft tabs. The connection with rest API works well, but want to connect it to a table and control it via Soft tabs
To give you more understanding about what I want to do, I can send you an example as a gpg-fill.
Where can I send it?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |