Bug: Deleting a js variable after having it connected to a service response parameter, actually doesn't delete it!
Yes, I can confirm this, just tested.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Yes, I can confirm this, just tested.
Exactly the same also happens if i use a local variable instead of a javascript variable.
Not only is the javascript that is used when making a mapping with the local of javascript variable still there, but the page becomes blank. Actually, it shows the page for a split second, and then turns blank.
Ok, than you.
Being a newbie, what's the timeframe for resolving a bug like this? Hours, days, weeks, months?
Most likely weeks in this current case. We are going to release new version in the middle of April. For now we can try to find some workaround.
The fact that the page becomes blank also happens, even if you don't delete the javascript variable.
So:
mapping from responseparameter to javascript variable. "edit js" . Put anything you want, even just comment or 1 space.
Save and test: page goes blank.
/*************************
In fact, he page DOES show when the javascript variable exist in the Tiggzi designer, but you leave the JS empty. Then the source code looks like this:
/*************************
Sorry, what is your app name?
I deleted the page already from the shared app. App name is "test"
Hello, I add new service in js. Now I get error with service is not defined
code
/*
* Nonvisual components
*/
var datasources = [];
get_email_no_clone = new Appery.DataSource(get_email_phone_no_service, {
'onComplete': function(jqXHR, textStatus) {
var phoneNo = localStorage.getItem('phone_no');
document.location.href = 'tel:' + phoneNo;
Code: Select all
$t.refreshScreenFormElements("dashboard_clone_1");
},
'onSuccess': function(data) {},
'onError': function(jqXHR, textStatus, errorThrown) {},
'responseMapping': [{
'PATH': ['$[0]', 'email'],
'ID': '___local_storage___',
'ATTR': 'emial'
}, {
'PATH': ['$[0]', 'phone_no'],
'ID': '___local_storage___',
'ATTR': 'phone_no'
}],
'requestMapping': [{
'PATH': ['X-Appery-Database-Id'],
'HEADER': true,
'ATTR': '{database_id}'
}, {
'PATH': ['X-Appery-Session-Token'],
'HEADER': true,
'ID': '___local_storage___',
'ATTR': 'token'
}]
});
datasources.push(get_email_no_clone);
/code
find the issue
I have to add this service into files/views/js/services/service.js file also
var get_email_phone_no_service = new Appery.RestService({
'url': '{database_url}/collections/phone_email_info',
'dataType': 'json',
'type': 'get',
Code: Select all
'serviceSettings': sig_settings
});