Page 1 of 1

want to fill automatically values for attributes Format , scope , type and Navigation title for topicref

Posted: Fri Jun 19, 2020 12:58 pm
by vishwavaranasi
Hello , i was trying to use api to set the global options

pluginWorkspaceAccess.setGlobalObjectProperty(APIAccessibleOptionTags.DITA_FILL_TOPICREF_FORMAT_ATTR,Boolean.TRUE);

but this giving error "can not be resolved or is not a field"

the API available here
https://www.oxygenxml.com/InstData/Edit ... ORMAT_ATTR

where as this works fine
pluginWorkspaceAccess.setGlobalObjectProperty(APIAccessibleOptionTags.DITA_OT_DIRECTORY,"path-to-dita-ot");

Thanks,
vishwa

Re: want to fill automatically values for attributes Format , scope , type and Navigation title for topicref

Posted: Fri Jun 19, 2020 2:02 pm
by Radu
Hi,

What version of Oxygen are you using with the plugin?
This particular API field ro.sync.exml.options.APIAccessibleOptionTags.DITA_FILL_TOPICREF_FORMAT_ATTR was added in Oxygen 22.0.
So probably you are compiling the plugin with a new SDK and then running it with an older Oxygen version.
If instead of using the constant you use directly the string "dita.fill.format.attribute", like:

Code: Select all

pluginWorkspaceAccess.setGlobalObjectProperty("dita.fill.format.attribute",Boolean.TRUE);
does that work for you?

Regards,
Radu

Re: want to fill automatically values for attributes Format , scope , type and Navigation title for topicref

Posted: Mon Jul 06, 2020 1:30 pm
by vishwavaranasi
many Thanks Radu ..it's worked for me.