add link external table

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
nelstu
User
Posts: 4

add link external table

Post by nelstu »

it is posible add a link in a grid generated with phpmaker

thank

Nelson Stuardo


danielc
User
Posts: 1601

Post by danielc »

It may possible to add link by server event or client script (see the help file) depending on where you want to add the link. Please provide example how you want to do.


nelstu
User
Posts: 4

Post by nelstu »

i have a table named doc and i want to add a link to print a pdf who change depending the record with a php file not generated with phpmaker

i use this code

 $item = &$this->ListOptions->Add("new");
$item->Header = "Imprimir"; // Set the column header (for List page)
$item->OnLeft = TRUE; // Link on left
$item->MoveTo(0); // Move the column to the specified index

how i add the link to my url?

thanks

Nelson Stuardo


nelstu
User
Posts: 4

Post by nelstu »

i do it

....
$this->ListOptions->Items["new"]->Body = "<a href='laydoc.php'>Imprimir</a>";

thanks

Nelson


mobhar
User
Posts: 11737

Post by mobhar »

@nelstu,

What is the issue you found so far after writing the code? Are you sure you have put the code to the proper server event? Let us know, in which server events you write the code?


Post Reply