/ Published in: C#
Use this in the ApplicationModule.js file.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Extending the SData query to include the new field is required //Use the correct object to extend below var detailView = Mobile.SalesLogix.Account.Detail; Ext.override(detailView, { querySelect: detailView.prototype.querySelect.concat([ 'SDATANAME' ]) }); this.registerCustomization('VIEWTYPE', 'VIEWNAME', { at: function(row) { return row.label == 'LOCATION'; }, type: 'insert', where: 'before',//after can be used as well value: { //Action is used if clicking this item should fire a function //If so then action should equal the function's name //action: 'testAlert', name: 'SDataName', label: 'LABEL', icon: 'ICONLOCATION' } });