Guest User

Untitled

a guest
Jan 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function showHMA() {
  2. //var hmaPane = new dijit.layout.ContentPane({
  3. // style: "width: 100%; height: 250px; overflow: auto;"
  4. //}, dojo.create("div"));
  5.  
  6. var hmaStore = new dojo.data.ItemFileReadStore({url: "/hma"});
  7.  
  8. var hmaLayout = [{
  9. field: 'SM_HMA',
  10. name: 'SiteManager',
  11. width: '200px'
  12. },
  13. {
  14. field: 'TX_HMA',
  15. name: 'TxCIT',
  16. width: '200px'
  17. }];
  18.  
  19. var gridHMA = new dojox.grid.DataGrid({
  20. style: "width: 300px; height: 400px;",
  21. query: "{SM_HMA: '*' }",
  22. rowsPerPage: 10,
  23. store: hmaStore,
  24. clientSort: true,
  25. rowSelector: '20px',
  26. structure: hmaLayout,
  27. autoHeight: true
  28. }, dojo.create("div"));
  29.  
  30. var hmaDlg = new dijit.Dialog({
  31. title: "SiteManager HMA",
  32. style: "width: 600px; height: 600px"//; overflow: auto;",
  33. content: gridHMA.domNode
  34. });
  35. gridHMA.startup();
  36. hmaDlg.show();
  37. }
Add Comment
Please, Sign In to add comment