Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. window.parent.Xrm.Page.ui.tabs.get(2);
  2.  
  3. var tab = window.parent.Xrm.Page.ui.tabs.get(2);
  4.  
  5. tab.sections.forEach(function (section, sectionIndex)
  6. {
  7. section.controls.forEach(function (control, controlIndex)
  8. {
  9. switch (control.getControlType())
  10. {
  11. case "standard":
  12. case "lookup":
  13. case "optionset":
  14. var attribute = control.getAttribute();
  15.  
  16. if (attribute != null)
  17. {
  18. alert(attribute.getName());
  19. }
  20. break;
  21. }
  22. });
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement