Hi all,
I'm currently working on a driver module, I've finished most parts that I wanted to, but one last thing is remaining:
I would like to extend my Config Page with a Button; "Discover...". If a user clicks on that, he is shown a list of devices found. If he then selects one of the listed devices, the settings page is initialized with the settings found.
I have seen several posts (mostly in this forum) but none of them syntactically still work, so I assume that with Ignition 8.1 the API is quite a bit different.
Can anyone help me? Help greatly appreciated.
Chris
Perhaps something interesting here
The general flow is going to look something like:
- override
BaseExtensionPointType::newRecordConfigPanel
. This returns a ConfigPanel
, which is basically just a Wicket Panel
.
- learn whatever old version of Wicket we're using in 8.1 and build yourself a fancy discovery page on this panel.
- user did stuff, you have some info, user clicks a button, it's time to move on to a
RecordEditForm
. You'll end up creating a RecordEditForm
and then swapping it in:
var recordEditForm = new RecordEditForm(configPage, parentPanel, model, records);
configPage.setConfigPanel(recordEditForm);
Something along these lines... you are given all the things you need to eventually create the RecordEditForm
in newRecordConfigPanel
. Don't be afraid to step into the decompiled code, you'll probably never figure this out if you don't.
2 Likes