pfilter in Apps

Chris_Wolman
Chris_Wolman Contributor
edited August 9 in App Studio

Hello,

I am hoping to provide the ability to open another app from within in app and persist the filters from the first app. Does pfiltering work with apps? I have not been successful in my attempts. If it does not work, is there another way to provide this functionality?

Thank you,

Chris

** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓

    You probably need to search the internet for some examples of using pfilters.

    Here's an example of what I mean with a pfilter. In the redacted card below, I created a field with a clickable link, "Details".

    The link is built using a formula with CONCAT. And it looks really complex because its HTML encoded. I did not code it that way. I figured out the URL, and then put it through encoding to tell me what all the funny odd html encoded characters are. (I cheated to make a complex thing simple.)

    The formula builds the link to the appropriate page and dataset id, and also passes parameters. I've modified my actual link with something generic (below). Param one is passes the contents of our column office (note the back ticks). The second param is being passed a static value 'Submitted'.

    In this example, I'm linking to mydomain.com, and the page with dataset id "44444444444". I'm including two parameters in the URL.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • I don't think pfilters work across apps currently. As of now, pfiltering does not support passing filter values directly from one app to another. This means that filters applied in one app cannot automatically be carried over to another app. But that doesn't mean you can't work around it. You could try something like creating links that include URL parameters.

    https://yourdomo.app/another-app?filter=value

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • Chris_Wolman
    Chris_Wolman Contributor

    @ArborRose can you provide an example? I have not been able to make that work either. Example link:

    https://yourdomo.app/another-app?SeasonValid=2024-2025

    The page in the app loads but the filter is not applied?

    Chris

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**

  • ArborRose
    ArborRose Coach
    Answer ✓

    You probably need to search the internet for some examples of using pfilters.

    Here's an example of what I mean with a pfilter. In the redacted card below, I created a field with a clickable link, "Details".

    The link is built using a formula with CONCAT. And it looks really complex because its HTML encoded. I did not code it that way. I figured out the URL, and then put it through encoding to tell me what all the funny odd html encoded characters are. (I cheated to make a complex thing simple.)

    The formula builds the link to the appropriate page and dataset id, and also passes parameters. I've modified my actual link with something generic (below). Param one is passes the contents of our column office (note the back ticks). The second param is being passed a static value 'Submitted'.

    In this example, I'm linking to mydomain.com, and the page with dataset id "44444444444". I'm including two parameters in the URL.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • Chris_Wolman
    Chris_Wolman Contributor

    I see that example is using pfiltering which does not appear to work in apps. You agreed that it does not work and recommended that I pass URL parameters. I was hoping you could provide an example of using URL parameters without pfiltering.

    Chris

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**

  • Chris_Wolman
    Chris_Wolman Contributor

    @ArborRose this helped get me a little bit further. I am able to pfilter in an App as long as I include the datasetID in the URL. The new challenge it presents is that the persistent filter functionality between app pages does not function unless the filter cards are manually selected. Looks like this will need to be a feature request for Domo to provide this functionality.

    Chris

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**

  • @Chris_Wolman did you end up making this feature request? If so, can you link it here? I'd like to upvote it. We need the same functionality.

  • Chris_Wolman
    Chris_Wolman Contributor
    edited September 13

    Chris

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**