Skip to main content
Nintex Community Menu Bar

Select all fields for model

  • July 8, 2024
  • 4 replies
  • 12 views

Forum|alt.badge.img+18

In the case that I want more than 50% of an object’s fields to be in a model, it would be great to have a “select all fields” option in the model definition.

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+17
  • Nintex Employee
  • July 8, 2024

Yup… 


Forum|alt.badge.img

I was just looking for a select all option. My primary object has 450 fields.


Forum|alt.badge.img+20

Would be quite nifty to have this in conjunction with field type filter.


Forum|alt.badge.img+3

Any idea how can we add fields to model dynamically - 

var newModel = new skuid.model.Model();
newModel.fields = [    { id: ‘Subject__c’ },
    { id: ‘’ },
    { id: ‘Client_Contacts__c’ },
    { id: ‘Approved__c’ },
    { id: ‘End_Time__c’ }];

Now i have an array with all field names say-
var allfields = [“Client__c”,“Approved__c”];//This array contains all fields

How can we replace  
[    { id: ‘Subject__c’ },
    { id: ‘Client__c’ },
    { id: ‘Client_Contacts__c’ },
    { id: ‘Approved__c’ },
    { id: ‘End_Time__c’ }];

with 

allfields.

Any help would be appreciated. thanks!