• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

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>

TOPICS
Scripting

Views

179

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Oct 07, 2024 Oct 07, 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.

Votes

Translate

Translate
Community Expert ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Hello @Charu Rajput 

 

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

 

Regards.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Hi John,

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

 

Regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 08, 2024 Oct 08, 2024

Copy link to clipboard

Copied

LATEST

Hello John,
don't be sorry; I thank you for your help, which was invaluable, because thanks to you I've solved my problem.

Have a nice day!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines