Inserting a new field


/ Published in: C#
Save to your folder(s)

Use this in the ApplicationModule.js file.


Copy this code and paste it in your HTML
  1. //Extending the SData query to include the new field is required
  2. //Use the correct object to extend below
  3. var detailView = Mobile.SalesLogix.Account.Detail;
  4. Ext.override(detailView, {
  5. querySelect: detailView.prototype.querySelect.concat([
  6. 'SDATANAME'
  7. ])
  8. });
  9.  
  10. this.registerCustomization('VIEWTYPE', 'VIEWNAME', {
  11. at: function(row) { return row.label == 'LOCATION'; },
  12. type: 'insert',
  13. where: 'before',//after can be used as well
  14. value: {
  15. //Action is used if clicking this item should fire a function
  16. //If so then action should equal the function's name
  17. //action: 'testAlert',
  18. name: 'SDataName',
  19. label: 'LABEL',
  20. icon: 'ICONLOCATION'
  21. }
  22. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.