Media urls not working in Servoy SVYJFXWebview module .

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Media urls not working in Servoy SVYJFXWebview module .

Postby ashutoslenka426 » Thu Jun 16, 2016 11:05 am

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 :
Code: Select all
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 ?
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Media urls not working in Servoy SVYJFXWebview module .

Postby ashutoslenka426 » Thu Jun 16, 2016 11:36 am

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 ?
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Media urls not working in Servoy SVYJFXWebview module .

Postby ashutoslenka426 » Thu Jun 16, 2016 2:20 pm

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 .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Media urls not working in Servoy SVYJFXWebview module .

Postby pbakker » Thu Jun 16, 2016 5:04 pm

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Media urls not working in Servoy SVYJFXWebview module .

Postby ashutoslenka426 » Fri Jun 17, 2016 2:28 pm

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 .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Media urls not working in Servoy SVYJFXWebview module .

Postby Harjo » Tue Jun 21, 2016 8:35 am

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.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 11 guests

cron