cancel
Showing results for 
Search instead for 
Did you mean: 

CatalogData LinkAttribute API

Former Member
0 Kudos

Hi All,

Has anyone been able to successfully implement CatalogData.LinkAttribute method?

Here is my call:

changeStamp = catalog.LinkAttribute("Categories", hierarchyCategory.getNode4(), taxonomyAttribute.getID(), 50, 0);

I debugged to make sure the taxonomyNodeID and attributeID are passed and are correct. May be the last parameter, changeStamp, is causing problems since I've just passed a zero?

Please let me know if you were able to successfully call this method, and if yes, How?

Thanks!

Roman D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roman,

The changestamp cannot be zero. The changestamp is the changestamp for the taxonomy node, in your case category. So you need to get a resultset that returns the category to which you're trying to add the attribute. Then call A2iResultSet.getChangeStampAt() and pass this value to the LinkAttribute method.

Hope this helps,

Richard

Former Member
0 Kudos

Hi Richard,

That worked splendidly! Thanks so much (again!).

Roman

Answers (0)