Media urls not working in Servoy SVYJFXWebview module .

Hi All ,

I am using the SVYJFXWebview module . I am using Servoy 7.4 and java 71 . SVYJFXWebview is correctly loading the websites . When I am trying to load media objects it is not working . I have also enabled the Java FX in the admin page. Why it is not working . Please find the attached code :

var webPanel = new scopes.svyJFXWebView.WebViewPanel(elements.tab_javafx);
// load custom HTML5 into the WebView
webPanel.loadContent("media:///Internet_lan_settings.png");

Does SVYJFXWebview operates with a different thread as that of the normal Servoy logic ?

Hi All ,

Sorry I could able to do that inside the image tag . But is SVYJFXWebview operates with a different thread as that of the normal Servoy logic ?

Hi All ,

I would like to explain more my exact scenario . I am generating a jasper report . Before generating the report I am showing a GIF animation using SVYJFXWebview panel . But when the report starts running , the GIF animation is not running . As I am running the GIF animation in the SVYJFXWebview panel , can I make it to run in a different thread ?. Please provide your suggestion on this .

Everything in the UI of the Smart Client always works in the same thread, so what you’re trying to do is not possible.

Only option would be to offload the report generation to a headless client

Paul

Hi Paul,

Thanks for your reply . Now I am using a headless client . I am passing all the parameters required for a report generation from the main solution to the headless client solution . Normal functionality is working fine in the headless client . but I cannot run a jasper report in the headless client . I cannot see anything in the jasper viewer ? .
Why ? . Please provide some suggestion for this .

you can not use the viewer in a headless client.
The only thing you can do is, let the headless client return the pdf.
and open the pdf in your main-client again.