Hi,
I’m working on a module based on the slack-alarm-notification sdk example.
I have 2 properties files:
src/main/java/com/operametrix/ignition/mymodule/gateway/MyModuleNotification.properties
src/main/java/com/operametrix/ignition/mymodule/gateway/profile/MyModuleNotificationProfile.properties
The properties in the first file seem to be working fine in the web UI but I can’t get the properties of the second to display correctly (i.e. not ¿MyModuleNotificationProfile.Example.Description?).
This was working fine in 8.1… What could I be missing?
Thank you
Make sure you are loading both with BundleUtil. The example may be missing that and have the same issue.
1 Like
This is what I just stumbled upon now!
Adding
BundleUtil.get().addBundle("MyModuleNotificationProfile", getClass(), "profile/MyModuleNotificationProfile")
after this line has solved the issue. Is this a "clean" solution?
In v8.1 and prior, the internal DB and PersistentRecord classes would auto-add your bundles for your records. This doesn't happen in v8.3.
1 Like
I just noticed a further difference between v8.1 and v8.3 for bundles: the gateway hook's .setup(...) method is now too late for any strings needed in the Web UI. Move your call(s) to BundleUtil.get().addBundle(...) to your GatewayHook's constructor.