fixed rowclicked

This commit is contained in:
Peter Schojer 2008-07-15 13:46:21 +00:00
parent 2f3fa758e6
commit f7301dac98

View File

@ -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<Poco::UInt32>(pTable->getColumnCount())));
origRow.append("')");
std::map<std::string, std::string> addParams;