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

Post here questions and problems related to oXygen frameworks/document types.
vishwavaranasi
Posts: 140
Joined: Fri Feb 28, 2020 4:02 pm

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

Post 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
Thanks,
vishwa
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vishwavaranasi
Posts: 140
Joined: Fri Feb 28, 2020 4:02 pm

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

Post by vishwavaranasi »

many Thanks Radu ..it's worked for me.
Thanks,
vishwa
Post Reply