# \[SOLVED\] How to display result of date range on new page?

**URL:** <https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601>\
**Category:** Database\
**Created:** [February 8, 2022, 10:28am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601 "2022-02-08T10:28:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 10:28am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/1 "2022-02-08T10:28:44Z")

</div>

Hi Bubblers,

I have a page for users to search for paid invoices within a date range. This works and the text below returns the correct result.

 ![Screenshot 2022-02-08 101914](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6c165a60a5b2d58a18be78b760072188211639c9.png)

My goal is for the ‘Show’ button to open a new page with the same information displayed (Both pages have the same datatype) but I can’t figure out how to send the data to the new page?

When the text result information is on the same page as the date/time picker it is easy, I am searching for results` > DatePickerA and < DatePickerB` but when I send the info to the new page I am no longer able to search as there are no date pickers.

I don’t want to save the data to DB so how can I send the results to the new page?

Another thing is that the page datatype is ‘invoice’ but the Show button is in the group with data:Date which may be an issue?

---

<div class="post-metadata">

**Author:** ![juicebox](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@juicebox](https://forum.bubble.io/u/juicebox)\
**Post date:** [February 8, 2022, 10:37am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/2 "2022-02-08T10:37:54Z")

</div>

Just pass the date picker values as additional URL parameters when using the ‘Go to page’ action?

Then on the next page, you can use the ‘Get data from URL’ expression to extract them.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 10:46am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/3 "2022-02-08T10:46:21Z")

</div>

> [@juicebox](#):
>
> Just pass the date picker values as additional URL parameters when using the ‘Go to page’ action?
> 
> Then on the next page, you can use the ‘Get data from URL’ expression to extract them

Thanks, here’s what I see when I try and choose data to send. I can’t set the data because the button’s parent is type is Date but the page info is type Invoice? Also, how do I pass the date picker values as additional URL parameters because the issue here is;

t1. he original date pickers are on a single page app (so are in a group)  
2. I don’t want to show data pickers on page 2, only the info from page 1’s data pickers

 ![2](https://us1.discourse-cdn.com/bubble/original/3X/a/5/a59295a5221bd4c0334001803a930f497ef3b5aa.png)

---

<div class="post-metadata">

**Author:** ![juicebox](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@juicebox](https://forum.bubble.io/u/juicebox)\
**Post date:** [February 8, 2022, 10:49am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/4 "2022-02-08T10:49:35Z")

</div>

> [@darren.james7518](#):
>
> I can’t set the data because the button’s parent is type is Date but the page info is type Invoice?

Not entirely sure why you’re setting the next page as a type of invoice given that it could return a report with multiple invoices based on the date range?

> [@darren.james7518](#):
>
> Also, how do I pass the date picker values as additional URL parameters?

Look at the last checkbox, send more parameters.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 10:53am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/5 "2022-02-08T10:53:46Z")

</div>

> [@juicebox](#):
>
> Not entirely sure why you’re setting the next page as a type of invoice given that it could return a report with multiple invoices based on the date range?

I search for ‘invoice’s’ `created by Current User`

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 10:56am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/6 "2022-02-08T10:56:04Z")

</div>

> [@juicebox](#):
>
> Look at the last checkbox, send more parameters.

Thanks. I am not sure what a ‘key’ is. In fact, I can tell I am completely out of my depth here so I don’t want to waste your time. I will try and find some help files because I may end up asking you 100 questions otherwise!

![3](https://us1.discourse-cdn.com/bubble/original/3X/4/3/439283e037ebbb5b61d42b8a8d544281f762de3b.png)

---

<div class="post-metadata">

**Author:** ![juicebox](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@juicebox](https://forum.bubble.io/u/juicebox)\
**Post date:** [February 8, 2022, 10:59am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/7 "2022-02-08T10:59:21Z")

</div>

> [@darren.james7518](#):
>
> I search for ‘invoice’s’ `created by Current User`

Sure, but if you set a page’s data type, it’s expecting one, not multiple.

Doing a search for invoices created by the current user could easily return multiple, right?

I’m just not sure it entirely makes sense in this use case.

> [@darren.james7518](#):
>
> I am not sure what a ‘key’ is

You’ll need to create two. The first key is ‘from’, the second key is ‘to’. You’ll then select the values as Date Picker A’s value and Date Picker B’s value respectively.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 11:03am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/8 "2022-02-08T11:03:35Z")

</div>

> [@juicebox](#):
>
> Doing a search for invoices created by the current user could easily return multiple, right?

Yes it will do, but I :sum the total amount and simply display the total figure, ie: you have been paid a total of £100 within the dates chosen.

That said, something tells me I should be using ‘User’ as the data source, I’m not sure.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 11:04am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/9 "2022-02-08T11:04:01Z")

</div>

> [@juicebox](#):
>
> You’ll need to create two. The first key is ‘from’, the second key is ‘to’. You’ll then select the values as Date Picker A’s value and Date Picker B’s value respectively.

Ok thank you, I will give that a try 🙂

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 8, 2022, 11:13am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/10 "2022-02-08T11:13:58Z")

</div>

> [@darren.james7518](#):
>
> That said, something tells me I should be using ‘User’ as the data source, I’m not sure.

I can’t see any reason why you need a defined content type at all on your destination page for this, and certainly not User (unless you want Users to be able to share their own, or other Users invoice data with other people).

If you’re only showing the current user their own invoice data then just use ‘current user’ as the constraint on your invoice search on your page, and use the URL parameters for start and end date to show results from the required date range results.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 11:16am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/11 "2022-02-08T11:16:28Z")

</div>

> [@adamhholmes](#):
>
> I can’t see any reason why you need a defined content type at all on your destination page for this, and certainly not User (unless you want Users to be able to share their own, or other Users invoice data with other people).
> 
> If you’re only showing the current user their own invoice data then just use ‘current user’ as the constraint on your invoice search on your page, and use the URL parameters for start and end date to show results from the required date range results.

Ok thank you, that makes sense, I will do that. Try, I don’t need to define content type at all on the destination page.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 8, 2022, 11:22am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/12 "2022-02-08T11:22:26Z")

</div>

Something like this should be all you need:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/d/6d93672e340d92aeacdaa5a15b8933b0d13ab620.png)

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 11:30am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/13 "2022-02-08T11:30:41Z")

</div>

Thanks @adamhholmes that really helped, I was just wondering where to put the `Get from page URL` and your reply pinged up! I am making good progress, have to pop out but will nail this when back and update you!

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 8, 2022, 2:08pm UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/14 "2022-02-08T14:08:42Z")

</div>

The destination page is displaying no data, can you see what I am missing?

The ‘Show’ button:

 ![1](https://us1.discourse-cdn.com/bubble/original/3X/8/6/86d65f9d3df70c9422bf28ac0ae83d0590105f0d.png)

This is on the destination page:

 ![b](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a9f2b943ff98c7f7c3530d60a37f1b33c4488f6c.png)

And if you were to inspect `Search for Invoices` I am referring to each of the two parameters (just showing one here).

 ![cc](https://us1.discourse-cdn.com/bubble/original/3X/4/f/4f8a4919e2beb0b7440b399b613377ccc8894f9d.png)

---

<div class="post-metadata">

**Author:** ![juicebox](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@juicebox](https://forum.bubble.io/u/juicebox)\
**Post date:** [February 8, 2022, 11:36pm UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/15 "2022-02-08T23:36:29Z")

</div>

You’ve used ‘date\_from’ and ‘date\_to’ when setting the additional parameters but on the destination page you’re looking for ‘paid\_from’ and ‘paid\_to’. They need to be the same.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [February 9, 2022, 11:15am UTC](https://forum.bubble.io/t/solved-how-to-display-result-of-date-range-on-new-page/190601/16 "2022-02-09T11:15:03Z")

</div>

Thank you for pointing that out, that fixed it!!
