Hi all,
I have a problem with a UX that I want to store a list in LocalStorage for web Socket messages.
The app is intended to operate in PhoneGap as well as Web page.
My code to populate the list upon receipt of the message works as I intended. I store TITLE, CONTENT and RECEIVED date/time.
The message CONTENT includes HTML code and is rendered in a popup window upon initial receipt which I want to retrieve from the List.
When I restart the UX the list is restored correctly.
My problem is that I want the user to be able to click on the row to re-display the message.
So I put this code (and a few other statements to display the pop-up widow) in the onClick event for the list.
var row = arguments[0];
var title = {dialog.object}.listGetValue('MESSAGELIST','TITLE',row);
alert(row+':'+title); // debug message
The listGetValue does not error NOR does it retrieve the value for the column in the list.
The value "row" is correct.
If I force an invalid list name or column I get an error.
So, I changed the list to a direct SQL table retrieve (NOT LocalStorage) and the above code works as planned without change.
Then I checked the LocalStorage with SQL table definition and problem returned.
Has anyone seen this behavior before?
I am using the latest release 4346_4889 from May 18... This was a problem in 3962_4772 from Nov 14 which is what I was using prior to today
I cannot provide a copy of the app as it is 9MB
I have a problem with a UX that I want to store a list in LocalStorage for web Socket messages.
The app is intended to operate in PhoneGap as well as Web page.
My code to populate the list upon receipt of the message works as I intended. I store TITLE, CONTENT and RECEIVED date/time.
The message CONTENT includes HTML code and is rendered in a popup window upon initial receipt which I want to retrieve from the List.
When I restart the UX the list is restored correctly.
My problem is that I want the user to be able to click on the row to re-display the message.
So I put this code (and a few other statements to display the pop-up widow) in the onClick event for the list.
var row = arguments[0];
var title = {dialog.object}.listGetValue('MESSAGELIST','TITLE',row);
alert(row+':'+title); // debug message
The listGetValue does not error NOR does it retrieve the value for the column in the list.
The value "row" is correct.
If I force an invalid list name or column I get an error.
So, I changed the list to a direct SQL table retrieve (NOT LocalStorage) and the above code works as planned without change.
Then I checked the LocalStorage with SQL table definition and problem returned.
Has anyone seen this behavior before?
I am using the latest release 4346_4889 from May 18... This was a problem in 3962_4772 from Nov 14 which is what I was using prior to today
I cannot provide a copy of the app as it is 9MB
Comment