I have implemented gantt chart using jfreechart. I want to know how can I get this chart accessed from client side. Also I do not want just image of the chart, I also want the zooming functionality alongside it. How to achieve this? Please help.
Can you please elaborate more?
While minimally interactive charts are possible in a servlet context, a fully interactive desktop application may be made available from the server via Java Web Start. Among the JFreeChart samples, the JWS demo best illustrates the potential.
I think you must catch client event and handle it from server side, and of course reload the image with the changes.
Related
Can anyone suggest me how to use progress bar to show progress?
In my app, when a user launches the app for the first time it downloads 12 MB of data via multiple web service, and the download can take 3 to 4 minutes. Right now I am using WL busy indicator but to have good user experience, I think a progress bar is the best solution.
So can you tell me how to proceed?
Is it possible with WL? Do I need to use Dojo?
Worklight does not provide a progress bar UI widget - nor should it; Worklight is not that kind of a framework.
Since you added the dojo tag to your question, you can try implementing Dojo's dijit/ProgressBar. You will need to control when to show and hide it.
We are having few rich text box in our custom objects in force.com enterprise edition. These rich text box are rendered in an android application given to our clients. Till now we were using the android app online but due to huge customer demand, we wish to make our app offline. But we are facing difficulties due to images in rich text box. The images in rich text box are stored as in a form
But when we try to use the android app offline, we cannot see the images in webview. Consulting our web developer, he said that the images do not have static path and so they cannot be downloaded and stored for offline use. So my query is, is there some way, which will help us to get static path for the images inserted in Rich Text Box available in force.com, so that we can use them offline.
Thanks!
I had the same problem some time ago and also raised the issue with salesforce. They got back to me saying that images within rich text boxes could be stored in any server and needs to be authenticated to via a browser to have access too.
But you could try to use this, but its not a guaranteed approach as salesforce can change the way they store images.
http://boards.developerforce.com/t5/General-Development/API-access-to-Knowledge-article-content-inline-images/td-p/233065
Hope this helps.
Here's the response from SFDC :
As discussed over the call, as of now Salesforce does not have this feature built in the current release, else we would be more than happy to help you.
However, you can also post an idea on our Idea Exchange, where our customers share their ideas and expectations. (http://sites.force.com/ideaexchange/ideaHome)
Please feel free to contact us, if you need any further assistance.
Thank you for contacting salesforce.
Regards
Developer Support Engineer
salesforce.com
I'm sure I am missing something obvious, but How do you provide the moveTo functionality like a djxmLineItem has in javascript in the case where I need to use a button to set fields in addition to switching mobile pages?
You can't use server side to execute the mobile moveTo as these actons are handle by dojo client side code.
One option I've used in the past is to use a document "postSaveDocument" to call the moveTo.
e.g.
<xp:dominoDocument .....>
<xp:this.postSaveDocument>
<xe:moveTo ...>
</xe:moveTo>
</xp:this.postSaveDocument>
</xp:dominoDocument>
In my example I needed to maually add some data to a document with server side code ad faced the same issue, I found this to be a good solution as it won't run until the document has been saved, meaning all validation will run fine.
You can compute the moveTo property and thereby set fields before moving to the desired XPage.
Have a look at the answer here: XPages Mobile Controls - how to program the Back button
I would like to write an enterpise app that displays some slides on the PC (think powerpoint deck)
important is the requirement that the user cannot take a screenshot of the picture, to see the image they must enter a password, I do not want them to be able to keep the picture
is this possible in Silverlight? what about Flash?
thanks!
You mean, how do you disable someone from using [Ctrl - Print Screen] on a PC or [Command-Shift-3] on a Mac?
Ummm... I think the best you could do is create and out of browser app that is fullscreen AND only when it becomes the active window, it will show the images you want to protect. That way you can disable the keys for screen capture and prevent any other programs from capturing a window shot of your what is in your app.
Still, there is nothing preventing a fiddler user from capturing an image downloaded to your app from a webservice or something. All the images would have to be encrypted then decrypted by your app.
Looks like watermarking your images is your best bet.
I am using Silverlight 3 and I am trying to take a screenshot of esri map.
I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and map image is not accessible at server side in my silverlight application).
So I am trying to find a function from esri so that I can save the map image as a file.
does anybody know how to do this? or any other way around?
I am using a script from the Code Gallery for both printing and exporting map images.
The script requires a little bit of tweaking to get it to work (plus you need to dig a little bit into WCF and self-hosted services), but it has been working great for several months now. You can see it in action at our web site.