My Oracle Support Banner

item.getAttachments().where Cannot Return Correct Value for table.size() (Doc ID 2453716.1)

Last updated on FEBRUARY 21, 2019

Applies to:

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

Symptoms

 Actual Behavior

item.getAttachments().where cannot return correct value for table.size()


Expected Behavior

item.getAttachments().where can return correct value for table.size()

Steps to Reproduce:

The issue can be reproduced at will with the following steps:

  1. Get the attachment table of a Parts subclass with following SDK.

    ITable table =
    item.getAttachments().where("["+ItemConstants.ATT_ATTACHMENTS_FILE_TYPE+"]
    Equal To %0"
    + "Or ["+ItemConstants.ATT_ATTACHMENTS_FILE_TYPE+"] Equal To %1"
    + "Or ["+ItemConstants.ATT_ATTACHMENTS_FILE_TYPE+"] Equal To %2"
    + "Or ["+ItemConstants.ATT_ATTACHMENTS_FILE_TYPE+"] Equal To %3"
    + "Or ["+ItemConstants.ATT_ATTACHMENTS_FILE_TYPE+"] Equal To %4", array)

  2. Check table.size()
    Table size being returned is 4 instead of 1

Changes

 

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.