Hi all
I am building a offline wholesale program for Android tablets, everything is working just fine but...
I would like the price column in my list to always be called "Price" I am calling the data from a Cached table held on the tablets
The customer has many clients on special rates I store the name of the rate in vRates as you can see below; the rates can be called anything up to five characters long such as AM, JEM, STD.
When I set the ops variable in the javascript I do so like this var ops = {columns: ['NAME','StockLevel',vRate]}; this gives me a list with Columns names like this Name StockLevel AM or Name StockLevel JEM. etc
My goal here is to have the list column always to show "Price" rather that the rate name
Does anybody have any ideas how I might achieve this
Kind Regards
Andy
I am building a offline wholesale program for Android tablets, everything is working just fine but...
I would like the price column in my list to always be called "Price" I am calling the data from a Cached table held on the tablets
The customer has many clients on special rates I store the name of the rate in vRates as you can see below; the rates can be called anything up to five characters long such as AM, JEM, STD.
When I set the ops variable in the javascript I do so like this var ops = {columns: ['NAME','StockLevel',vRate]}; this gives me a list with Columns names like this Name StockLevel AM or Name StockLevel JEM. etc
My goal here is to have the list column always to show "Price" rather that the rate name
Does anybody have any ideas how I might achieve this
Kind Regards
Andy
Code:
var vRate = {dialog.Object}.getValue('Rate') var _onOffline = function() { }; var _onServerNotAvailable = function() { ; }; var _onSuccess = function(data) { var ops = {columns: ['NAME','StockLevel',vRate]}; {dialog.object}.setListColumnsAndPopulate('Product',data,ops); }; var _onFail = function() { ; }; var _filter = '' var _order = {'NAME' : 1}; {dialog.object}.getFromDataCache('ProductRates',_onSuccess,_onFail,_filter,_order,_onOffline,_onServerNotAvailable);
Comment