My Oracle Support Banner

Thumbnails Disappeared From Item Title Block When Folder Version Is Set To Latest With Software Development Kit (SDK)API (Doc ID 2433457.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Agile Product Collaboration - Version 9.3.5.0 and later
Information in this document applies to any platform.

Symptoms


ACTUAL BEHAVIOR

Thumbnails disappeared from Item's Title Block when Folder Version is set to Latest with SDK API


EXPECTED BEHAVIOR

Thumbnails should remain as it is in Item's Title Block when Folder Version is set to Latest with SDK API


STEPS

The issue can be reproduced at will with the following steps:
1. Update the Folder version of the Attachment in Item|| Attachments
2. The thumbnail disappears in the Attachments tab
3. As well as in Title block.
4. Regenerating manually regenerates the image
5. Regenerating via SDK API fails.



Changes

 Executed the code:

The code to set the Folder version and regenerate thumbnails. .


  session = AgileSessionFactory.createSessionEx(map);
  IItem item = (IItem)session.getObject(IItem.OBJECT_TYPE,
"P00001");
  IRow row;
  IThumbnailID thumbnailID = null;
  Object folderNumber;
  for(Object obj : item.getAttachments()){
  row = (IRow)obj;
  
row.setValue(ItemConstants.ATT_ATTACHMENTS_FOLDER_VERSION, "[LATEST]");
  
  folderNumber =
row.getValue(CommonConstants.ATT_ATTACHMENTS_FOLDER_NUMBER);
  IFileFolder ff =
(IFileFolder)session.getObject(IFileFolder.OBJECT_TYPE, folderNumber);
  ITable titleBlockTable =
ff.getTable(TableTypeConstants.TYPE_PAGE_ONE);
  Iterator i = titleBlockTable.getTableIterator();
  while (i.hasNext()) {
  row = (IRow)i.next();
  Object thumbnailIDDetails =
row.getValue(ThumbnailConstants.ATT_THUMBNAIL_FILEFOLDER_TITLE);
  IAgileList[] nodes
=((IAgileList)thumbnailIDDetails).getSelection();
  for(int ii=0; ii<nodes.length; ii++) {
  IAgileList childNode = nodes[ii];
  thumbnailID =
(IThumbnailID)childNode.getValue();
  }
  thumbnailID.setAsyncGenerating(false);
  ff.generateThumbnail(thumbnailID);
  }

  }

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.