• Only the letter "i" is displayed

    By Antoine Guillemette 8 years ago

    The view wich the custom control is fetching it's letters is too big and the code returns “Infinity”. Hence why the letter “i” is displayed.

    To patch this, go in the custom control and change the code for the repeat control to:

    var db = compositeData.pathinfo.database;
    var viewtitle = compositeData.pathinfo.lookupview;
    var lookupView:NotesView = database.getView(viewtitle);
    var array = lookupView.getColumnValues(0);
    var array2 = [];

    for (var i = 0; i < array.length; i++) {

    array2.push(array[i].substr(0, 1).toUpperCase());
    

    }

    @Unique(array2)