Usage for COMMANDS.AUTHOR_DELETE_TOPIC_TOC
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)
