From f7301dac986ad8cb8d2e38375ff6d39ec3ad06ac Mon Sep 17 00:00:00 2001 From: Peter Schojer Date: Tue, 15 Jul 2008 13:46:21 +0000 Subject: [PATCH] fixed rowclicked --- WebWidgets/ExtJS/src/TableRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebWidgets/ExtJS/src/TableRenderer.cpp b/WebWidgets/ExtJS/src/TableRenderer.cpp index 80f8af8cd..64597ece3 100644 --- a/WebWidgets/ExtJS/src/TableRenderer.cpp +++ b/WebWidgets/ExtJS/src/TableRenderer.cpp @@ -246,9 +246,9 @@ Poco::WebWidgets::JSDelegate TableRenderer::createRowClickedServerCallback(const poco_check_ptr (pTable); /// Method signature is rowclick : ( Grid this, Number rowIndex, Ext.EventObject e ) - static const std::string signature("function(sm,row,r)"); + static const std::string signature("function(gr,row,e)"); //extract the true row index from the last column! - std::string origRow("+r.get('"); + std::string origRow("+gr.getStore().getAt(row).get('"); origRow.append(Poco::NumberFormatter::format(static_cast(pTable->getColumnCount()))); origRow.append("')"); std::map addParams;