I want to use BIRT in an RCP application. I'll need to allow the user to enter parameter values and it's a requirement that the parameter entry UI must be customizable by users without compilation.
Is the only way to build a custom parameter JSP page and show it in an embedded browser? Or are there other ways to do this?
Besides the custom jsp, you can build your own SWT-UI that asks in your RCP for parameter values. You have to
parse the rptdesign file by BIRTS API to examine the parameter-types
prompt for example your custom dialog and
afterwards opening an embedded browser with the entered parameters (the parameters are appended to the URL of the ReportViewer), see also http://www.eclipse.org/birt/phoenix/deploy/viewerUsage.php#parameters
Related
I am trying to create a form that requires quite a large amount of components but I do not want to create them all manually. Is there a way to create these components using a Form's Pre-activation script or some other script?
As of install4j 7, form components have to be configured statically in the IDE, there is no way to create them at runtime.
You can develop your own form component with the API that exiibits dynamic behavior, see the samples/customCode project for an example on how to get started.
I would like to add functionality to the AtTask system by "adding a layer".
What I want to know is whether this can be achieved with a plug-in for Internet Explorer.
To give a concrete example:
This extra layer would allow users to click on "Online Edit" document (which is not available right now). The linked application will open, and when you click save, the file is loaded back to AtTask.
All this happens in the background via the AtTask API, and is transparent to the user.
The question is: is it possible to add functionality to a site by somehow adding layers?
Last comment: this plug-in (or whatever needs to be installed inbto the browser) will only be visible/active when accesing the AtTask website.
Thanks in advance for your responses.
Within the confines of AtTask your best bet is to use an "External Page" create a service that handles the data in the manner you need.
The Dashboard that contains your External Page can be added as a tab via Layout Templates.
Most of the heavy lifting would have to be handled by your application. You would have to link the document(s) you wish to edit.
Some sort of referrer would be necessary to place the revised document back into AtTask. The method in which the client can do this would be determined by your preference and requirements. I am sure you can find some sort of Wiz-Bang jQuery uploader.
Depending on the level of control you have with your user base, you could make an Application URL
Windows : Registering an Application to a URI Scheme
OS X : Launching Scripts from Webpage Links
I do not know of any other way to handle this other than what Steve suggested.
Having said that a possible solution to this is to create a new application and iframe in AtTask.
At the top or wherever on the page your application could have a link for "Online Edit". Then you would use javascript to extract the task id, project id or any other needed information you need for the api to get the needed content to edit. Then save using the same api information.
I have not tried this type of method but theoretically it could work.
Recently, i have embedded a third party applet for the web project.
The applet provides some predefined parameters and i can use it into JSP file. For example:
<APPLET CODEBASE="XXXXX" .......>
<PARAM NAME="downloadLink" value="http://xxxxxxxxx?imageId=xxxx">
</APPLET>
However, i think it is not security due to the parameters and its value can be viewed through "view source" function which provided by the browser. Therefore, users can get the download link easily and re-download the image by typing the link in address bar.
In the above situation,
1. How can i avoid the parameter and its value displayed in jsp source?
2. is it possible to load the parameter list from java script/html/json etc...?
It depends on what level of security you want.
What probably would work for most users and solve your 'looking at the html source' problem is:
You could encrypt your parameters on the server and then pass them to your applet (with the 'param' parameter as you did) and then decrypt those params in your applet again. Then you won't see anything meaningful when you look at the html source. However a user could theoretically decompile the applet and extract the key and thus decrypt your params... So as mentioned it depends on the level of security you need.
I'm currently writing a facebook application using GWT on Eclipse, how can I test the application with all the interaction??
If you mean how can you write tests for your whole working application, you might want to have a look at Selenium (http://seleniumhq.org/). There are a variety of ways of using it, but essentially you can use it to automate a browser and click on elements, enter text, verify that you can see the correct result.
With GWT you will need to use "ensureDebugId" method on UiObject and add
to your gwt.xml file so that you get repeatable element ids that you can use in your tests.
I would like to make a plugin that lets you use the google fonts. But I want the user to be able to choose from all fonts available. To do this I cannot use a static xml manifest for the menu but I need to create a updated list of the fonts in real time.
So how can I modify the plugin parameters programmatically? Is it also possible to use javascript to add some behavior to the menus for some ajax work?
Thanks
You need to create a custom element and add it to the plugin's xml file.
The following doc will let you know how to add custom element to a form.
You just need to change it according to your needs.
http://docs.joomla.org/Adding_a_multiple_item_select_list_parameter_type
This doc is just for example, you should be able to use this exact code, for example, you need not worry about saving the params. Joomla automatically saves the params of any plugin.