Link to Other Table Edit Form

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

Link to Other Table Edit Form

Post by lotsofhd »

Dear Forum,

i hv two table :
tb_rentbook which contain oid field (orderid field)
tb_rentorder with oid as primary key

in list view of tb_rentbook i like to have a link to edit page of tb_rentorder.

when i open tb_rentorder and edit one record, on the browser url it say
127.0.0.1/tbRentOrderEdit/ABC001?showdetail=

i tried create link, on tb_rentbook list view (add new column on ListOptions_Load and ListOptions_Rendered (no error) with the link format like
$this->ListOptions["new"]->Body = "<a href='./tbRentOrderEdit/" . $this->oid->CurrentValue . "' >" . $this->oid->CurrentValue . "</a>"

when i click on the link, it redirect me to page not found error..

what is the legit link for edit page of tb_rentorder

br
rusli


mobhar
User
Posts: 11764

Post by mobhar »

How about this?

$this->ListOptions["new"]->Body = "<a href='tbRentOrderEdit/" . $this->oid->CurrentValue . "' >" . $this->oid->CurrentValue . "</a>";


lotsofhd
User
Posts: 4

Post by lotsofhd »

same result 404 not found

this is the link address on tb_rentbook :
http://127.0.0.1/rentapp/tbRentorderEdit/CB2400013

this is the link when i highlight the same record on tb_rentorder :
http://127.0.0.1/rentapp/TbRentorderEdit/CB2400013?showdetail=

i already trying adding ?showdetail= with same result : Route 'tbRentorderEdit/CB2400013' not found.


arbei
User
Posts: 9432

Post by arbei »

lotsofhd wrote:

http://127.0.0.1/rentapp/tbRentorderEdit/CB2400013
http://127.0.0.1/rentapp/TbRentorderEdit/CB2400013?showdetail=

Make sure you use the correct letter case.


lotsofhd
User
Posts: 4

Post by lotsofhd »

thx

solve the problem as per arbei suggestion..


Post Reply