B4J Question Using FileChooser in B4XPage (But Not MainPage)


Active Member
Licensed User
I can't find an example of how to use FileChooser from within a B4XPages module.

In particular, I don't know how to get the Form "Owner" for this:

Dim result as String = fc.ShowOpen(???)
What I've done, that seems to be working, is made MainForm in the Main module public. Then I do this:

Dim result as String = fc.ShowOpen(Main.MainForm)
However, that doesn't feel right.

What's the non-smelly way to do this? :D