04-24-2013 11:48 AM
Scenario:
I've added a new Related Item to my Account Details view. I want to take the ID of the Account and use it as an argument in a query to an external data source.
The code for the new Related Item looks like this:
acctRelItems.children.splice(0, 1, {
name: 'orders',
view: 'orders_list',
label: 'System Orders',
where: Mobile.SalesLogix.Views.Account.Detail.prototype.formatRelatedQuery.bindDelegate(this, 'Account.Id eq "${0}"')
});
I think my where statement is wrong, but I'm not sure what it should be.
When I get to the orders_list view, I want to be able to get that ID. I've tried this.options but it didnt work. What's the correct syntax?
04-30-2013 10:56 AM
Worked around it with a klooj.