Installationvariable in toolbar

I would like to use the content of an installation variable in the Camerasystem_Toolbar_Contribution to establish an XML-RPC communication. The installation variable is created on the URCap and should then be available in the toolbar. This already works, and all installation variables are displayed to me in a drop-down menu. I can select them without any issues, and they are adopted. However, as soon as I use them, I have not found a way to access the content of this variable. I only have access to the name of the variable. Is there a solution for this? Maybe a function like getValue()? Unfortunately, I haven’t found anything in the “URCap - API Reference Docs” under VariableModel and DataModel. I hope you can help me with this.

Currently, I have also tried it using an object model of the dataModel class with the get() function, which according to the documentation should give me the value of the variable. Through the following function, I currently fetch the installation variables. Is only the name stored in the collection, or also the type and content of the variables?

public Collection getGlobalVariables() {
return context.getAPIProvider().getApplicationAPI().getVariableModel().get(new Filter() {

		@Override
		public boolean accept(Variable element) {
			return element.getType().equals(Variable.Type.GLOBAL)
					|| element.getType().equals(Variable.Type.VALUE_PERSISTED);
		}
	});
}

Hi Jan.

Its unfortunately only possible to get the initialization values of stuff in the In the Installation node from the toolbar. Meaning that you can only really access predefined constants.
as the toolbar cant see changes to the installation node.

I have done a work around before, but its kinda involved.

You can make a background Daemon.
Then in your installation node, you also send/publish the value to the daemon and store it there.
when you open the toolbar then the first thing it does is then to pull the values out of the daemon.

Kind regards CG1

Now that i think about it, this is basically “just” a database,
It might be easiest just to use SQLITE, so save the data to a database text file and then query/access it elsewhere(the tool bar in your case).