Hello,
I need to add list view when i add some items so i have the whole list before i add them is there a way to do this and where to add this to Edit page ?
Best regards,
Wuchi
Hello,
I need to add list view when i add some items so i have the whole list before i add them is there a way to do this and where to add this to Edit page ?
Best regards,
Wuchi
Add the following Code in Server Event Add/Copy Page -> Page_DataRendering and/or to Edit Page -> Page_DataRendering
You have to replace the name of your table and choose the fields that should ouptutted.
$header = "<h3>Foodlist</h3>";
$sql = "SELECT * FROM food_table
";
$rs = ew_LoadRecordset($sql);
while (!$rs->EOF) {
header .= $rs->fields['foodname']."<br>";
$rs->MoveNext();
}
The code above adds a list of all "foods" from your table "food_table".
If you want the list below you have to add the code to Page_DataRendered
Hello,
I get the following error:
Parse error: syntax error, unexpected T_CONCAT_EQUAL in C:\AppServ\www\V11\foodadd.php on line 998
Best regards,
Wuchi
digitalphotoworld wrote:
Add the following Code in Server Event Add/Copy Page -> Page_DataRendering and/or
to Edit Page -> Page_DataRendering
You have to replace the name of your table and choose the fields that should
ouptutted.
$header = "<h3>Foodlist</h3>";
$sql = "SELECT * FROM food_table
";
$rs = ew_LoadRecordset($sql);
while (!$rs->EOF) {
header .= $rs->fields['foodname']."<br>";
$rs->MoveNext();
}
The code above adds a list of all "foods" from your table
"food_table".
If you want the list below you have to add the code to Page_DataRendered
Hello,
Fixed...correct syntax is:
$header = "<h3>Foodlist</h3>";
$sql = "SELECT * FROM food_table ";
$rs = ew_LoadRecordset($sql);
while (!$rs->EOF) {
$header .= $rs->fields['foodname']."<br>";
$rs->MoveNext();
}
THX for HELP ;)
Best regards,
Wuchi
wuchi wrote:
Hello,
I get the following error:
Parse error: syntax error, unexpected T_CONCAT_EQUAL in
C:\AppServ\www\V11\foodadd.php on line 998
Best regards,
Wuchi
digitalphotoworld wrote:
Add the following Code in Server Event Add/Copy Page -> Page_DataRendering
and/or
to Edit Page -> Page_DataRendering
You have to replace the name of your table and choose the fields that should
ouptutted.
$header = "<h3>Foodlist</h3>";
$sql = "SELECT * FROM food_table
";
$rs = ew_LoadRecordset($sql);
while (!$rs->EOF) {
header .= $rs->fields['foodname']."<br>";
$rs->MoveNext();
}
The code above adds a list of all "foods" from your table
"food_table".
If you want the list below you have to add the code to Page_DataRendered