Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

SlxMobile - Getting and passing ID of an entity into custom view

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?

Highlighted
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

Re: SlxMobile - Getting and passing ID of an entity into custom view

Worked around it with a klooj.