Loading my JSON DataSource through https seems to be failing. It works when I load the url in a browser on my BlackBerry 10 device but fails when I try to use that url in Qml.
This is what my DataSource object looks like:
DataSource {
id: dsTitles
source: ""
type: DataSourceType.Json
onDataLoaded: {
if (Common.hasError(updateError, data, "Failed to load data. Please check your connection and try again.")) {
console.log("Data contains error");
navigationPane.pop();
return;
}
loadedTitles = true;
Code.loadDropDown(data, ddTitle, "title", "titleId")
Code.hideLoadIndicator();
if (updateProfile && ddTitle.selectedValue == null) {
Code.setDropDownOptionByValue(ddTitle, profile.userTitleId);
}
}
onError: {
console.log("Failed to load titles: " + errorMessage);
}
Any https JSON web service can be used as an example of this problem.