I am trying to use a snippet and a custom button to export model data to excel but I have a couple things I am stuck on. I am mainly doing this because I want to export fields that are outside my table but do not want to append the record id. It seems I can’t do both point and click.
1. When using a snippet, how do I add custom labels to the fields? Is this possible?
2. When using this method it seems I lose the functionality of selecting which rows I want to export. Is this true? Can you only export all rows?
Here’s my sample snippet:
var model = skuid.model.getModel(‘Estimates’);
model.exportData({
fileName: ‘All_Estimates’,
usetablecolumns:“false”,
fields: [
model.getField(‘Estimate__r.Name’),
model.getField(‘Estimate__r.Description__c’),
model.getField(‘Estimate__r.Location__r.Name’),
model.getField(‘Status__c’),
model.getField(‘Estimate__r.Status__c’)
],
doNotAppendRowIdColumn: true,
});
Question
Using a Snippet to Export to Excel

Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.