externalBinding error Custom TableView Row

You must Login before you can answer or comment on any questions.

hello people, i am trying to pass a click event on a custom TableView Row. After countless times of failure i come here.

below is the error im getting

[ERROR][TiJSError( 1197)] (main) [2230,14040] ----- Titanium Javascript Runtime Error -----
[ERROR][TiJSError( 1197)] (main) [1,14041] - In ti:/module.js:215,30
[ERROR][TiJSError( 1197)] (main) [0,14041] - Message: Uncaught Error: Invalid arguments to externalBinding, expected String
[ERROR][TiJSError( 1197)] (main) [0,14041] - Source:    var externalBinding = kroll.externalBinding(request);
[ERROR][V8Exception( 1197)] Exception occurred at ti:/module.js:215: Uncaught Error: Invalid arguments to externalBinding, expected String
 
 
var TheTable = Titanium.UI.createTableView({});
 
 
    var CustomData = [
    {module:"Sales", footerbalance:'$9,000.00', hasChild:true},
    {module:"Bank Balance",footerbalance:'$525.00', hasChild:true},
    {module:"Profit/Loss", footerbalance:'$523.00', hasChild:true},
    {module:"Accounts Payable", footerbalance:'$800.00', hasChild:true},
    {module:"Cash Receipts", footerbalance:'$8,500.00', hasChild:true},
    {module:"Accounts Receivable", footerbalance:'$8,952.00' , hasChild:true, test:'ui/handheld/Categories/AR'}
 
    ];
 
        // create table view event listener
    TheTable.addEventListener('click', function(e)
    {
        //alert(e.row.titleModule);
        if (e.rowData)
            var ExampleWindow = require(e.rowData),
                win = new ExampleWindow({title:e.row.titleModule});
 
    });

1 Answer

the single quotes did the trick

//alert(e.row.titleModule);
        if (e.rowData)
            var ExampleWindow = require('e.rowData'),
                win = new ExampleWindow('title:e.row.titleModule');

Your Answer

Think you can help? Login to answer this question!