http://prntscr.com/m06opd
http://prntscr.com/m06ovn
In order to create it, you need to do the following:
1. Create a module. Call it UsrMyAction
Add the code
Ext.define("Terrasoft.MyAction", {
extend: "Terrasoft.ActionBase",
config: {
useMask: false,
title: "MyActionTitle",
iconCls: Terrasoft.ActionIcons.Copy
},
execute: function(record) {
this.callParent(arguments);
alert(11111);
this.executionEnd(true);
}
});
Add the localizable string
MyActionTitle
2. Add a module. Call it UsrMobileAccountModuleConfig
Add the code
Terrasoft.sdk.Actions.add("Account", {
name: "myAction",
actionClassName: "Terrasoft.MyAction"
});
3. Create a replacing client module for the MobileApplicationManifestDefaultWorkplace module. Or use a mobile wizard - it will create the manifest automatically.
Add the newly created modules to the manifest
{
"CustomSchemas": [
"UsrMyAction"
],
"Models": {
"Account": {
"PagesExtensions": [
"UsrMobileAccountModuleConfig"
]
}
}
}
Restart the application pool, synchronize the mobile application again.