Results 1 to 1 of 1
  1.    #1  
    I have been trying to figure out this divider function for the last two hours. I was going over the style samples and looking here: Lists €“ Palm Developer Center

    Code:
    function GetAssistant(this.filterlistModel) {
         return $L(this.filterlistModel.visibleUrl);
    }
    I am assuming that is the correct way for the function to be.

    Possible issue, my model has no items in it by default. They are dynamically loaded and applied with
    Code:
    this.controller.get('filterlist').mojo.noticeUpdatedItems(0, this.allitems);
    Where this.allitems contains all the actual items. I just want all the items ordered by a visibleUrl divider.

    Can anyone see what I am doing wrong?

    EDIT: Solved.

    I just added:
    Code:
    var modelItem = this.filterlistModel;
    Changed the function to:
    Code:
    dividerFunction: this.divideThis.bind(this)
    Then function itself:
    Code:
    GetAssistant.prototype.divideThis = function(modelItem) {
    	return $L(modelItem.visibleUrl);	
    }
    Last edited by socca1157; 01/22/2010 at 02:13 PM. Reason: Solved. Added solution.

Posting Permissions