Highlighted
Contributor.
Contributor.
374 views

Implementing "Use For" property of keyword/Thesaurus Term using sdk.

We are trying to create a custom UI for Thesaurus Term Management on RM 8.3.
We are able to create new Keywords as well as edit existing one(s) properties.

But, we are facing an issue while setting the "Use For" relation between two keywords.
We tried the code below but this did not yield the desired result:

objRecord.SetFieldValue(new FieldDefinition(con, "UseFor"), new UserFieldValue("KeyValueTobeSet"));

Has anyone tried doing something similar ?
If so can you please provide some pointers or point me to some URL which explains the process.

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Keyword relationships are added via the HP.HPTRIM.SDK.Keyword.AddRelationship method

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.