IBM Support

PI37990: WL.JSONSTORE.JSONSTOREINSTANCE.FINDBYID DESCRIPTION IN THE KNOWLEDGE CENTER IS WRONG.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as documentation error.

Error description

  • According to the topic IBM MobileFirst Platform Foundation
    6.3.0>API reference>MobileFirst client-side API>JavaScript
    client-side API>Classes>WL.JSONStore.JSONStoreInstance,
    "findById" only has one parameter:
    
    {Promise} findById(options)
    
    The correct syntax with two parameters appears at
    https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.
    ibm.worklight.dev.doc/devref/r_jsonstore_gs_javascript.html?lang
    =en:
    // Alternatives:
    // - findById(1, options) which locates documents by their _id
    field
    
    
    Additional Keywords:
    
    Worklight Versions Affected: 6.1 and up.
    
    Initial Impact: Medium
    

Local fix

  • Use the correct values described above
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The description of "findById" is wrong.                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Use the following description instead:                       *
    *                                                              *
    * {Promise} findById(data, options): Returns one or more       *
    * documents that match the _id that is supplied to the         *
    * function.                                                    *
    *                                                              *
    * Parameters:                                                  *
    *     {array} data - An array of _id                           *
    *     {object} options Optional                                *
    *     {array} options.filter Optional - Return only the        *
    * specified search fields, by default return _id and json.     *
    *     {array} options.sort Optional - Sort documents based on  *
    * their search fields, either ascending or descending.         *
    *     {function} options.onSuccess Optional - Deprecated.      *
    * Success callback.                                            *
    *     {function} options.onFailure Optional - Deprecated.      *
    * Failure callback.                                            *
    *                                                              *
    * Returns:                                                     *
    *     {Promise} Resolved when the operation succeeds, returns  *
    * an array of results. Rejected when there is a failure.       *
    ****************************************************************
    -
    

Problem conclusion

  • Updated Knowledge Center topic, for all releases V6.2 to V7.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI37990

  • Reported component name

    WL/MFPF ENTERPR

  • Reported component ID

    5725I4300

  • Reported release

    630

  • Status

    CLOSED DOC

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-30

  • Closed date

    2015-12-10

  • Last modified date

    2015-12-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"630","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021