B4J Question [B4XPages] - Using FileChooser


Licensed User
Longtime User
Hi to all

Which is the correct way to use FileChooser with B4Xpages?

I made a small app with B4J that has only one page (B4XMainPage). When showing FileChooser, you need to pass the 'owner as Form' parameter, but i did not find a way to pass this parameter,
I get an error whatever I indicate as owner.
As workaround, i created a sub that open the filechooser in the Main Module, and called it from B4xMainPage when needed (In the main module is possible to pass MainForm as owner form without any problem).
It works, but i don't know if this is the correct way to use filechooser. Consider that my app have only one page, so in this case this solution is simple to use, but if an app include multiple b4xpages, this solution may become harder to mantain.
Is there a way to use filechooser in the b4xpage code module?


Licensed User
Longtime User
B4XPages.GetNativeParent(Me) will get the form for the current page.
Upvote 0