Lookup table in a separate file

Hi

I’d like to put my configuration lookup table into a separate file that multiple grid files (all on the same machine in the same folder) can access. Just means I can have 1 central file with all the IP addresses etc

I can’t see how to do this. Tried using the api tag, but none of the entries seem accessible.

This is the table as it exists in the separate file. No other tags around the lookup tag.

Is this even possible?

Thanks

Simon

Change these Variables to reflect the current System (Values Below).

127.0.0.1

Carbonite 00:0F:9B:02:E9:11
Slot 0
Carbonite

Hi Simon

We added a feature to help with internationalization of custom panels that will also work for what you’re trying to do. You can use a standard Java properties file (key=value) to populate a lookup table in DashBoard.

Panel:

rosstalk.sendMessage(ogscript.getPrivateString('hosts', 'My_Device.host'), parseInt(ogscript.getPrivateString('hosts', 'My_Device.port')), 'SEQI 12:1'); rosstalk.sendMessage(ogscript.getPrivateString('hosts', 'My_Other_Device.host'), parseInt(ogscript.getPrivateString('hosts', 'My_Other_Device.port')), 'SEQO 4'); Properties ("hosts.properties"):

My_Device.host=blah
My_Device.port=1234
My_Other_Device.host=BLAHBLAH
My_Other_Device.port=4321
Cheers

James

#DashBoard

That works a treat!

Thank you

#DashBoard