I'm trying to download a retool mobile screen as a PDF and see there is a util to do that, but when I run it nothing happens. I then tried the serializePage function to see if that would return the rendered pdf data but when I run it I get nothing returned in results and if I log to console I get {}.
I created a simple test page to make sure it wasn't to do with the components in the page I was trying to download, this test page only has a text field and a button which triggers running the JS.
I've read the docs and the forum and can't find any reason this returns nothing. Anyone any ideas?
Hey @ccaskey, I checked internally and this is not a bug. We currently don't support serializePage on Mobile. I noticed this is not clear in our documentation so I made an internal feature request to include this specification. Similarly, I created a feature request to support this functions on Mobile.
I'll update you here with any news on this feature.
It is March 2025 and I am also running into this same issue. Does anyone know if there is any update on this or is there some fix? I notice that some people have been able to get it to work but most have not. If anyone has gotten it to work what was your solution?
I just tested serializePage on my end and it seems to be working, but there could very well be some confounding variables. It might be helpful to get an export of your app that includes hard-coded query results.
Super strange. Is this happening on every app or just one in particular? If you haven't already, I'd recommend creating a brand new app and running the same query just to answer this question.
My current hunch is that serializePage might be broken in certain early versions of multipage apps - or maybe those that were converted from single page apps. If it works as expected in a brand new app, then you should be able to export re-import your app JSON.