This topic is locked

Grid Tabs dynamically

12/22/2017 2:58:41 PM
PHPRunner General questions
M
mersintarim author

hi all,

creating tab on manuel showing count record and hide if empty value
but
how to adding "ShowRowCount and hide if empty" properties Creating Grid Tabs dynamically
$sql = "select * from mytable";

$rs = CustomQuery($sql);

while ($data = db_fetch_array($rs)) {
$pageObject->addTab("EmployeeID='".$data["field1"]."'",

$data["field2"], $data["field1"]);

}

Sergey Kornilov admin 12/24/2017

Try to rephrase your question, it just doesn't make much sense right now. Are you saying this code is not working?

M
mersintarim author 12/25/2017

dear admin,
on additional tab section not trouble(I'm having showrowcount and empty is hide),
but List page: BeforeProcess event.
$sql = "select * from mytable";

$rs = CustomQuery($sql);

while ($data = db_fetch_array($rs)) {
$pageObject->addTab("EmployeeID='".$data["field1"]."'",

$data["field2"], $data["field1"]);

}
not showing rowcount value
thnx for response