Skip to main content
Americo Pinto
Inspiring
Oct 7, 2024 9:06 AM UTC
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
Oct 7, 2024 7:28 PM UTC

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
Oct 7, 2024 4:26 PM UTC

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

Translate
Americo Pinto
Inspiring
Oct 7, 2024 4:44 PM UTC

Hi John,

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

 

Regards

Translate
John D Herzog
John D HerzogCorrect answer
Inspiring
Oct 7, 2024 7:28 PM UTC

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
Oct 7, 2024 11:48 AM UTC

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
Oct 7, 2024 12:30 PM UTC

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