Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Refine your application with custom components

Emil Pennlöv
September 11, 2015

Refine your application with custom components

Ext JS is a superb framework for creating UI:s for large-scale and data-heavy applications. It provides a full data layer and a collection of great components for visualization and interaction. Furthermore Ext JS enables you to create custom components that will meet your specific needs. This session will demonstrate real world examples of custom Ext JS components that are built to provide great UX but also with code maintenance and refactoring in mind.

This presentation is from SenchaCon 2015 roadshow in Oslo, Copenhagen & Stockholm.

Emil Pennlöv

September 11, 2015
Tweet

More Decks by Emil Pennlöv

Other Decks in Programming

Transcript

  1. Emil  Pennlöv ▸ 12  years  in  web  tech ▸ 6

     years  working  with  Sencha framwork(s) ▸ Certified  trainer  @  Sencha ▸ Team  leader  @  Orango AB Microsoft  Dynamics  AX,  Microsoft  Dynamics  NAV,  Bison,  PRMS 99  employees  (ERP  consultants) Malmö,  Helsingborg,  Kristianstad &  Stockholm Select  partner  with  Sencha 5  Sencha devs -­‐ both  internal  &  external  projects
  2. Abstract ▸ ERP   ▸ Challenges  when  developing  a  large

     scale  application ▸ Benefits  of  creating  custom  components ▸ Examples  of  custom  components ▸ After  lunch  we’ll  write  a  custom  component  
  3. ERP   1000s of  tables 1000000s of  records  in  each

     table 10000s of  transactions  each  day 1000s of  pages  in  the  system
  4. Challenges when  developing  a   large  scale  application ▸ A

     lot  of  pages Tables,  forms,  charts  etc. ▸ A  lot  of  data Visualization ▸ A  variety  of  users Easy  to  use  but  able  to  do  everything ▸ Repetitive  tasks Entering  data  should  be  easy ▸ Business  critical No  bugs  allowed
  5. Benefits  of  creating  custom  components ▸ Solve  a  specific  challenge

    ▸ Development  &  refactoring  in  one  place ▸ Increase  development  speed ▸ Package  and  use  in  other  applications ▸ Easy  to  unit  test
  6. Precautions ▸ Clean,  readable,  commented  &  testable  code ▸ Don’t

     overdo  it ▸ “How  would  Sencha do  it”? ▸ If  3rd party,  choose  wisely ▸ Test,  test  …  and  test
  7. { fieldLabel: 'Updated', xtype: 'fieldcontainer', layout: 'hbox', defaults: { xtype:

    'displayfield' }, items: [ { name: 'UDAT', renderer: function (val) { if (val === '0') { return ''; } else { return Ext.Date.format(Ext.Date.parse(val, 'Ymd'), 'Y-m-d'); } } }, { value: 'by', margin: '0 5 0 5' }, { name: 'UUSR' } ] }
  8. 'tablelookup' CODE TEXT EN English SE Swedish ID USER NAME

    LASTNAME LANGUAGE 1 Sven Sven   Svensson SE Table:  USERS Table:  LANGUAGE
  9. Challenges building  a  large  scale  application ▸ A  lot  of

     pages Tables,  forms,  charts  etc. ▸ A  lot  of  data Visualization ▸ A  variety  of  users Easy  to  use  but  able  to  do  everything ▸ Repetitive  tasks Entering  data  should  be  easy ▸ Business  critical No  bugs  allowed