数据多选行
多选数据行的操作,用户很常用到。这里说一下,Button的属性中,MultiSelect属性改为Yes,Name属性改为SelectMultiRecord,即开启了按钮多选行。
然后代码
void clicked()
{
MultiSelectionHelper m_Helper;
CustTable m_Table;
;
super();
m_Helper = MultiSelectionHelper::createFromCaller(element);
for(m_Table = m_Helper.getFirst();m_Table;m_Table = m_Helper.getNext())
{
info(strfmt("帐号:%1,名称:%2",m_Table.AccountNum,m_Table.Name));
}
}
{
MultiSelectionHelper m_Helper;
CustTable m_Table;
;
super();
m_Helper = MultiSelectionHelper::createFromCaller(element);
for(m_Table = m_Helper.getFirst();m_Table;m_Table = m_Helper.getNext())
{
info(strfmt("帐号:%1,名称:%2",m_Table.AccountNum,m_Table.Name));
}
}