getSolutionName in plugin API

Questions and answers on developing, deploying and using plugins and JavaBeans

getSolutionName in plugin API

Postby pbakker » Tue Mar 01, 2005 11:12 pm

Hi,

Recently, the function getSolutionName has been added to the Applicationnode in Developer. Can we also get this function in the API?

I especially need this feature available in the IClientAccess interface, to determine the solutionname of a runtime solution.

Tnx in advance,

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby bobcart » Thu Mar 03, 2005 6:33 am

Good idea, it would be nice to have parity between the plugin and the editor. However, you may want other information too, especially for runtimes, such as a serial number for security? An easy way to do this would be to add a method to your plugin called something like js_setSolutionName and have a javascript method pass it the solution name.
In plugin:
Code: Select all
public String js_setSolutionName (String solution){
      return solution;
}



Then in maybe a startup method in Servoy runtime:
Code: Select all
var solution_name = application.getSolutionName();
plugins.your_plugin.setSolutionName(solution_name)

bobcart
 
Posts: 214
Joined: Fri Nov 21, 2003 8:01 pm
Location: Melbourne (AUS)


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 32 guests