L Lildinti Member Licensed User Longtime User May 19, 2023 #1 Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) Cheers, Lildinti
Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) Cheers, Lildinti
Solution DarkoT May 19, 2023 Lildinti said: Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) View attachment 142130 Cheers, Lildinti Click to expand... I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false... Link with video:
Lildinti said: Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) View attachment 142130 Cheers, Lildinti Click to expand... I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false... Link with video:
DarkoT Active Member Licensed User Longtime User May 19, 2023 #2 Lildinti said: Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) View attachment 142130 Cheers, Lildinti Click to expand... I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false... Link with video: Upvote 0 Solution
Lildinti said: Hi all, Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas? Code: Dim f As FileChooser f.Initialize f.Title="Save File" f.InitialDirectory= File.DirApp f.InitialFileName="test.jpg" f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png")) f.ShowSave(B4XPages.GetNativeParent(Me)) View attachment 142130 Cheers, Lildinti Click to expand... I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false... Link with video:
L Lildinti Member Licensed User Longtime User May 19, 2023 #3 Thanks DarkoT. That did the trick Thanks all for the quick reply! Lildinti Upvote 0