Guest User

Untitled

a guest
Oct 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. if (record) {
  2. record.data.field_set.forEach(function(item, index) {
  3. var temp = {
  4. id: item.id,
  5. name: item.name,
  6. searchKey: item.id,
  7. dynamic: true,
  8. field_type: {
  9. id: item.field_type.id,
  10. name: item.field_type.name
  11. }
  12. }
  13. if (item.field_type.name == 'List') {
  14. temp['possiblevalue_set'] = item.possiblevalue_set;
  15. }
  16.  
  17. fieldsStore.add(temp);
  18. });
  19. }
Add Comment
Please, Sign In to add comment