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()?

  • October 7, 2024
  • 2 replies
  • 863 views

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 has been closed for replies.
Correct answer John D Herzog

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.

2 replies

John D Herzog
Inspiring
October 7, 2024

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

Americo Pinto
Inspiring
October 7, 2024

Hi John,

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

 

Regards

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.

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() ;

  

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.