Skip to content

order Selection List Plugin core extension, 'ON_TABLE_MODEL_UPDATE_EVENT' exception due to aArgs type mis match on table growing #151

Description

@subrahmanyam-pampana

Getting the below script error while order selection plugin loading the more data due to growing. This error from class sap.dm.dme.podfoundation.extension.PluginControllerExtension in execute plugin function. While growing, aArgs coming as 'Growing' which is of type string but apply function expecting array as a second argument. Due to this, event extension not triggering.

Below is the implementation of the function. There is no type check for aArgs due to which it is going to exception

//class sap.dm.dme.podfoundation.extension.PluginControllerExtension
    /**
     * Executes the custom extensions member fuction, passing arguments
     *
     * @param {string} sOverrideMember Name of member function
     * @param {list} aArgs List of arguments for function
     * @returns {object} Return object based on member function
     * @public
     */
    PluginControllerExtension.prototype.executeFunction = function (sOverrideMember, aArgs) {
        this._logCall(sOverrideMember);
        return this[sOverrideMember].apply(this, aArgs);
    };

Basically the issue in the below code while calling the execute function, passing the reason as string instead of array

class: sap.dm.dme.plugins.orderSelectionListPlugin.controller.extensions.PluginEventExtension
function: onTableModelUpdateFinished

Image

Error log

Uncaught TypeError: CreateListFromArrayLike called on non-object
    at o.executeFunction (PluginControllerExtension-dbg.js:126:38)
    at i.onTableModelUpdateFinished (PluginEventExtension-dbg.js:393:30)
    at c.<anonymous> (ControllerExtension-dbg.js:105:29)
    at c.onUpdateFinished (PluginView-dbg.controller.js:1128:42)
    at c.<anonymous> (Controller-dbg.js:117:29)
    at c.fireEvent (EventProvider-dbg.js:240:38)
    at c.fireEvent (Element-dbg.js:798:44)
    at c.fireUpdateFinished (ManagedObjectMetadata-dbg.js:826:49)
    at c.<anonymous> (ListBase-dbg.js:1404:9)
    at tf (68271bc90518e87a_complete.js:354:500)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions