Hi Yurii
http://appery.io/app/mobile-frame?src...
startscreenNightsManchester Monday-Sunday
Each day monday-sunday have there own page with separate rest services with the rest service e.g where = {"Day":"Monday"}.
Each page monday-sunday are very similar with the only difference being different where parameters in the rest service.
The list on the page displays fields from the data base mapped to labels. These results are categorised by the 'Genre' column in the database. The type of Genre is given as the divider title. The problem is there is a divider at the bottom of the list with the title 'Genre'. This should not be here.
On each page there is a list with:
Label (NightName) visible
Labal (@) visible
Label (Club) visible
Label (ItemID)
Label (Genre)
on page load a rest service is invoked with the parameter for a each day of the week depending which page you're on e.g where = {"Day":"Monday"}. This rest services maps the fields from the database to the labels above.
Event:
rest service success run JS:
var listName = "mobilelist_20";
var deviderOrder = 0;
Appery(listName).listview({
autodividers: true,
autodividersSelector: function (li) {
return li.find('[name="Genre"]').text().trim();
}
});
Appery(listName).listview("refresh"); //Refresh list component
Appery(listName).trigger("listviewcreate"); //Initiate dividers creation
var listItems = Appery(listName).find("li");
listItems.eq(0).hide(); //Hide first unused divider
listItems.eq(listItems.length - 1).hide(); //Hide last unused divider
Let me know if you need anymore information.
Please note, i'm very new to JS and appery
Thank you