Client Script of Mobile UI Rule doesn't work

kaioguri
Tera Contributor

I set the following Client Script with the Mobile UI Rule.

However, it seems that this Client Script itself is not being called.

It was being called before the Yokohama update.

 

The Mobile UI Rule is active, and the condition is not set, so it should be always applied.

The trigger is "onChange", and the Client Script did not activate after the form input.

 

Is it a bug in the Yokohama version, or is there an issue with my configuration?

 

Below is my Client Script.  Even "m_form.addInfoMessage" is not being triggered..

function onChange(inputName, newValue) {
    m_form.addInfoMessage('hello!');

    var itemId = m_form.getValue('u_item');
    if (itemId) {
        var caller = new MobileScriptIncludeCaller('CustomMobileMenuUtil', 'getWorkItem');
        caller.addParam('itemId', itemId);
        caller.call(function(response) {
            m_form.setValue('unit', response);
        });
    }
}

 

1 REPLY 1

Pipemango
Tera Expert

Hi @kaioguri , can you show us the script include? From my experience, it needs to be a mobile callable/sandboz enabled script include, and the script include should extend this object: "

global.AbstractMobileCallableInclude"