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: 13
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 » Fri Jun 19, 2020 12:58 pm

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

Radu
Posts: 6981
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 » Fri Jun 19, 2020 2:02 pm

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: 13
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 » Mon Jul 06, 2020 1:30 pm

many Thanks Radu ..it's worked for me.

Post Reply