Skip to main content
Participant
August 26, 2022
Question

Usage for COMMANDS.AUTHOR_DELETE_TOPIC_TOC

  • August 26, 2022
  • 1 reply
  • 134 views

I have searched all over the internet and I was not able to fnd anywhere that specified what parameters RoboHelp.exec() can accept when passing in RoboHelp.COMMAND.AUTHOR_DELETE_TOPIC_TOC

I have read this document https://helpx.adobe.com/content/dam/help/en/pdf/RoboHelp-Scripting-Reference-2019.pdf and while it does define the available properties and the promise that they return it does not define the usage / specific parameters that methods (exec,getValue,setValue) accept.

 

Example code:

let callCount = 0;//without this count cbGetData will return 68 times. Not sure why this happens
function getData(key,topic,cb){
RoboHelp.exec(key,topic).then((value)=>{
cb(value);
});
}
function cbGetData(val){
if(callCount == 0)
{
//add your code here
alert(val);
}
callCount++;
}

getData(RoboHelp.COMMANDS.AUTHOR_DELETE_TOPIC_TOC,<WHAT_DO_I_PUT_HERE>,cbGetData)

This topic has been closed for replies.

1 reply

Community Expert
August 28, 2022

There aren't many coders on this forum any more. However, a topic toc is a widget nside a topic that lists the headings in that topic. So perhaps you would need to pass a topic name/id that you want to delete the topic toc from? (That would also fit with the words in the getData function.)

 

Your best bet is probably to contact Adobe Support. The email address is recommended as it goes to a dedicated Robohelp team. https://helpx.adobe.com/contact/enterprise-support.other.html#robohelp

 

Do post back with what you find out as it may help someone else in future.

Participant
September 1, 2022

I have been in contact with Adobe, but I have not heard back from them. If / when I have any more information I will post it here.