+
+ exportAttr: function (inSender, inEvent) {
+ this.openExportTab('export', inEvent.recordType, inEvent.uuid, inEvent.attr);
+ return true;
+ },
+
+ // export the data for just one attr of the model displayed by the workspace
+ openExportTab: function (routeName, recordType, id, attr) {
+ console.log('workspace exportAttr ' + recordType + '/' + attr + '(' + id + ')');
+ var query = { parameters: [{ attribute: "uuid", value: id }] };
+ // TODO: limit the data treated to just attribute: attr
+
+ // sending the locale information back over the wire saves a call to the db
+ window.open(XT.getOrganizationPath() +
+ '/%@?details={"nameSpace":"%@","type":"%@","query":%@,"culture":%@,"print":%@}'
+ .f(routeName,
+ recordType.prefix(),
+ recordType.suffix(),
+ JSON.stringify(query),
+ JSON.stringify(XT.locale.culture),
+ "false"),
+ '_newtab');
+ },