Skip to main content
Americo Pinto
Inspiring
October 7, 2024
Answered

How to Get the ID of a Loaded Extension in CEP Using CSInterface.getExtensions()?

Hello everyone,

 

I'm still working on CEP.

 

I am trying to use the csinterface.getextensions() function and I get [object, object], [object, object], [object, object] etc. But I expected to get a list of loaded extensions by their ID's.

 

Need help.

Americo

 

 

<Title renamed by MOD>

This topic is closed to new replies. Start a new post to keep the conversation going.
John D Herzog
John D HerzogCorrect answer
Inspiring
October 7, 2024

Sorry. You are right. It is csinterface.getExtensionID(), and it only gets the current extensions ID. It looks like you will have to go with what you have and get the IDs from _extensions[index].id.

6 replies

John D Herzog
Inspiring
October 7, 2024

csinterface.getExtensions() gets the objects for the extensions. csinterface.getExtensionsID() gets just the list of IDs.

Translate
Americo Pinto
Inspiring
October 7, 2024

Hi John,

I'm sorry this function does not exist in CSInterfaces.js

 

Regards

Translate
John D Herzog
John D HerzogCorrect answer
Inspiring
October 7, 2024

Sorry. You are right. It is csinterface.getExtensionID(), and it only gets the current extensions ID. It looks like you will have to go with what you have and get the IDs from _extensions[index].id.

Translate
Charu Rajput
Community Expert
Community Expert
October 7, 2024

Hi @Americo Pinto -

The following code return an array of an object and each object contains the following properties - basePth, id,width, height, name, etc.

let csinterface = new CSInterface();
let _extensions = csinterface.getExtensions() ;

  

Translate
Best regards
Americo Pinto
Inspiring
October 7, 2024

Hello @Charu Rajput 

 

Thanks ! could you give me an example, pleaser ; I haven't found any documentation to help me build my order.

 

Regards.

Translate