Perspective Module Example

Hi Perry,

Could you please share the URL to more information and/or the module example?

S.

Module SDK examples are available here, including a Perspective component example.

1 Like

Is there a change in the API on version 8.0.3 ?

I am getting following error in designer when I build and install the Perspective Example module on Ignition 8.0.3-rc2 (b2019072512).

11:31:30.377 [Designer-Startup] INFO designer.main - Starting module: RadComponents [+7166]
11:31:30.378 [Designer-Startup] INFO RadComponents - Registering Rad Components in Designer!
11:31:30.381 [Designer-Startup] ERROR designer.main - Error starting up module RadComponents
java.lang.NoSuchMethodError: com.inductiveautomation.perspective.designer.api.PerspectiveDesignerInterface.getComponentRegistry(Lcom/inductiveautomation/ignition/designer/model/DesignerContext;)Lcom/inductiveautomation/perspective/designer/DesignerComponentRegistry;
	at org.fakester.designer.RadDesignerHook.startup(RadDesignerHook.java:20)
	at com.inductiveautomation.ignition.designer.IgnitionDesigner$LoadedModule.startup(IgnitionDesigner.java:1828)
	at com.inductiveautomation.ignition.designer.IgnitionDesigner.startupModule(IgnitionDesigner.java:1079)
	at com.inductiveautomation.ignition.designer.IgnitionDesigner.lambda$loadProject$8(IgnitionDesigner.java:909)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
	at com.inductiveautomation.ignition.designer.IgnitionDesigner.loadProject(IgnitionDesigner.java:908)
	at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler.lambda$new$2(IgnitionDesigner.java:1892)
	at java.base/java.lang.Thread.run(Unknown Source)

Yes, @PerryAJ has been updating the example here: https://github.com/inductiveautomation/ignition-sdk-examples/pull/28/files

I’m not sure if it’s completely up to date right now, but I’m sure he’ll finish the PR and we’ll merge it once 8.0.3 is released.

Yep! There are a number of changes/api additions for 8.0.3. Should have the final updates for that PR within a day or two of 8.0.3 being released.

Thank you.

Are these examples available now for us to download ? The perspective component example at https://github.com/inductiveautomation/ignition-sdk-examples seem to be older.

It’s been available as a PR here https://github.com/inductiveautomation/ignition-sdk-examples/pull/28/files

I just requested someone take a look at it to get it merged in, but until that’s done, you can clone my fork with the updates here https://github.com/PerryAJ/ignition-sdk-examples/tree/more-perspective-components

1 Like

Just to follow up, the 8.0.3 update did get merged in. Feel free to post an issue on GH if you run into problems or have questions.

1 Like