SageScottsdalePlatform/argos-saleslogix — Issue #28: dojo version - latest - how to add more than one hash tag query at a time
Author: rjledger
Created: 2011-12-02 18:19:54+00:00
State: open

The sample only shows how to do one HT at a time. w/Ext based mobile, we could do multiples.

Any easy way to do this w/the dojo?

Ext based:
hashTagQueries: Ext.apply(Mobile.SalesLogix.Account.List.prototype.hashTagQueries || {},{
'cust': 'Type eq "Customer"',
'lead': 'Type eq "Lead"',
'vend': 'Type eq "Vendor"',
'slxbp': 'SubType eq "SLX BP"',
'my': function(){
return String.format('AccountManager.Id eq "{0}"',App.context['user']['$key']);
}
})

dojo:
??
One->
this.registerCustomization('list/hashTagQueries', 'account_list', {
at: true,
type: 'insert',
value: {
tag: 'my',
query: function() {
return dojo.string.substitute('AccountManager.Id eq "${0}"', [App.context['user']['$key']]);
}
}
});

Many????