Login / Register  search  syndication  about

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

Modifying the home page layout in the HTML5 mobile app

In your ApplicationModule.js you can modify the home page collection definition of lists displayed (The main navigation buttons).  You can either add new lists that you have created or simply change the order of the lists that are shown by default.

Here is the code using the dojo.extend method of the Application itself.

            var originalDefViews = Mobile.SalesLogix.Application.prototype.getDefaultViews;

             dojo.extend(Mobile.SalesLogix.Application, {
                getDefaultViews: function() {
                    //Get view array from original function, or default to empty array
                    var views = []; //originalDefViews.apply(this, arguments) || [];
                    //Add views
                    views = views.concat(['account_list']);
                    views = views.concat(['contact_list']);
                    views = views.concat(['lead_list']);
                    views = views.concat(['custom_list']);
                    views = views.concat(['another_custom_list']);
                    views = views.concat(['ticket_list']);
                    views = views.concat(['calendar_daylist']);
                    views = views.concat(['history_list']);

                    return views;
                }
            });

You will notice the line of code where I have declared the views array.  I commented out the typical line that gets the default set of views (the OOTB list of views and there order that is defined in the standard applicaiton.js module)

 

Instead of returning the default list of views in my array I initialize an empty one and then I just add in the views I want in the order I want them.  The users still have access to the other views via the config section of the mobile client but this way you can control the order of the views on the home page

What's This?
  
Bookmark and Share

About Kris Halsrud

   Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.


Related Content
   SalesLogix mobile not showing tickets
The SalesLogix mobile client utilizes the SData feed to perform data retrievals, inserts and updates from
Posted on Jan 02, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2012 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register